ceph/osd_client: GETXATTR support
Get series with b4
b4 am [email protected]Versions newest first
- v1 Latest0 of 1 patch 0 repliesNew
Patches in v1 No applies recorded yet
The patch the cover letter announces is not in this archive.
Reviews trailers per patch
No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.
Cover letter [PATCH 0/1] ceph/osd_client: GETXATTR support
The following patch adds support for xattr retrieval via CEPH_OSD_OP_GETXATTR. This allows for future RBD Persistent Reservation support to implemented with state retained in an xattr on the RBD header object.
RBD get/set/cmpset xattr functionality can be tested using the debug DEVICE_ATTR patches found at:
https://git.samba.org/?p=ddiss/linux.git;a=shortlog;h=refs/heads/rbd_xattrs
E.g.
dracut:/# echo "key" > /sys/devices/rbd/0/getxattr sh: echo: write error: No data available dracut:/# echo "key val1" > /sys/devices/rbd/0/setxattr dracut:/# echo "key" > /sys/devices/rbd/0/getxattr [ 95.842774] rbd: rbd0: key: val1 dracut:/# echo "key val1 val2" > /sys/devices/rbd/0/cmpsetxattr dracut:/# echo "key" > /sys/devices/rbd/0/getxattr [ 129.868432] rbd: rbd0: key: val2 dracut:/# echo "key val1 val2" > /sys/devices/rbd/0/cmpsetxattr sh: echo: write error: Operation canceled dracut:/# echo "key val2 val3" > /sys/devices/rbd/0/cmpsetxattr dracut:/# echo "key" > /sys/devices/rbd/0/getxattr [ 152.532082] rbd: rbd0: key: val3
Cheers, David