Signed-off-by: Philippe De Muyter <phdm@macqel.be>
Cc: Karel Zak <kzak@redhat.com>
Cc: Jens Axboe <axboe@kernel.dk>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
if (d[0] == '_' && d[1] == 'L' && d[2] == 'V' && d[3] == 'M')
ret = 1;
put_dev_sector(sect);
if (d[0] == '_' && d[1] == 'L' && d[2] == 'V' && d[3] == 'M')
ret = 1;
put_dev_sector(sect);
return;
if (!msdos_magic_present(data + 510))
return;
if (!msdos_magic_present(data + 510))
p = (struct partition *) (data + 0x1be);
p = (struct partition *) (data + 0x1be);
* and OS/2 seems to use all four entries.
*/
* and OS/2 seems to use all four entries.
*/
* First process the data partition(s)
*/
for (i=0; i<4; i++, p++) {
* First process the data partition(s)
*/
for (i=0; i<4; i++, p++) {
}
#if defined(CONFIG_BSD_DISKLABEL)
}
#if defined(CONFIG_BSD_DISKLABEL)
* Create devices for BSD partitions listed in a disklabel, under a
* dos-like partition. See parse_extended() for more information.
*/
* Create devices for BSD partitions listed in a disklabel, under a
* dos-like partition. See parse_extended() for more information.
*/
if (state->next == state->limit)
break;
if (state->next == state->limit)
break;
- if (p->p_fstype == BSD_FS_UNUSED)
+ if (p->p_fstype == BSD_FS_UNUSED)
continue;
bsd_start = le32_to_cpu(p->p_offset);
bsd_size = le32_to_cpu(p->p_size);
continue;
bsd_start = le32_to_cpu(p->p_offset);
bsd_size = le32_to_cpu(p->p_size);
{NEW_SOLARIS_X86_PARTITION, parse_solaris_x86},
{0, NULL},
};
{NEW_SOLARIS_X86_PARTITION, parse_solaris_x86},
{0, NULL},
};
int msdos_partition(struct parsed_partitions *state)
{
sector_t sector_size = bdev_logical_block_size(state->bdev) / 512;
int msdos_partition(struct parsed_partitions *state)
{
sector_t sector_size = bdev_logical_block_size(state->bdev) / 512;