Whamcloud - gitweb
mke2fs: fix for the "-E offset=N" option
authorMarcus Huewe <suse-tux@gmx.de>
Sun, 27 Mar 2016 02:26:40 +0000 (22:26 -0400)
committerTheodore Ts'o <tytso@mit.edu>
Sun, 27 Mar 2016 02:26:40 +0000 (22:26 -0400)
commitcba3fd5ca1e90fafe20386af41bb5aeeae3e3fd2
tree15ab01914583178c39af89af7b6499f4d0439777
parenta7ac9c222d117a1ab2c95c8b220e135ea1b042f0
mke2fs: fix for the "-E offset=N" option

Configure the io channel with the specified offset before
calling mke2fs_discard_device(). Otherwise the data before offset
is discarded.

Signed-off-by: Marcus Huewe <suse-tux@gmx.de>
Signed-off-by: Theodore Ts'o <tytso@mit.edu>
misc/mke2fs.c