1
linux/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
..
acorn.c
acorn.h
amiga.c
amiga.h
atari.c
atari.h
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
efi.c
efi.h
ibm.c [PATCH] s390: Remove old history/whitespave from partition code 2006-03-24 07:33:17 -08:00
ibm.h
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
Kconfig [PATCH] partitions: Read Rio Karma partition table 2006-01-16 23:15:29 -08:00
ldm.c
ldm.h
mac.c [PATCH] powerpc: Kill _machine and hard-coded platform numbers 2006-03-28 23:15:54 +11:00
mac.h
Makefile [PATCH] partitions: Read Rio Karma partition table 2006-01-16 23:15:29 -08:00
msdos.c [PATCH] small partitions/msdos cleanups 2005-06-25 16:24:59 -07:00
msdos.h
osf.c
osf.h
sgi.c
sgi.h
sun.c
sun.h
ultrix.c fs/partitions/ultrix.c should #include "ultrix.h" 2005-11-08 16:49:14 +01:00
ultrix.h