]> www.pilppa.org Git - linux-2.6-omap-h63xx.git/commit
reiserfs: correct mount option parsing to detect when quota options can be changed
authorJan Kara <jack@suse.cz>
Fri, 25 Jul 2008 08:46:38 +0000 (01:46 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Fri, 25 Jul 2008 17:53:33 +0000 (10:53 -0700)
commit00b441970a0ab48185244300ac7d4e4eb76df692
tree5e0e7b72b0388dd889da267e669dd1e427e82946
parent4506567b24d3ea707e46e8aad64caef539382f4b
reiserfs: 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.  It 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 (some mount versions do this on remount).  Finally, we
should not discard current quota options if parsing of mount options fails.

Cc: <reiserfs-devel@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/reiserfs/super.c