Mail Archives: djgpp-workers/2003/01/27/01:06:55
On Sun, 26 Jan 2003, Richard Dawe wrote:
> According to SUSv2 'struct stat' should contain an st_blocks member, which is
> the number of blocks allocated for the object.
>
> Unless people think it's a good idea to add st_blocks, I'm not going to write
> a patch, because it will break backwards binary compatibility.
It's a question of practical needs, as always (given our scarce
resources). It's not hard to write the st_blocks support, although it's
not exactly trivial, either: the issue of ``what is a block and how to
find that on different types of media'' raises its ugly head again. The
important question is, how many programs out there use it without a
proper configure-time test and some reasonable fallback in case it is
not supported.
> coreutils 4.5.4 uses st_blocks in the 'stat' program.
What does `stat' do if st_blocks is not supported? Is the degradation in
functionality significant?
- Raw text -