From 8c69497701032951ca636e2a1e2b1a644e64b532 Mon Sep 17 00:00:00 2001 From: Roland McGrath Date: Mon, 19 Jan 2004 01:44:31 +0000 Subject: 2004-01-19 Marco Gerards * linux/dev/glue/block.c (init_partition): Don't check for BSD partitions if the DOS partition is too small. --- linux/dev/glue/block.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'linux/dev') diff --git a/linux/dev/glue/block.c b/linux/dev/glue/block.c index facef51..d65acac 100644 --- a/linux/dev/glue/block.c +++ b/linux/dev/glue/block.c @@ -961,7 +961,7 @@ init_partition (struct name_map *np, kdev_t *dev, if (ds->fops->open && (*ds->fops->open) (&d->inode, &d->file)) continue; lp = read_bsd_label (d->inode.i_rdev); - if (! lp) + if (! lp && gd->part[MINOR (d->inode.i_rdev)].nr_sects > PDLOCATION) lp = read_vtoc (d->inode.i_rdev); if (ds->fops->release) (*ds->fops->release) (&d->inode, &d->file); -- cgit v1.2.3