Maciej Żenczykowski 31d710a7bd ext3: don't update sb journal_devnum when RO dev
An ext3 filesystem on a read-only device, with an external journal
which is at a different device number then recorded in the superblock
will fail to honor the read-only setting of the device and trigger
a superblock update (write).

For example:
  - ext3 on a software raid which is in read-only mode
  - external journal on a read-write device which has changed device num
  - attempt to mount with -o journal_dev=<new_number>
  - hits BUG_ON(mddev->ro = 1) in md.c

Cc: Theodore Ts'o <tytso@mit.edu>
Signed-off-by: Maciej Żenczykowski <zenczykowski@gmail.com>
Signed-off-by: Jan Kara <jack@suse.cz>
2011-01-06 11:52:14 +01:00
..
2010-10-28 01:30:05 +02:00
2007-10-17 08:42:47 -07:00
2010-03-05 00:20:30 +01:00
2010-09-16 20:52:58 +02:00
2009-04-02 19:04:52 -07:00
2010-07-23 12:50:55 +02:00
2010-10-25 21:26:11 -04:00
2010-05-21 18:31:19 -04:00
2010-05-21 18:31:19 -04:00
2010-05-21 18:31:19 -04:00
2010-08-09 16:48:45 -04:00
2010-05-21 18:31:19 -04:00