diff options
author | Theodore Ts'o <tytso@mit.edu> | 2006-03-18 20:02:05 -0500 |
---|---|---|
committer | Theodore Ts'o <tytso@mit.edu> | 2006-03-18 20:02:05 -0500 |
commit | 616059bf23223648bd3bd04b4c7cfe3fb569e46e (patch) | |
tree | b1711e493c625eb6d68c8518e65c4a1cd0dc04f2 /misc/mke2fs.c | |
parent | 2e14e0c8cc5bc61ffacd380a981808194e9c7f84 (diff) | |
download | e2fsprogs-616059bf23223648bd3bd04b4c7cfe3fb569e46e.tar.gz |
Change mke2fs to create filesystems with the device opened in exclusive mode.
Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
Diffstat (limited to 'misc/mke2fs.c')
-rw-r--r-- | misc/mke2fs.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/misc/mke2fs.c b/misc/mke2fs.c index c80c1efd..7d9b8989 100644 --- a/misc/mke2fs.c +++ b/misc/mke2fs.c @@ -1429,7 +1429,7 @@ int main (int argc, char *argv[]) /* * Initialize the superblock.... */ - retval = ext2fs_initialize(device_name, 0, &fs_param, + retval = ext2fs_initialize(device_name, EXT2_FLAG_EXCLUSIVE, &fs_param, io_ptr, &fs); if (retval) { com_err(device_name, retval, _("while setting up superblock")); |