]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
rbd: spell out image features unsupported by the kernel 13812/head
authorIlya Dryomov <idryomov@gmail.com>
Mon, 6 Mar 2017 12:59:21 +0000 (13:59 +0100)
committerIlya Dryomov <idryomov@gmail.com>
Fri, 10 Mar 2017 20:03:09 +0000 (21:03 +0100)
commiteec00159e028a29524ed1f3d88636eb64785fafa
treed45a9f7f27ffe2a1dc0031fd643ca6bbb5bbc590
parent8786b4c8fe27a9ed9a685dce1283c279ad418832
rbd: spell out image features unsupported by the kernel

/sys/bus/rbd/supported_features is available on kernels starting with
4.11.  Example output:

    $ sudo rbd map x
    rbd: sysfs write failed
    RBD image feature set mismatch. This image cannot be mapped because the following immutable features are unsupported by the kernel: data-pool.
    In some cases useful info is found in syslog - try "dmesg | tail".
    rbd: map failed: (6) No such device or address

    $ sudo rbd map -p foo y
    rbd: sysfs write failed
    RBD image feature set mismatch. You can disable features unsupported by the kernel with "rbd feature disable foo/y object-map fast-diff deep-flatten".
    In some cases useful info is found in syslog - try "dmesg | tail".
    rbd: map failed: (6) No such device or address

or, if /sys/bus/rbd/supported_features isn't there:

    $ sudo rbd map z
    rbd: sysfs write failed
    RBD image feature set mismatch. Try disabling features unsupported by the kernel with "rbd feature disable".
    In some cases useful info is found in syslog - try "dmesg | tail".
    rbd: map failed: (6) No such device or address

Fixes: http://tracker.ceph.com/issues/19095
Signed-off-by: Ilya Dryomov <idryomov@gmail.com>
src/tools/rbd/action/Kernel.cc