Whamcloud - gitweb
mke2fs: If the device supports discard, don't print an error message
authorTheodore Ts'o <tytso@mit.edu>
Mon, 28 Feb 2011 01:09:54 +0000 (20:09 -0500)
committerTheodore Ts'o <tytso@mit.edu>
Mon, 28 Feb 2011 01:09:54 +0000 (20:09 -0500)
commitaa07cb79b0a38d9d8407c5631624ef8534bdde3f
tree887450721a1fa0309daac0c929f1f929103dbcb1
parent829d9994880394e48c883510799b1536812d6efb
mke2fs: If the device supports discard, don't print an error message

Check to see if the device supports discard before starting the
progress bar, and then printing an error about inappropriate ioctl for
device (when creating a file system image to a file, for example).

Also, add a function signature in the ext2_io.h header file for
io_channel_discard() and fix an extra, uneeded argument in mke2fs's
call to that function.

Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
lib/ext2fs/ext2_io.h
misc/mke2fs.c