]> git.proxmox.com Git - ceph.git/blobdiff - ceph/src/mds/snap.h
import 15.2.9
[ceph.git] / ceph / src / mds / snap.h
index 9ebadb1255bb380d0810c3bbf47b91dc135521ef..8081316d4df35affbc7a066b590ba01e423f10b7 100644 (file)
@@ -74,6 +74,10 @@ struct sr_t {
   void clear_parent_global() { flags &= ~PARENT_GLOBAL; }
   bool is_parent_global() const { return flags & PARENT_GLOBAL; }
 
+  void mark_subvolume() { flags |= SUBVOLUME; }
+  void clear_subvolume() { flags &= ~SUBVOLUME; }
+  bool is_subvolume() const { return flags & SUBVOLUME; }
+
   void encode(bufferlist &bl) const;
   void decode(bufferlist::const_iterator &bl);
   void dump(Formatter *f) const;
@@ -90,7 +94,8 @@ struct sr_t {
 
   __u32 flags = 0;
   enum {
-    PARENT_GLOBAL = 1 << 0,
+    PARENT_GLOBAL      = 1 << 0,
+    SUBVOLUME          = 1 << 1,
   };
 };
 WRITE_CLASS_ENCODER(sr_t)