linux-kernel-test/fs/partitions
Suzuki Kp 5127d002f9 [PATCH] fix rescan_partitions to return errors properly
The current rescan_partition implementation ignores the errors that comes from
the lower layer.  It reports success for unknown partitions as well as I/O
error cases while reading the partition information.

The unknown partition is not (and will not be) considered as an error in the
kernel, since there are legal users of it (e.g, members of a RAID5 MD Device
or a new disk which is not partitioned at all ).  Changing this behaviour
would scare the user about a serious problem with their disk and is not
recommended.  Thus for both "unknown partitions" to the Linux (eg., DEC
VMS,Novell Netware) and the legal users of NULL partition, would still be
reported as "SUCCESS".

The patch attached here, scares the user about something which he does need to
worry about.  i.e, returning -EIO on disk I/O errors while reading the
partition information.

Signed-off-by: Suzuki K P <suzuki@in.ibm.com>
Cc: Erik Mouw <erik@harddisk-recovery.com>
Cc: Christoph Hellwig <hch@lst.de>
Cc: Al Viro <viro@zeniv.linux.org.uk>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
2006-12-07 08:39:30 -08:00
..
acorn.c Remove obsolete #include <linux/config.h> 2006-06-30 19:25:36 +02:00
acorn.h
amiga.c
amiga.h
atari.c
atari.h
check.c [PATCH] fix rescan_partitions to return errors properly 2006-12-07 08:39:30 -08:00
check.h
efi.c [PATCH] fs: Conversions from kmalloc+memset to k(z|c)alloc 2006-09-27 08:26:10 -07:00
efi.h Remove obsolete #include <linux/config.h> 2006-06-30 19:25:36 +02:00
ibm.c Remove obsolete #include <linux/config.h> 2006-06-30 19:25:36 +02:00
ibm.h
karma.c
karma.h
Kconfig [PATCH] enable mac partition label per default on pmac 2006-07-31 13:28:41 -07:00
ldm.c [PATCH] fs/partitions: Conversion to generic boolean 2006-10-01 00:39:19 -07:00
ldm.h
mac.c [PATCH] Enable RAID autorun on Mac partition tables. 2006-12-04 08:36:37 -08:00
mac.h
Makefile [PATCH] BLOCK: Make it possible to disable the block layer [try #6] 2006-09-30 20:52:31 +02:00
msdos.c [PATCH] fs/partitions endianness annotations 2006-10-10 16:15:34 -07:00
msdos.h
osf.c
osf.h
sgi.c
sgi.h
sun.c [DISKLABEL] SUN: Fix signed int usage for sector count 2006-08-26 17:55:55 -07:00
sun.h
ultrix.c
ultrix.h