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-crush-location: new crush location hook 2013-10-29 14:00:03 -07:00
ceph-fs-common.install
ceph-fuse.install
ceph-mds.install
ceph-mds.postinst
ceph-mds.prerm
ceph-resource-agents.install
ceph-test.install ceph-filestore-tool: add tool for fixing lost objects 2013-11-14 21:38:38 -08:00
ceph.dirs
ceph.docs
ceph.install Move rbdmap file to /etc/ceph 2013-07-02 16:53:11 +02:00
ceph.lintian-overrides
ceph.postinst
ceph.postrm
ceph.prerm
changelog v0.73 2013-12-10 04:55:36 +00:00
compat
control rbd: match against whole disks on unmap 2013-12-13 17:40:52 +02:00
copyright Merge pull request #638 from ceph/wip-bloom 2013-10-03 12:13:41 -07:00
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: create /var/log/radosgw in package, not init script 2013-10-16 16:16:16 -07:00
radosgw.install
radosgw.postinst
radosgw.prerm
rbd-fuse.install
rest-bench.install
rules Correctly mark library modules 2013-11-25 16:19:25 +00:00
watch