]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
libcephfs: define AT_NO_ATTR_SYNC back for backward compatibility 47862/head
authorXiubo Li <xiubli@redhat.com>
Wed, 20 Jul 2022 01:37:25 +0000 (09:37 +0800)
committerXiubo Li <xiubli@redhat.com>
Tue, 30 Aug 2022 04:15:15 +0000 (12:15 +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>
(cherry picked from commit bb0d56a93a57b76cc5f07c4ad19a1790858ff882)
Conflicts: PendingReleaseNotes

PendingReleaseNotes
src/include/cephfs/ceph_ll_client.h

index ca705eefc8e3d7b7cbf2e1b3f2412d4fdc6c1d51..3ee6ade8cfdd14df211e61d0ef9817560017d8e7 100644 (file)
   in certain recovery scenarios, e.g., monitor database lost and rebuilt, and
   the restored file system is expected to have the same ID as before.
 
+>=16.2.11
+--------
+
+* Cephfs: 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.
+
 >=16.2.8
 --------
 
index 53cccc8504014a949bf02ecc4b4b8509346e415f..7709a6de490779e72dc29893141afd35a1d4ba38 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.