Files
linux/drivers/md
NeilBrown 2928b68f62 md: fix small irregularity with start_ro module parameter
commit 0f9552b5dc upstream.

The start_ro modules parameter can be used to force arrays to be
started in 'auto-readonly' in which they are read-only until the first
write.  This ensures that no resync/recovery happens until something
else writes to the device.  This is important for resume-from-disk
off an md array.

However if an array is started 'readonly' (by writing 'readonly' to
the 'array_state' sysfs attribute) we want it to be really 'readonly',
not 'auto-readonly'.

So strengthen the condition to only set auto-readonly if the
array is not already read-only.

Signed-off-by: NeilBrown <neilb@suse.de>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
2010-01-28 15:02:18 -08:00
..
2009-06-22 10:12:26 +01:00
2009-12-18 14:05:02 -08:00
2009-04-09 00:27:17 +01:00
2009-09-14 08:24:52 +02:00
2009-06-22 10:12:29 +01:00
2009-12-18 14:05:02 -08:00
2009-03-31 14:57:37 +11:00