]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
os/bluestore/bluestore_types: FLAG_IMMUTABLE -> FLAG_MUTABLE
authorSage Weil <sage@redhat.com>
Wed, 11 May 2016 20:23:50 +0000 (16:23 -0400)
committerSage Weil <sage@redhat.com>
Wed, 1 Jun 2016 15:38:45 +0000 (11:38 -0400)
Signed-off-by: Sage Weil <sage@redhat.com>
src/os/bluestore/bluestore_types.cc
src/os/bluestore/bluestore_types.h

index c969bbe457972108e0fb82af6d4d81353a122e49..b9c007771c8b969615af47da880fd0711c99821b 100644 (file)
@@ -433,10 +433,10 @@ void bluestore_pextent_t::generate_test_instances(list<bluestore_pextent_t*>& ls
 string bluestore_blob_t::get_flags_string(unsigned flags)
 {
   string s;
-  if (flags & FLAG_IMMUTABLE) {
+  if (flags & FLAG_MUTABLE) {
     if (s.length())
       s += '+';
-    s += "immutable";
+    s += "mutable";
   }
   if (flags & FLAG_COMPRESSED) {
     if (s.length())
index c0a74ef3a5c8f5b1b7fa82f9b73f1f4f5830c01c..e2d2cb3132ef4d3996a6aaebb91d0655fcd755b7 100644 (file)
@@ -208,8 +208,8 @@ ostream& operator<<(ostream& out, const bluestore_overlay_t& o);
 /// blob: a piece of data on disk
 struct bluestore_blob_t {
   enum {
-    FLAG_IMMUTABLE = 1,     ///< blob cannot be overwritten or split
-    FLAG_COMPRESSED = 2,    ///< blob is compressed
+    FLAG_MUTABLE = 1,     ///< blob can be overwritten or split
+    FLAG_COMPRESSED = 2,  ///< blob is compressed
   };
   static string get_flags_string(unsigned flags);