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 debian: Run wrap-and-sort from devscripts 2013-03-29 13:34:48 +01:00
ceph-fuse.install debian: Run wrap-and-sort from devscripts 2013-03-29 13:34:48 +01:00
ceph-mds.install
ceph-mds.postinst debian: guard upstart {start,stop} with -x check 2013-05-30 17:23:36 -07:00
ceph-mds.prerm debian: guard upstart {start,stop} with -x check 2013-05-30 17:23:36 -07:00
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 debian: guard upstart {start,stop} with -x check 2013-05-30 17:23:36 -07:00
ceph.postrm
ceph.prerm debian: guard upstart {start,stop} with -x check 2013-05-30 17:23:36 -07:00
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 debian: Run wrap-and-sort from devscripts 2013-03-29 13:34:48 +01:00
libcephfs-dev.install debian: Run wrap-and-sort from devscripts 2013-03-29 13:34:48 +01:00
libcephfs-java.jlibs
libcephfs-jni.install
librados2.install debian: Run wrap-and-sort from devscripts 2013-03-29 13:34:48 +01:00
librados-dev.install debian: Run wrap-and-sort from devscripts 2013-03-29 13:34:48 +01:00
librbd1.install debian: Run wrap-and-sort from devscripts 2013-03-29 13:34:48 +01:00
librbd-dev.install debian: Run wrap-and-sort from devscripts 2013-03-29 13:34:48 +01:00
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 debian: Run wrap-and-sort from devscripts 2013-03-29 13:34:48 +01:00
radosgw.postinst debian: guard upstart {start,stop} with -x check 2013-05-30 17:23:36 -07:00
radosgw.prerm debian: guard upstart {start,stop} with -x check 2013-05-30 17:23:36 -07:00
rbd-fuse.install
rest-bench.install
rules Correctly mark library modules 2013-11-25 16:19:25 +00:00
watch