From 99d6e84ff181d9944cd3eb4fe13c95d8277e026b Mon Sep 17 00:00:00 2001 From: Goldwyn Rodrigues Date: Thu, 8 Mar 2018 20:35:20 -0600 Subject: [PATCH] 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 --- io/pwrite.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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; } -- 2.47.2