Hi folks,
There are two parts to this patchset. The first is ensuring that
xfsprogs builds correctly with the new kernel header provided
definitions of XFS_IOC_FS[SG]SETXATTR and it's flags. I modified
my original approach to this to hide the definitions of the FS*
ioctl and flags in the platofrm headers if the system didn't provide
them.
While this does result in some duplication, it solves the problem of
needing different definitions for FS_IOC_FS[SG]ETXATTR on different
platforms - they are different ioctl names on IRIX, so we can't just
define it once in xfs_fs.h. The detection can also then be different
- we only include the definitions on linux if we don't have the
system version, and on the other platforms it retains the
HAVE_FSXATTR guards.
The second and third patches are adding support for the FS_XFLAG_DAX
and enabling xfs_io to set, get and clear the flag. Actual support
of the on disk flag in libxfs will come in a later patchset that
adds support into db and repair, too. This is the patchset I used to
test the kernel side flag support.
Comments and testing welcome.
Cheers,
Dave.
|