[Rpm-maint] statfs/statvfs block size
mls at suse.de
Tue Aug 20 12:45:02 UTC 2013
[also back from vacation]
On Thu, Aug 15, 2013 at 08:40:55AM +0300, Panu Matilainen wrote:
> I had a look at this some time ago, probably while looking for a cure for
Oh, you already know about the problem with NFS. I asked our kernel
guys and they said there's no way to get the block size of the
remote system and that I should implement some max block size value
The block size IMHO only matters for "rounding up" file sizes, assuming
a file always needs one block. This is not true for some file systems
like reiserfs, so it's kind of questionable anyways.
> but in my (limited)
> experiments on this, f_frsize was always just the same as f_bsize so I
> ended up leaving it alone.
> Do you have a case where it actually makes a difference?
AFAIK it (currently) can't be different on a linux system. But maybe
someone wants to use rpm on some other OS where it makes a difference.
I'll create a patch for the "max block size".
Michael Schroeder mls at suse.de
SUSE LINUX Products GmbH, GF Jeff Hawn, HRB 16746 AG Nuernberg
More information about the Rpm-maint