Re: [PATCH 10/13] xfs_scrub: report all progressbar creation failures

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

 



On 9/25/19 4:34 PM, Darrick J. Wong wrote:
> From: Darrick J. Wong <darrick.wong@xxxxxxxxxx>
> 
> Always report failures when creating progress bars.
> 
> Signed-off-by: Darrick J. Wong <darrick.wong@xxxxxxxxxx>

Reviewed-by: Eric Sandeen <sandeen@xxxxxxxxxx>

> ---
>  scrub/progress.c |    4 +++-
>  1 file changed, 3 insertions(+), 1 deletion(-)
> 
> 
> diff --git a/scrub/progress.c b/scrub/progress.c
> index 08c7233e..5fda4ccb 100644
> --- a/scrub/progress.c
> +++ b/scrub/progress.c
> @@ -198,8 +198,10 @@ progress_init_phase(
>  	}
>  
>  	ret = pthread_create(&pt.thread, NULL, progress_report_thread, NULL);
> -	if (ret)
> +	if (ret) {
> +		str_liberror(ctx, ret, _("creating progress reporting thread"));
>  		goto out_ptcounter;
> +	}
>  
>  	return true;
>  
> 



[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