Whamcloud - gitweb
e2fsck: do not attempt to discard if -n was specified
authorLukas Czerner <lczerner@redhat.com>
Fri, 16 Sep 2011 03:55:23 +0000 (23:55 -0400)
committerTheodore Ts'o <tytso@mit.edu>
Fri, 16 Sep 2011 03:55:23 +0000 (23:55 -0400)
commit765e03f0374b655ba99c0881aebf6c101098c282
tree59c178b763ef4305f63a591a6a3747ad775a8874
parent2fa1679adb2be88cddcdc98bed325ac0ce72ef93
e2fsck: do not attempt to discard if -n was specified

If '-n' option is specified there should be no changes made to the file
system hence we should not attempt to discard the file system. This
commit adds a check into the e2fsck_discard_blocks() condition so it skip
discard if E2F_OPT_NO flag is set.

Signed-off-by: Lukas Czerner <lczerner@redhat.com>
Signed-off-by: Theodore Ts'o <tytso@mit.edu>
e2fsck/pass5.c