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

Martin Doucha mdoucha@suse.cz
Wed Nov 20 10:07:15 CET 2019


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. Reducing the write size and then also using the write size
as iteration counter creates some really nasty edge cases that can be
easily avoided.

-- 
Martin Doucha   mdoucha@suse.cz
QA Engineer for Software Maintenance
SUSE LINUX, s.r.o.
CORSO IIa
Krizikova 148/34
186 00 Prague 8
Czech Republic


More information about the ltp mailing list