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
..
2006-06-30 19:25:36 +02:00
2006-06-30 19:25:36 +02:00
2006-06-28 14:59:04 -07:00
2006-06-28 14:59:04 -07:00
2006-06-23 07:42:45 -07:00
2006-06-26 09:58:18 -07:00
2006-06-30 18:23:04 +02:00
2006-06-28 14:59:04 -07:00
2006-06-30 19:25:36 +02:00
2006-06-30 19:25:36 +02:00
2006-06-29 14:43:01 -07:00
2006-06-28 14:59:04 -07:00
2006-06-30 19:25:36 +02:00
2006-06-23 07:42:45 -07:00
2006-06-28 14:59:04 -07:00
2006-05-21 12:59:16 -07:00
2006-07-03 15:27:08 -07:00
2006-07-03 15:27:08 -07:00
2006-06-28 14:59:04 -07:00
2006-06-28 14:59:04 -07:00
2006-06-28 14:59:04 -07:00
2006-06-30 19:25:36 +02:00
2006-06-30 19:25:36 +02:00
2006-06-28 14:59:04 -07:00
2006-06-28 14:59:04 -07:00
2006-06-23 07:42:45 -07:00
2006-06-28 14:59:04 -07:00
2006-06-30 19:25:36 +02:00
2006-06-27 17:32:38 -07:00
2006-06-30 19:25:36 +02:00
2006-07-03 21:29:08 -07:00
2006-06-30 19:25:36 +02:00
2006-07-05 13:13:18 -04:00
2006-06-28 14:59:04 -07:00
2006-06-23 07:42:45 -07:00
2006-06-30 15:39:30 -07:00
2006-07-05 13:19:25 -04:00
2006-06-30 15:39:30 -07:00
2006-06-30 19:25:36 +02:00
2006-07-03 15:27:08 -07:00
2006-06-29 16:13:35 -07:00
2006-06-25 23:19:14 -07:00
2006-07-10 13:24:14 -07:00
2006-07-03 22:37:13 -07:00
2006-06-30 19:25:36 +02:00
2006-06-28 14:59:04 -07:00
2006-07-10 13:24:13 -07:00
2006-06-28 14:59:04 -07:00
2006-06-30 19:25:36 +02:00
2006-06-28 14:59:04 -07:00
2006-06-28 14:59:04 -07:00
2006-06-30 19:25:36 +02:00
2006-07-03 15:27:08 -07:00
2006-06-23 07:42:45 -07:00
2006-06-30 19:25:36 +02:00
2006-06-26 18:35:02 +02:00
2006-03-28 09:16:06 -08:00
2006-06-23 07:42:54 -07:00
2006-07-03 15:26:59 -07:00
2006-06-30 19:25:36 +02:00
2006-06-24 13:07:53 -04:00
2006-06-30 19:25:36 +02:00
2006-06-17 10:52:12 -07:00
2006-07-03 15:27:10 -07:00
2006-06-30 15:39:30 -07:00
2006-06-30 19:25:36 +02:00
2006-06-30 19:25:36 +02:00
2006-06-26 10:48:16 -07:00
2006-07-03 15:27:06 -07:00
2006-06-30 19:25:36 +02:00
2006-07-03 15:27:06 -07:00
2006-03-26 08:56:56 -08:00
2006-06-26 09:58:17 -07:00
2006-07-03 15:27:11 -07:00
2006-06-30 19:25:36 +02:00
2006-04-02 13:37:19 +02:00
2006-04-11 13:53:33 +02:00
2006-06-30 19:25:36 +02:00
2006-03-28 09:16:05 -08:00
2006-06-30 11:25:36 -07:00
2006-06-30 15:39:30 -07:00
2006-06-23 07:42:45 -07:00
2006-06-20 05:25:19 -04:00
2006-06-30 19:25:36 +02:00
2006-06-30 11:25:37 -07:00
2006-06-29 14:56:12 -07:00
2006-06-26 09:58:17 -07:00
2006-07-05 13:13:18 -04:00
2006-06-26 12:25:05 -07:00
2006-03-28 09:16:08 -08:00
2006-06-23 07:42:49 -07:00
2006-07-03 15:27:06 -07:00
2006-06-30 19:25:36 +02:00
2006-06-30 19:25:36 +02:00
2006-06-25 10:01:15 -07:00
2006-06-23 07:42:45 -07:00
2006-06-26 09:58:17 -07:00
2006-04-11 13:56:09 +02:00
2006-06-25 10:01:22 -07:00
2006-06-23 17:10:39 +02:00
2006-06-30 19:25:36 +02:00
2006-07-03 15:27:09 -07:00
2006-06-23 07:42:49 -07:00
2006-06-20 05:25:28 -04:00