]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
libcephfs: define AT_NO_ATTR_SYNC back for backward compatibility 47182/head
authorXiubo Li <xiubli@redhat.com>
Wed, 20 Jul 2022 01:37:25 +0000 (09:37 +0800)
committerXiubo Li <xiubli@redhat.com>
Mon, 22 Aug 2022 06:09:31 +0000 (14:09 +0800)
This was introduce by commit e2a67f2a65553ad45721bb391081bc61aa97e0e9,
for the third part applications they may still use the old macro.

Add it back and marked it as deprecated.

Fixes: https://tracker.ceph.com/issues/56638
Signed-off-by: Xiubo Li <xiubli@redhat.com>
PendingReleaseNotes
src/include/cephfs/ceph_ll_client.h

index ddc6be10d149f89d3e56d5c43f22ec33f39f3e1c..a6014dca498916e1cfffa578ed83d99ff680dc38 100644 (file)
@@ -55,6 +55,8 @@
 * RBD: compare-and-write operation is no longer limited to 512-byte sectors.
   Assuming proper alignment, it now allows operating on stripe units (4M by
   default).
+* The 'AT_NO_ATTR_SYNC' macro is deprecated, please use the standard 'AT_STATX_DONT_SYNC'
+  macro. The 'AT_NO_ATTR_SYNC' macro will be removed in the future.
 
 >=17.2.1
 
index 2f2f6e696fcef1386f834f514c8e32aef90eae7a..ac5b7c2247178890e5e51ffe614a6dee0f6b694a 100644 (file)
@@ -99,6 +99,12 @@ struct ceph_statx {
 #define AT_STATX_DONT_SYNC     0x4000 /* Don't sync attributes with the server */
 #endif
 
+/*
+ * This is deprecated and just for backwards compatibility.
+ * Please use AT_STATX_DONT_SYNC instead.
+ */
+#define AT_NO_ATTR_SYNC                AT_STATX_DONT_SYNC /* Deprecated */
+
 /*
  * The statx interfaces only allow these flags. In order to allow us to add
  * others in the future, we disallow setting any that aren't recognized.