commit | 5d2ef12f6ed4c35c7e6baa7cb83ced738a3f1976 | [log] [tgz] |
---|---|---|
author | Theodore Ts'o <tytso@mit.edu> | Sat Mar 18 20:03:47 2006 -0500 |
committer | Theodore Ts'o <tytso@mit.edu> | Sat Mar 18 20:03:47 2006 -0500 |
tree | 755cc3e2c1622aa7897998b50f735cff519c68a3 | |
parent | 616059bf23223648bd3bd04b4c7cfe3fb569e46e [diff] |
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>