|
From: | Paul Eggert |
Subject: | Re: [Bug-tar] Detection of sparse files is broken on btrfs |
Date: | Mon, 8 Jan 2018 09:49:01 -0800 |
User-agent: | Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.5.0 |
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.
[Prev in Thread] | Current Thread | [Next in Thread] |