]> git.proxmox.com Git - ceph.git/blobdiff - ceph/src/librbd/image/RefreshRequest.h
import ceph nautilus 14.2.2
[ceph.git] / ceph / src / librbd / image / RefreshRequest.h
index 9dd21157ee26d0b319511a8032b33a6d262b7433..dc1d86b33cc4ab16f590c45836c3171ad7c0fe97 100644 (file)
@@ -120,6 +120,12 @@ private:
    * @endverbatim
    */
 
+  enum LegacySnapshot {
+    LEGACY_SNAPSHOT_DISABLED,
+    LEGACY_SNAPSHOT_ENABLED,
+    LEGACY_SNAPSHOT_ENABLED_NO_TIMESTAMP
+  };
+
   ImageCtxT &m_image_ctx;
   bool m_acquiring_lock;
   bool m_skip_open_parent_image;
@@ -136,7 +142,7 @@ private:
   bufferlist m_out_bl;
 
   bool m_legacy_parent = false;
-  bool m_legacy_snapshot = false;
+  LegacySnapshot m_legacy_snapshot = LEGACY_SNAPSHOT_DISABLED;
 
   uint8_t m_order = 0;
   uint64_t m_size = 0;