From: Maciej Żenczykowski Date: Sun, 26 Sep 2010 12:38:28 +0000 (+0000) Subject: ext3: don't update sb journal_devnum when RO dev X-Git-Tag: v2.6.38-rc1~410^2~18 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=31d710a7bd42f0d89e30d53bdaad427c5f191d0d;p=pandora-kernel.git 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= - hits BUG_ON(mddev->ro = 1) in md.c Cc: Theodore Ts'o Signed-off-by: Maciej Żenczykowski Signed-off-by: Jan Kara --- Reading git-diff-tree failed