NeilBrown 0f9552b5dc md: fix small irregularity with start_ro module parameter
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>
2009-12-30 15:20:12 +11:00
..
2009-12-24 01:17:21 -05:00
2009-12-24 11:07:09 +01:00
2009-12-15 08:53:34 -08:00
2009-12-12 13:08:15 +01:00
2009-12-02 01:13:11 -08:00
2009-12-22 14:17:56 -08:00
2009-12-15 09:33:36 -08:00
2009-12-22 14:17:56 -08:00
2009-12-09 17:14:38 +11:00
2009-11-12 07:26:01 -08:00
2009-12-22 14:17:56 -08:00
2009-12-15 08:53:25 -08:00
2009-12-23 19:53:04 +00:00