[LTP] [PATCH 1/2] Update syscalls/fsync02 to new API
Petr Vorel
pvorel@suse.cz
Thu Mar 26 11:13:41 CET 2020
Hi Jozef, Martin,
> > > f_bavail = (stat_buf.f_bavail * stat_buf.f_frsize) /
> > > BLOCKSIZE;
> > Looks like the original test has another bug here. The correct
> > calculation is:
> > f_bavail = (stat_buf.f_bavail * stat_buf.f_bsize) / BLOCKSIZE;
> > f_frsize is the fragment size, a fraction of a real block used for
> > features like tail packing (stuffing multiple small files into the
> > same physical block). But file systems which don't support tail
> > packing generally have f_frsize == f_bsize.
> > Sorry for not noticing this earlier. Could you include a fix for this
> > in the second patch?
Martin, thanks for catching this.
> No problem Martin, I will fix it.
Thanks, Jozef. Waiting for v2.
Kind regards,
Petr
More information about the ltp
mailing list