[LTP] [PATCH] tst_fill_fs: enhance the filesystem filling routine

Jan Stancek jstancek@redhat.com
Thu Nov 21 09:31:01 CET 2019


----- Original Message -----
> On 11/20/19 3:19 AM, Li Wang wrote:
> >     You don't need to reduce the write size in the first place. Kernel will
> >     happily do short writes for you if the file system somehow finds some
> > 
> > 
> > You're probably right, but here I just want to enhance the tst_fill_fs
> > routine, it obviously couldn't  be guaranteed way to perfectly fill a
> > filesystem, this action from userspace is what I can think of.
> 
> I was also talking about enhancing tst_fill_fs(). You can simply repeat
> write()s with the maximum size until you're sure the file system is
> really full.

I'd rather we mirror xfstests, which halves the length on ENOSPC.

> Reducing the write size and then also using the write size
> as iteration counter

We could do fixed number of retries. In the end it still feels
like rain dance.



More information about the ltp mailing list