[samba PATCH] vfs:ceph: convert to using ceph_statx structures and functions, when available
Jeff Layton
jlayton at samba.org
Thu Sep 8 14:29:44 UTC 2016
Add a configure test for the ceph_statx function, and use that to
determine whether to compile in new functions that use it and its
variants, or whether to use a the older code that fetches birthtimes
from an xattr.
For cephwrap_lstat, we can use ceph_statx with the AT_SYMLINK_NOFOLLOW
flag to get the right lookup semantics.
For setting the times via cephwrap_ntimes, We can just use ceph_setattrx
and pass them all in at the same time.
Signed-off-by: Jeff Layton <jlayton at redhat.com>
---
source3/modules/vfs_ceph.c | 216 ++++++++++++++++++++++++++++++++++++++-------
source3/wscript | 2 +
2 files changed, 185 insertions(+), 33 deletions(-)
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-vfs-ceph-convert-to-using-ceph_statx-structures-and-.patch
Type: text/x-patch
Size: 8811 bytes
Desc: not available
URL: <http://lists.samba.org/pipermail/samba-technical/attachments/20160908/084ec745/0001-vfs-ceph-convert-to-using-ceph_statx-structures-and-.bin>
More information about the samba-technical
mailing list