Whamcloud - gitweb
Change resize2fs open modes for mounted and unmounted filesystems
authorTheodore Ts'o <tytso@mit.edu>
Sun, 19 Mar 2006 01:03:47 +0000 (20:03 -0500)
committerTheodore Ts'o <tytso@mit.edu>
Sun, 19 Mar 2006 01:03:47 +0000 (20:03 -0500)
commit5d2ef12f6ed4c35c7e6baa7cb83ced738a3f1976
tree755cc3e2c1622aa7897998b50f735cff519c68a3
parent616059bf23223648bd3bd04b4c7cfe3fb569e46e
Change resize2fs open modes for mounted and unmounted filesystems

If the filesystem is mounted, open it in read-only mode since the userspace
program should not try to modify it directly.  If the filesystem is not mounted,
open it in exclusive mode to avoid potential problems (such as someone
trying to mount the filesystem while it is being resized).

Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
resize/ChangeLog
resize/main.c