• M
    ext3: don't update sb journal_devnum when RO dev · 31d710a7
    Maciej Żenczykowski 提交于
    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: NMaciej Żenczykowski <zenczykowski@gmail.com>
    Signed-off-by: NJan Kara <jack@suse.cz>
    31d710a7
super.c 83.1 KB