Lines Matching refs:disk

101 		ldm_error("PRIVHEAD disk size doesn't match real disk size");
256 * Read and compare all three privheads from disk.
258 * The privheads on disk show the size and location of the main disk area and
260 * @hd, which contains the real size of the disk.
307 num_sects = get_capacity(state->disk);
311 ldm_crit ("Database extends beyond the end of the disk.");
342 * @base: Offset, into @state->disk, of the database
346 * @state->disk and return the parsed information into @toc1.
477 * ldm_validate_partition_table - Determine whether bdev might be a dynamic disk
481 * disk or not. It looks for an MS-DOS-style partition table containing at
489 * Return: 'true' @state->disk is a dynamic disk
490 * 'false' @state->disk is not a dynamic disk, or an error occurred
519 ldm_debug ("Found W2K dynamic disk partition type.");
531 * The primary PRIVHEAD, at the beginning of the physical disk, tells us
532 * the GUID of this disk. This function searches for the GUID in a linked
546 if (uuid_equal(&v->vblk.disk.disk_id, &ldb->ph.disk_id))
558 * The database contains ALL the partitions for ALL disk groups, so we need to
559 * filter out this specific disk. Using the disk's object id, we can find all
560 * the partitions in the database that belong to this disk.
575 struct vblk *disk;
581 disk = ldm_get_disk_objid (ldb);
582 if (!disk) {
583 ldm_crit ("Can't find the ID of this disk in the database.");
594 if (part->disk_id != disk->obj_id)
852 struct vblk_disk *disk;
868 disk = &vb->vblk.disk;
869 ldm_get_vstr (buffer + 0x18 + r_diskid, disk->alt_name,
870 sizeof (disk->alt_name));
871 if (uuid_parse(buffer + 0x19 + r_name, &disk->disk_id))
891 struct vblk_disk *disk;
905 disk = &vb->vblk.disk;
906 import_uuid(&disk->disk_id, buffer + 0x18 + r_name);
1332 * ldm_get_vblks - Read the on-disk database of VBLKs into memory
1334 * @base: Offset, into @state->disk, of the database
1337 * To use the information from the VBLKs, they need to be read from the disk,
1415 * ldm_partition - Find out whether a device is a dynamic disk and handle it
1418 * This determines whether the device @bdev is a dynamic disk and if so creates
1426 * Return: 1 Success, @state->disk is a dynamic disk and we handled it
1427 * 0 Success, @state->disk is not a dynamic disk
1429 * Or @state->disk is a dynamic disk, but it may be corrupted