]> git.ipfire.org Git - thirdparty/util-linux.git/commit
mkfs.cramfs: error printing fixes
authorSami Kerola <kerolasa@iki.fi>
Wed, 20 Jul 2011 20:21:09 +0000 (22:21 +0200)
committerSami Kerola <kerolasa@iki.fi>
Thu, 21 Jul 2011 22:00:28 +0000 (00:00 +0200)
commit16154b1fcf07bf5608577c0320ff296622cb7bca
treec16508d394902433deb6eb299c0d39fd92d8389b
parent11bcb6523a242059aa124a1fb2ffcfdb3cd777a4
mkfs.cramfs: error printing fixes

The patch will fix few starange looking errors such as:

$ mkfs.cramfs -N foo
invalid endianness given. Must be 'big', 'little', or 'host': Success

to be more sensible:
mkfs.cramfs: invalid endianness given. Must be 'big', 'little', or 'host'

And there are couple new return value checks to stop command if
out file cannot be opened, or an IO error occurs.

Signed-off-by: Sami Kerola <kerolasa@iki.fi>
disk-utils/mkfs.cramfs.c