kernel_optimize_test/fs/partitions
Peter Oberparleiter 25e206b54b [PATCH] partitions: let partitions inherit policy from disk
Change the partition code in fs/partitions/check.c to initialize a newly
detected partition's policy field with that of the containing block device
(see patch below).

My reasoning is that function set_disk_ro() in block/genhd.c modifies the
policy field (read-only indicator) of a disk and all contained partitions.
When a partition is detected after the call to set_disk_ro(), the policy
field of this partition will currently not inherit the disk's policy field.
 This behavior poses a problem in cases where a block device can be
'logically de- and reactivated' like e.g.  the s390 DASD driver because
partition detection may run after the policy field has been modified.

Signed-off-by: Peter Oberparleiter <peter.oberparleiter@de.ibm.com>
Acked-by: Al Viro <viro@ftp.linux.org.uk>
Makes-sense-to: Jens Axboe <axboe@suse.de>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
2006-07-10 13:24:14 -07:00
..
acorn.c Remove obsolete #include <linux/config.h> 2006-06-30 19:25:36 +02: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] partitions: let partitions inherit policy from disk 2006-07-10 13:24:14 -07:00
check.h [PATCH] small partitions/msdos cleanups 2005-06-25 16:24:59 -07:00
efi.c Remove obsolete #include <linux/config.h> 2006-06-30 19:25:36 +02: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 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
Kconfig [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 Remove obsolete #include <linux/config.h> 2006-06-30 19:25:36 +02:00
mac.h Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
Makefile [PATCH] devfs: Remove devfs from the partition code 2006-06-26 12:25:05 -07:00
msdos.c Remove obsolete #include <linux/config.h> 2006-06-30 19:25:36 +02: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