Skip to content

Commit b9f6d44

Browse files
committed
rbd: advertise support for RBD_FEATURE_DEEP_FLATTEN
All copyups perform deep-copyup regardless of whether deep-flatten feature is enabled. The feature bit is used to ensure that image is written to only by new-enough clients that always perform deep-copyup. Signed-off-by: Ilya Dryomov <idryomov@gmail.com>
1 parent 9b17eb2 commit b9f6d44

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

drivers/block/rbd.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -115,12 +115,14 @@ static int atomic_dec_return_safe(atomic_t *v)
115115
#define RBD_FEATURE_LAYERING (1ULL<<0)
116116
#define RBD_FEATURE_STRIPINGV2 (1ULL<<1)
117117
#define RBD_FEATURE_EXCLUSIVE_LOCK (1ULL<<2)
118+
#define RBD_FEATURE_DEEP_FLATTEN (1ULL<<5)
118119
#define RBD_FEATURE_DATA_POOL (1ULL<<7)
119120
#define RBD_FEATURE_OPERATIONS (1ULL<<8)
120121

121122
#define RBD_FEATURES_ALL (RBD_FEATURE_LAYERING | \
122123
RBD_FEATURE_STRIPINGV2 | \
123124
RBD_FEATURE_EXCLUSIVE_LOCK | \
125+
RBD_FEATURE_DEEP_FLATTEN | \
124126
RBD_FEATURE_DATA_POOL | \
125127
RBD_FEATURE_OPERATIONS)
126128

0 commit comments

Comments
 (0)