os/bluestore/bluestore_types: FLAG_IMMUTABLE -> FLAG_MUTABLE

Signed-off-by: Sage Weil <sage@redhat.com>
This commit is contained in:
Sage Weil 2016-05-11 16:23:50 -04:00
parent a2fe7e26ec
commit 442c75978e
2 changed files with 4 additions and 4 deletions

View 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())

View 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);