lsb

Should DEV_BSIZE be defined?

Bug #1329455 reported by Jeff Johnson
6
This bug affects 1 person
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).

Tags: spec zdecide
Changed in mandriva:
importance: Unknown → Medium
status: Unknown → In Progress
Jeff Johnson (n3npq)
tags: added: zdecide
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Related blueprints

Remote bug watches

Bug watches keep track of this bug in other bug trackers.