On 01/08/2018 09:41 AM, Joerg Schilling wrote:
POSIX explains that st_blocks counts in units of DEV_BSIZE.

That's not required by the standard. It's merely a comment in the <sys/stat.h> rationale "Traditionally, some implementations defined the multiplier for /st_blocks/ in /<sys/param.h>/ <http://pubs.opengroup.org/onlinepubs/9699919799/basedefs/sys_param.h.html> as the symbol DEV_BSIZE." The rationale also says that the st_blocks unit may vary from file to file, and that there's no relationship between it and st_blksize.


Reply via email to