diff options
author | Karel Zak | 2015-08-25 15:34:09 +0200 |
---|---|---|
committer | Karel Zak | 2015-08-25 15:34:09 +0200 |
commit | 049bfa066c8063585a8b685a059dd2a19f25b99c (patch) | |
tree | 30f05aee20bd1a1c7ec74134fa15149a8d8f3e88 /sys-utils/fallocate.c | |
parent | build-sys: release++ (v2.27-rc2) (diff) | |
download | kernel-qcow2-util-linux-049bfa066c8063585a8b685a059dd2a19f25b99c.tar.gz kernel-qcow2-util-linux-049bfa066c8063585a8b685a059dd2a19f25b99c.tar.xz kernel-qcow2-util-linux-049bfa066c8063585a8b685a059dd2a19f25b99c.zip |
fallocate: fix error message
FALLOC_FL_KEEP_SIZE flag is generic and used in many situations,
"-n" in the error message does not make sense.
Addresses: https://bugzilla.redhat.com/show_bug.cgi?id=1146152
Signed-off-by: Karel Zak <kzak@redhat.com>
Diffstat (limited to 'sys-utils/fallocate.c')
-rw-r--r-- | sys-utils/fallocate.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sys-utils/fallocate.c b/sys-utils/fallocate.c index 0cf32ecb3..4f2f74ea8 100644 --- a/sys-utils/fallocate.c +++ b/sys-utils/fallocate.c @@ -123,7 +123,7 @@ static void xfallocate(int fd, int mode, off_t offset, off_t length) */ if (error < 0) { if ((mode & FALLOC_FL_KEEP_SIZE) && errno == EOPNOTSUPP) - errx(EXIT_FAILURE, _("keep size mode (-n option) unsupported")); + errx(EXIT_FAILURE, _("fallocate failed: keep size mode is unsupported")); err(EXIT_FAILURE, _("fallocate failed")); } } |