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>
This commit is contained in:
parent
0e58e16936
commit
049bfa066c
1 changed files with 1 additions and 1 deletions
|
@ -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"));
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue