Commit 52c7d802 authored by Linus Torvalds's avatar Linus Torvalds

Merge bk://lsm.bkbits.net/linus-2.5

into penguin.transmeta.com:/home/penguin/torvalds/repositories/kernel/lsm-tree
parents 9d0b98b0 61e2f154
...@@ -560,10 +560,8 @@ static BOOL ldm_validate_partition_table (struct block_device *bdev) ...@@ -560,10 +560,8 @@ static BOOL ldm_validate_partition_table (struct block_device *bdev)
return FALSE; return FALSE;
} }
if (*(u16*) (data + 0x01FE) != cpu_to_le16 (MSDOS_LABEL_MAGIC)) { if (*(u16*) (data + 0x01FE) != cpu_to_le16 (MSDOS_LABEL_MAGIC))
ldm_debug ("No MS-DOS partition table found.");
goto out; goto out;
}
p = (struct partition*)(data + 0x01BE); p = (struct partition*)(data + 0x01BE);
for (i = 0; i < 4; i++, p++) for (i = 0; i < 4; i++, p++)
...@@ -573,9 +571,8 @@ static BOOL ldm_validate_partition_table (struct block_device *bdev) ...@@ -573,9 +571,8 @@ static BOOL ldm_validate_partition_table (struct block_device *bdev)
} }
if (result) if (result)
ldm_debug ("Parsed partition table successfully."); ldm_debug ("Found W2K dynamic disk partition type.");
else
ldm_debug ("Found an MS-DOS partition table, not a dynamic disk.");
out: out:
put_dev_sector (sect); put_dev_sector (sect);
return result; return result;
...@@ -585,9 +582,10 @@ static BOOL ldm_validate_partition_table (struct block_device *bdev) ...@@ -585,9 +582,10 @@ static BOOL ldm_validate_partition_table (struct block_device *bdev)
* ldm_get_disk_objid - Search a linked list of vblk's for a given Disk Id * ldm_get_disk_objid - Search a linked list of vblk's for a given Disk Id
* @ldb: Cache of the database structures * @ldb: Cache of the database structures
* *
* The LDM Database contains a list of all partitions on all dynamic disks. The * The LDM Database contains a list of all partitions on all dynamic disks.
* primary PRIVHEAD, at the beginning of the physical disk, tells us the GUID of * The primary PRIVHEAD, at the beginning of the physical disk, tells us
* this disk. This function searches for the GUID in a linked list of vblk's. * the GUID of this disk. This function searches for the GUID in a linked
* list of vblk's.
* *
* Return: Pointer, A matching vblk was found * Return: Pointer, A matching vblk was found
* NULL, No match, or an error * NULL, No match, or an error
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment