• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /netgear-R7000-V1.0.7.12_1.2.5/components/opensource/linux/linux-2.6.36/fs/partitions/

Lines Matching refs:disk

165 		ldm_error("PRIVHEAD disk size doesn't match real disk size");
315 * Read and compare all three privheads from disk.
317 * The privheads on disk show the size and location of the main disk area and
319 * @hd, which contains the real size of the disk.
370 ldm_crit ("Database extends beyond the end of the disk.");
531 * ldm_validate_partition_table - Determine whether bdev might be a dynamic disk
535 * disk or not. It looks for an MS-DOS-style partition table containing at
543 * Return: 'true' @state->bdev is a dynamic disk
544 * 'false' @state->bdev is not a dynamic disk, or an error occurred
573 ldm_debug ("Found W2K dynamic disk partition type.");
585 * The primary PRIVHEAD, at the beginning of the physical disk, tells us
586 * the GUID of this disk. This function searches for the GUID in a linked
600 if (!memcmp (v->vblk.disk.disk_id, ldb->ph.disk_id, GUID_SIZE))
612 * The database contains ALL the partitions for ALL disk groups, so we need to
613 * filter out this specific disk. Using the disk's object id, we can find all
614 * the partitions in the database that belong to this disk.
629 struct vblk *disk;
635 disk = ldm_get_disk_objid (ldb);
636 if (!disk) {
637 ldm_crit ("Can't find the ID of this disk in the database.");
648 if (part->disk_id != disk->obj_id)
916 struct vblk_disk *disk;
932 disk = &vb->vblk.disk;
933 ldm_get_vstr (buffer + 0x18 + r_diskid, disk->alt_name,
934 sizeof (disk->alt_name));
935 if (!ldm_parse_guid (buffer + 0x19 + r_name, disk->disk_id))
955 struct vblk_disk *disk;
969 disk = &vb->vblk.disk;
970 memcpy (disk->disk_id, buffer + 0x18 + r_name, GUID_SIZE);
1388 * ldm_get_vblks - Read the on-disk database of VBLKs into memory
1393 * To use the information from the VBLKs, they need to be read from the disk,
1471 * ldm_partition - Find out whether a device is a dynamic disk and handle it
1474 * This determines whether the device @bdev is a dynamic disk and if so creates
1482 * Return: 1 Success, @state->bdev is a dynamic disk and we handled it
1483 * 0 Success, @state->bdev is not a dynamic disk
1485 * Or @state->bdev is a dynamic disk, but it may be corrupted