fs/partition/msdos: fix unusable extended partition for > 512B sector
authorOGAWA Hirofumi <hirofumi@mail.parknet.co.jp>
Tue, 23 Mar 2010 20:35:50 +0000 (13:35 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Wed, 24 Mar 2010 23:31:22 +0000 (16:31 -0700)
commit8e0cc811e0f8029a7225372fb0951fab102c012f
tree05fa64ca2e4f5087552a799fcea899a40dd9e19a
parent3fbf586cf7f245392142e5407c2a56f1cff979b6
fs/partition/msdos: fix unusable extended partition for > 512B sector

Smaller size than a minimum blocksize can't be used, after all it's
handled like 0 size.

For extended partition itself, this makes sure to use bigger size than one
logical sector size at least.

Signed-off-by: OGAWA Hirofumi <hirofumi@mail.parknet.co.jp>
Cc: Daniel Taylor <Daniel.Taylor@wdc.com>
Cc: "H. Peter Anvin" <hpa@zytor.com>
Cc: <stable@kernel.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
fs/partitions/msdos.c