Should DEV_BSIZE be defined?
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
lsb |
In Progress
|
Medium
|
Unassigned | ||
Mandriva |
In Progress
|
Medium
|
Bug Description
The <sys/stat.h> description in POSIX contains the following wording:
"The unit for the st_blocks member of the stat structure is not defined within
POSIX.1-200x. In some implementations it is 512 bytes. It may differ on a file
system basis. There is no correlation between values of the st_blocks and
st_blksize, and the f_bsize (from <sys/statvfs.h>) structure members.
Traditionally, some implementations defined the multiplier for st_blocks in
<sys/param.h> as the symbol DEV_BSIZE."
In case of LSB, will it be safe to define DEV_BSIZE to 512, as it is done in
glibc?
Note also that glibc headers provide S_BLKSIZE constant which has the same
meaning (and seems to historically come from BSD).
Changed in mandriva: | |
importance: | Unknown → Medium |
status: | Unknown → In Progress |
tags: | added: zdecide |