Re: [PATCH] xfs_io: Add missing perror for write_once (-O)

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 12/6/17 12:36 PM, Goldwyn Rodrigues wrote:
> From: Goldwyn Rodrigues <rgoldwyn@xxxxxxxx>
> 
> This got missed in the last set of patches.
> 
> Signed-off-by: Goldwyn Rodrigues <rgoldwyn@xxxxxxxx>

Sorry for missing this until now.

Reviewed-by: Eric Sandeen <sandeen@xxxxxxxxxx>

> ---
>  io/pwrite.c | 4 +++-
>  1 file changed, 3 insertions(+), 1 deletion(-)
> 
> diff --git a/io/pwrite.c b/io/pwrite.c
> index a89edfd0..afbe4284 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;
>  }
> 
--
To unsubscribe from this list: send the line "unsubscribe linux-xfs" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html



[Index of Archives]     [XFS Filesystem Development (older mail)]     [Linux Filesystem Development]     [Linux Audio Users]     [Yosemite Trails]     [Linux Kernel]     [Linux RAID]     [Linux SCSI]


  Powered by Linux