xfs_io: Add missing perror for write_once (-O)
PATCH 1/1 xfs_io: Add missing perror for write_once (-O)
From: Goldwyn Rodrigues <[email protected]>
This got missed in the last set of patches.
Signed-off-by Goldwyn Rodrigues <[email protected]>
--- io/pwrite.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-)
io/pwrite.c +3 -1
@@ -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 ; }
Signature · 1 line
2.14.2
Quoted 5 lines · Goldwyn Rodrigues
From: Goldwyn Rodrigues <[email protected]>
This got missed in the last set of patches.
Signed-off-by Goldwyn Rodrigues <[email protected]>
Sorry for missing this until now.
Reviewed-by Eric Sandeen <[email protected]>
Quoted 21 lines
--- io/pwrite.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-)io/pwrite.c +3
-1@@ -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 ; }