mirror of
https://github.com/ceph/ceph
synced 2024-12-28 06:23:08 +00:00
462b3898e5
Currently the way 'rbd unmap' translates a user-provided block device into an rbd id is it matches the major number of the specified device against /sys/bus/rbd/devices/<id>/major for each rbd mapping and declares success on the first match. This works for both entire disks and partitions, because under the current device number allocation scheme, each mapping means a new major number. In preparation for support for single-major device number allocation scheme, which would require matching both major and minor numbers, make sure to always match against entire disk device numbers, by converting the specified device major:minor pair into wholdedisk major:minor pair. To achive that, use the libblkid library, which accomplishes this goal by walking stable sysfs structures. Signed-off-by: Ilya Dryomov <ilya.dryomov@inktank.com> |
||
---|---|---|
.. | ||
source | ||
.gitignore | ||
ceph-common.install | ||
ceph-fs-common.install | ||
ceph-fuse.install | ||
ceph-mds.install | ||
ceph-mds.postinst | ||
ceph-mds.prerm | ||
ceph-resource-agents.install | ||
ceph-test.install | ||
ceph.dirs | ||
ceph.docs | ||
ceph.install | ||
ceph.lintian-overrides | ||
ceph.postinst | ||
ceph.postrm | ||
ceph.prerm | ||
changelog | ||
compat | ||
control | ||
copyright | ||
libcephfs1.install | ||
libcephfs-dev.install | ||
libcephfs-java.jlibs | ||
libcephfs-jni.install | ||
librados2.install | ||
librados-dev.install | ||
librbd1.install | ||
librbd-dev.install | ||
python-ceph.install | ||
radosgw.dirs | ||
radosgw.install | ||
radosgw.postinst | ||
radosgw.prerm | ||
rbd-fuse.install | ||
rest-bench.install | ||
rules | ||
watch |