Skip to content

Commit

Permalink
rbd: update default image features
Browse files Browse the repository at this point in the history
Exclusive lock, object map, fast-diff, and deep-flatten have been
enabled by default for all new images.

Signed-off-by: Jason Dillaman <[email protected]>
  • Loading branch information
Jason Dillaman committed Mar 1, 2016
1 parent d5c9349 commit d24883e
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 4 deletions.
8 changes: 8 additions & 0 deletions PendingReleaseNotes
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,14 @@ v10.0.0
limit max waiting time of monitor election process, which was previously
restricted by 'mon_lease'.

* The default RBD image features for new images have been updated to enable
the following: exclusive lock, object map, fast-diff, and deep-flatten.
These features are not currently supported by the RBD kernel driver nor older
RBD clients. These features can be disabled on a per-image basis via the RBD
CLI or the default features can be updated to the pre-Jewel setting by adding
the following to the client section of the Ceph configuration file:
rbd default features = 1

v9.3.0
======
* Some symbols wrongly exposed by librados in v9.1.0 and v9.2.0 were removed.
Expand Down
8 changes: 5 additions & 3 deletions src/common/config_opts.h
Original file line number Diff line number Diff line change
Expand Up @@ -1118,9 +1118,11 @@ OPTION(rbd_default_format, OPT_INT, 2)
OPTION(rbd_default_order, OPT_INT, 22)
OPTION(rbd_default_stripe_count, OPT_U64, 0) // changing requires stripingv2 feature
OPTION(rbd_default_stripe_unit, OPT_U64, 0) // changing to non-object size requires stripingv2 feature
OPTION(rbd_default_features, OPT_INT, 3) // only applies to format 2 images
// +1 for layering, +2 for stripingv2,
// +4 for exclusive lock, +8 for object map
OPTION(rbd_default_features, OPT_INT, 61) // only applies to format 2 images
// +1 for layering, +2 for stripingv2,
// +4 for exclusive lock, +8 for object map
// +16 for fast-diff, +32 for deep-flatten,
// +64 for journaling

OPTION(rbd_default_map_options, OPT_STR, "") // default rbd map -o / --options

Expand Down
2 changes: 1 addition & 1 deletion src/test/pybind/test_rbd.py
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,7 @@ def check_default_params(format, order=None, features=None, stripe_count=None,

expected_features = features
if expected_features is None or format == 1:
expected_features = 0 if format == 1 else 3
expected_features = 0 if format == 1 else 61
eq(expected_features, image.features())

expected_stripe_count = stripe_count
Expand Down

0 comments on commit d24883e

Please sign in to comment.