diff options
author | Suzuki K P <suzuki@in.ibm.com> | 2006-12-06 20:35:16 -0800 |
---|---|---|
committer | Linus Torvalds <torvalds@woody.osdl.org> | 2006-12-07 08:39:30 -0800 |
commit | 57881dd9df40b76dc7fc6a0d13fd75f337accb32 (patch) | |
tree | 088010827c14fbe75628c64848839616175bb9d6 /fs/partitions/atari.c | |
parent | 5127d002f9769ba6b1691de78dd3a5c14635e183 (diff) | |
download | kernel_samsung_crespo-57881dd9df40b76dc7fc6a0d13fd75f337accb32.zip kernel_samsung_crespo-57881dd9df40b76dc7fc6a0d13fd75f337accb32.tar.gz kernel_samsung_crespo-57881dd9df40b76dc7fc6a0d13fd75f337accb32.tar.bz2 |
[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>
Diffstat (limited to 'fs/partitions/atari.c')
-rw-r--r-- | fs/partitions/atari.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/partitions/atari.c b/fs/partitions/atari.c index 192a6ad..1f3572d 100644 --- a/fs/partitions/atari.c +++ b/fs/partitions/atari.c @@ -88,7 +88,7 @@ int atari_partition(struct parsed_partitions *state, struct block_device *bdev) if (!xrs) { printk (" block %ld read failed\n", partsect); put_dev_sector(sect); - return 0; + return -1; } /* ++roman: sanity check: bit 0 of flg field must be set */ |