X-Git-Url: https://erislabs.net/gitweb/?a=blobdiff_plain;ds=inline;f=lib%2Fstat-size.h;h=47306c883c2924b5c16c56734c93aa04f7d1de5b;hb=6417476607d4f04b1a7abf97fbfbb6bd2709e724;hp=afd4967948fa4c9169d3870a7ccfd9803d404eac;hpb=1602f0afed21be664fcf5c42d59db07cc22c56d6;p=gnulib.git diff --git a/lib/stat-size.h b/lib/stat-size.h index afd496794..47306c883 100644 --- a/lib/stat-size.h +++ b/lib/stat-size.h @@ -49,7 +49,7 @@ -/* Extract or fake data from a `struct stat'. +/* Extract or fake data from a 'struct stat'. ST_BLKSIZE: Preferred I/O blocksize for the file, in bytes. ST_NBLOCKS: Number of blocks in the file, including indirect blocks. ST_NBLOCKSIZE: Size of blocks used when calculating ST_NBLOCKS. */ @@ -67,10 +67,10 @@ # endif #else /* Some systems, like Sequents, return st_blksize of 0 on pipes. - Also, when running `rsh hpux11-system cat any-file', cat would + Also, when running 'rsh hpux11-system cat any-file', cat would determine that the output stream had an st_blksize of 2147421096. Conversely st_blksize can be 2 GiB (or maybe even larger) with XFS - on 64-bit hosts. Somewhat arbitrarily, limit the `optimal' block + on 64-bit hosts. Somewhat arbitrarily, limit the "optimal" block size to SIZE_MAX / 8 + 1. (Dividing SIZE_MAX by only 4 wouldn't suffice, since "cat" sometimes multiplies the result by 4.) If anyone knows of a system for which this limit is too small, please