From: Goldwyn Rodrigues Date: Fri, 9 Mar 2018 02:35:20 +0000 (-0600) Subject: xfs_io: Add missing perror for write_once (-O) X-Git-Tag: v4.16.0-rc1~60 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=99d6e84ff181d9944cd3eb4fe13c95d8277e026b;p=thirdparty%2Fxfsprogs-dev.git xfs_io: Add missing perror for write_once (-O) This got missed in the last set of patches. Signed-off-by: Goldwyn Rodrigues Reviewed-by: Eric Sandeen Signed-off-by: Eric Sandeen --- diff --git a/io/pwrite.c b/io/pwrite.c index a89edfd04..afbe42844 100644 --- a/io/pwrite.c +++ b/io/pwrite.c @@ -271,8 +271,10 @@ write_once( { ssize_t bytes; bytes = do_pwrite(file->fd, offset, count, count, pwritev2_flags); - if (bytes < 0) + if (bytes < 0) { + perror("pwrite"); return -1; + } *total = bytes; return 1; }