summaryrefslogtreecommitdiff
path: root/linux
diff options
context:
space:
mode:
authorRoland McGrath <roland@gnu.org>2004-01-19 01:44:31 +0000
committerThomas Schwinge <tschwinge@gnu.org>2009-06-18 00:15:25 +0200
commit8c69497701032951ca636e2a1e2b1a644e64b532 (patch)
treef39a108f4ac1209163837b1102080008a24353e4 /linux
parent4eae2b73c2b14df49f97e71c075ed9318e7ce85d (diff)
2004-01-19 Marco Gerards <metgerards@student.han.nl>
* linux/dev/glue/block.c (init_partition): Don't check for BSD partitions if the DOS partition is too small.
Diffstat (limited to 'linux')
-rw-r--r--linux/dev/glue/block.c2
1 files changed, 1 insertions, 1 deletions
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);