OpenCloudOS-Kernel/fs/partitions
Mike Miller 98bd34eaf1 [PATCH] make kernel warn about incorrectly sized partitions
Sometimes partitions claim to be larger than the reported capacity of a
disk device.  This patch makes the kernel warn about those partitions.

We still permit these patitions to be used.  Quoting Andries Brouwer
<Andries.Brouwer@cwi.nl>:

 Case 1: The kernel is mistaken about the size of the disk.  (There are
 commands to clip a disk to a certain capacity, there are jumpers to tell a
 disk that it should report a certain capacity etc.  Usually this is because
 of BIOS bugs.  In bad cases the machine will crash in the BIOS and hence fail
 to boot if the disk reports full capacity.) In such cases actually accessing
 the blocks of the partition may work fine, or may work fine after running an
 unclip utility.  I wrote "setmax" some years ago precisely for this reason.

 Case 2: There was a messy partition table (maybe just a rounding error) but
 the actual filesystem on the partition is contained in the physical disk.
 Now using the filesystem goes without problem.

 Case 3: Both partition and filesystem extend beyond the end of the disk.  In
 forensic or debugging situations one often uses a copy of the start of a
 disk.  Now access beyond the end gives an expected I/O error.

Signed-off-by: Mike Miller <mike.miller@hp.com>
Signed-off-by: Stephen Cameron <steve.cameron@hp.com>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
2006-06-23 07:43:09 -07:00
..
Kconfig [PATCH] partitions: Read Rio Karma partition table 2006-01-16 23:15:29 -08:00
Makefile [PATCH] partitions: Read Rio Karma partition table 2006-01-16 23:15:29 -08:00
acorn.c Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
acorn.h Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
amiga.c Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
amiga.h Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
atari.c Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
atari.h Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
check.c [PATCH] make kernel warn about incorrectly sized partitions 2006-06-23 07:43:09 -07:00
check.h [PATCH] small partitions/msdos cleanups 2005-06-25 16:24:59 -07:00
devfs.c [PATCH] sem2mutex: fs/ 2006-03-26 08:56:55 -08:00
devfs.h Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
efi.c Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
efi.h Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
ibm.c [PATCH] s390: Remove old history/whitespave from partition code 2006-03-24 07:33:17 -08:00
ibm.h Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
karma.c [PATCH] partitions: Read Rio Karma partition table 2006-01-16 23:15:29 -08:00
karma.h [PATCH] partitions: Read Rio Karma partition table 2006-01-16 23:15:29 -08:00
ldm.c Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
ldm.h Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
mac.c [PATCH] powerpc: Kill _machine and hard-coded platform numbers 2006-03-28 23:15:54 +11:00
mac.h Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
msdos.c [PATCH] small partitions/msdos cleanups 2005-06-25 16:24:59 -07:00
msdos.h Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
osf.c Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
osf.h Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
sgi.c Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
sgi.h Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
sun.c Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
sun.h Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
ultrix.c fs/partitions/ultrix.c should #include "ultrix.h" 2005-11-08 16:49:14 +01:00
ultrix.h Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00