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.
311 ldm_crit ("Database extends beyond the end of the disk.");
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->bdev is a dynamic disk
490 * 'false' @state->bdev 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)
859 struct vblk_disk *disk;
875 disk = &vb->vblk.disk;
876 ldm_get_vstr (buffer + 0x18 + r_diskid, disk->alt_name,
877 sizeof (disk->alt_name));
878 if (uuid_parse(buffer + 0x19 + r_name, &disk->disk_id))
898 struct vblk_disk *disk;
912 disk = &vb->vblk.disk;
913 import_uuid(&disk->disk_id, buffer + 0x18 + r_name);
1341 * ldm_get_vblks - Read the on-disk database of VBLKs into memory
1346 * To use the information from the VBLKs, they need to be read from the disk,
1424 * ldm_partition - Find out whether a device is a dynamic disk and handle it
1427 * This determines whether the device @bdev is a dynamic disk and if so creates
1435 * Return: 1 Success, @state->bdev is a dynamic disk and we handled it
1436 * 0 Success, @state->bdev is not a dynamic disk
1438 * Or @state->bdev is a dynamic disk, but it may be corrupted