]> git.baikalelectronics.ru Git - kernel.git/commit
ext3: correct mount option parsing to detect when quota options can be changed
authorJan Kara <jack@suse.cz>
Fri, 25 Jul 2008 08:46:18 +0000 (01:46 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Fri, 25 Jul 2008 17:53:32 +0000 (10:53 -0700)
commitb789e0592007622c0dedf2c5f6dc28d6084bbe52
tree2b552d620b0a114d3085ddee3f9a1929040d8bf0
parentd7c373d1d523a47e336464d1c1c77a6ad60df30d
ext3: correct mount option parsing to detect when quota options can be changed

We should not allow user to change quota mount options when quota is just
suspended.  I would make mount options and internal quota state inconsistent.
Also we should not allow user to change quota format when quota is turned on.
On the other hand we can just silently ignore when some option is set to the
value it already has (mount does this on remount).

Cc: <linux-ext4@vger.kernel.org>
Signed-off-by: Jan Kara <jack@suse.cz>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
fs/ext3/super.c