Lines Matching full:disk

3  * ldm - Support for Windows Logical Disk Manager (Dynamic Disks)
101 ldm_error("PRIVHEAD disk size doesn't match real disk size"); in ldm_parse_privhead()
254 * Read and compare all three privheads from disk.
256 * The privheads on disk show the size and location of the main disk area and
258 * @hd, which contains the real size of the disk.
291 ldm_crit ("Disk read failed."); in ldm_validate_privheads()
305 num_sects = get_capacity(state->disk); in ldm_validate_privheads()
309 ldm_crit ("Database extends beyond the end of the disk."); in ldm_validate_privheads()
316 ldm_crit ("Disk and database overlap."); in ldm_validate_privheads()
340 * @base: Offset, into @state->disk, of the database
344 * @state->disk and return the parsed information into @toc1.
381 ldm_error("Disk read failed for TOCBLOCK %d.", i); in ldm_validate_tocblocks()
441 ldm_crit ("Disk read failed."); in ldm_validate_vmdb()
475 * ldm_validate_partition_table - Determine whether bdev might be a dynamic disk
479 * disk or not. It looks for an MS-DOS-style partition table containing at
487 * Return: 'true' @state->disk is a dynamic disk
488 * 'false' @state->disk is not a dynamic disk, or an error occurred
502 ldm_info ("Disk read failed."); in ldm_validate_partition_table()
517 ldm_debug ("Found W2K dynamic disk partition type."); in ldm_validate_partition_table()
525 * ldm_get_disk_objid - Search a linked list of vblk's for a given Disk Id
529 * The primary PRIVHEAD, at the beginning of the physical disk, tells us
530 * the GUID of this disk. This function searches for the GUID in a linked
544 if (uuid_equal(&v->vblk.disk.disk_id, &ldb->ph.disk_id)) in ldm_get_disk_objid()
556 * The database contains ALL the partitions for ALL disk groups, so we need to
557 * filter out this specific disk. Using the disk's object id, we can find all
558 * the partitions in the database that belong to this disk.
573 struct vblk *disk; in ldm_create_data_partitions() local
579 disk = ldm_get_disk_objid (ldb); in ldm_create_data_partitions()
580 if (!disk) { in ldm_create_data_partitions()
581 ldm_crit ("Can't find the ID of this disk in the database."); in ldm_create_data_partitions()
592 if (part->disk_id != disk->obj_id) in ldm_create_data_partitions()
758 * ldm_parse_dgr3 - Read a raw VBLK Disk Group object into a vblk structure
763 * Read a raw VBLK Disk Group object (version 3) into a vblk structure.
765 * Return: 'true' @vb contains a Disk Group VBLK
799 * ldm_parse_dgr4 - Read a raw VBLK Disk Group object into a vblk structure
804 * Read a raw VBLK Disk Group object (version 4) into a vblk structure.
806 * Return: 'true' @vb contains a Disk Group VBLK
837 * ldm_parse_dsk3 - Read a raw VBLK Disk object into a vblk structure
842 * Read a raw VBLK Disk object (version 3) into a vblk structure.
844 * Return: 'true' @vb contains a Disk VBLK
850 struct vblk_disk *disk; in ldm_parse_dsk3() local
866 disk = &vb->vblk.disk; in ldm_parse_dsk3()
867 ldm_get_vstr (buffer + 0x18 + r_diskid, disk->alt_name, in ldm_parse_dsk3()
868 sizeof (disk->alt_name)); in ldm_parse_dsk3()
869 if (uuid_parse(buffer + 0x19 + r_name, &disk->disk_id)) in ldm_parse_dsk3()
876 * ldm_parse_dsk4 - Read a raw VBLK Disk object into a vblk structure
881 * Read a raw VBLK Disk object (version 4) into a vblk structure.
883 * Return: 'true' @vb contains a Disk VBLK
889 struct vblk_disk *disk; in ldm_parse_dsk4() local
903 disk = &vb->vblk.disk; in ldm_parse_dsk4()
904 import_uuid(&disk->disk_id, buffer + 0x18 + r_name); in ldm_parse_dsk4()
1330 * ldm_get_vblks - Read the on-disk database of VBLKs into memory
1332 * @base: Offset, into @state->disk, of the database
1335 * To use the information from the VBLKs, they need to be read from the disk,
1360 ldm_crit ("Disk read failed."); in ldm_get_vblks()
1413 * ldm_partition - Find out whether a device is a dynamic disk and handle it
1416 * This determines whether the device @bdev is a dynamic disk and if so creates
1424 * Return: 1 Success, @state->disk is a dynamic disk and we handled it
1425 * 0 Success, @state->disk is not a dynamic disk
1427 * Or @state->disk is a dynamic disk, but it may be corrupted
1437 /* Look for signs of a Dynamic Disk */ in ldm_partition()