1
0
mirror of https://github.com/ceph/ceph synced 2025-01-18 00:43:38 +00:00
ceph/debian
Ilya Dryomov 462b3898e5 rbd: match against whole disks on unmap
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>
2013-12-13 17:40:52 +02:00
..
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 rbd: match against whole disks on unmap 2013-12-13 17:40:52 +02:00
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