Re: [PATCH] Make fill_device to stop writing on EDQUOT

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

 



On Sat, Aug 29, 2020 at 03:17:39PM -0600, Jens Axboe wrote:
> On 8/29/20 2:34 PM, Martin Bukatovic wrote:
> > diff --git a/filesetup.c b/filesetup.c
> > index d382fa24..39a17521 100644
> > --- a/filesetup.c
> > +++ b/filesetup.c
> > @@ -233,6 +233,10 @@ static int extend_file(struct thread_data *td, struct fio_file *f)
> >  						 "file, stopping\n");
> >  					break;
> >  				}
> > +				if (__e == EDQUOT) {
> > +					if (td->o.fill_device)
> > +						break;
> > +				}
> >  				td_verror(td, errno, "write");
> >  			} else
> >  				td_verror(td, EIO, "write");
> 
> This should just extent the previous ENOSPC check, and modify the
> print statement as well.

Fixed in v2 of the patch.

-- 
Martin Bukatovič



[Index of Archives]     [Linux Kernel]     [Linux SCSI]     [Linux IDE]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux SCSI]

  Powered by Linux