Messages in this thread | | | Subject | Re: [PATCH] Add a pair of system calls to make extended file stats available [ver #3] | From | Andreas Dilger <> | Date | Fri, 2 Jul 2010 09:49:52 -0600 |
| |
On 2010-07-01, at 23:36, Michael Kerrisk wrote: > * Include information from the "inode_info" structure, most notably > i_flags, but perhaps other info as well.
This one is actually pretty interesting, though instead of exporting the i_flags directly (the S_* flags), it would be much better to export the FS_*_FL values. The FS_*_FL values (e.g. FS_IMMUTABLE_FL) are already exposed to userspace via FS_IOC_{GET,SET}FLAGS and are stored on disk in ext2/3/4, so are guaranteed never to change. The S_* flags DO in fact change between kernel releases.
Cheers, Andreas
| |