[PATCH] Fix check_partition routines
commit57881dd9df40b76dc7fc6a0d13fd75f337accb32
authorSuzuki K P <suzuki@in.ibm.com>
Thu, 7 Dec 2006 04:35:16 +0000 (6 20:35 -0800)
committerLinus Torvalds <torvalds@woody.osdl.org>
Thu, 7 Dec 2006 16:39:30 +0000 (7 08:39 -0800)
tree088010827c14fbe75628c64848839616175bb9d6
parent5127d002f9769ba6b1691de78dd3a5c14635e183
[PATCH] Fix check_partition routines

check_partition() stops its probe once it hits an I/O error from the
partition checkers.  This would prevent the actual partition checker
getting a chance to verify the partition.

So this patch lets check_partition() continue probing untill it hits a
success while recording the I/O error which might have been reported by the
checking routines.

Also, it does some cleanup of the partition methods for ibm, atari and
amiga to return -1 upon hitting an I/O error.

Signed-off-by: Suzuki K P <suzuki@in.ibm.com>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
fs/partitions/amiga.c
fs/partitions/atari.c
fs/partitions/check.c
fs/partitions/ibm.c