summaryrefslogtreecommitdiffstats
path: root/sys-utils/fallocate.c
diff options
context:
space:
mode:
authorKarel Zak2015-08-25 15:34:09 +0200
committerKarel Zak2015-08-25 15:34:09 +0200
commit049bfa066c8063585a8b685a059dd2a19f25b99c (patch)
tree30f05aee20bd1a1c7ec74134fa15149a8d8f3e88 /sys-utils/fallocate.c
parentbuild-sys: release++ (v2.27-rc2) (diff)
downloadkernel-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.c2
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"));
}
}