]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
rbd: add rbd default map options config option
authorIlya Dryomov <idryomov@gmail.com>
Thu, 12 Mar 2015 11:27:32 +0000 (14:27 +0300)
committerIlya Dryomov <idryomov@gmail.com>
Thu, 12 Mar 2015 11:27:32 +0000 (14:27 +0300)
commit84adff4c743690b4293df6e1b328244ecb2cf949
tree4642a7a3c5d3cd1a63832e3ea3059c2d69279cc9
parentcd761bb6d32038a168ffa0e85919d8891e68930e
rbd: add rbd default map options config option

Allow supplying rbd map -o / --options through 'rbd default map
options' config option.  Options specified on the command line take
precedence on a per-option basis, i.e. default and cli options are
merged with a preference for the latter.  For example:

    # grep 'rbd default map options' ceph.conf
            rbd default map options = "ro,nocrc"
    # ./rbd map -o noshare,rw foo
    /dev/rbd0

results in a rw mapping with nocrc,noshare.

Signed-off-by: Ilya Dryomov <idryomov@gmail.com>
src/common/config_opts.h
src/rbd.cc