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 java: update deb bits from ceph-devel feedback 2012-10-19 10:22:38 -07:00
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 debian: move metadata server into ceph-mds 2012-06-27 20:25:13 -07:00
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 debian: build ceph-resource-agents 2012-01-05 13:46:09 -08:00
ceph-test.install ceph-filestore-tool: add tool for fixing lost objects 2013-11-14 21:38:38 -08:00
ceph.dirs debian: include /var/lib/ceph/bootstrap-mds in package 2013-02-13 12:30:22 -08:00
ceph.docs
ceph.install Move rbdmap file to /etc/ceph 2013-07-02 16:53:11 +02:00
ceph.lintian-overrides debian: add non-stripped exception for libcls_rgw rados class 2011-10-03 13:19:00 -07:00
ceph.postinst debian: guard upstart {start,stop} with -x check 2013-05-30 17:23:36 -07:00
ceph.postrm preserve /var/lib/ceph on deb/rpm purge 2013-03-22 15:24:51 -07:00
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 java: update deb bits from ceph-devel feedback 2012-10-19 10:22:38 -07:00
libcephfs-jni.install java: update deb bits from ceph-devel feedback 2012-10-19 10:22:38 -07:00
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 build: Add new rbd-fuse package 2013-01-31 20:35:26 -08:00
rest-bench.install debian: add rules for rest-bench 2012-05-04 15:55:34 -07:00
rules Correctly mark library modules 2013-11-25 16:19:25 +00:00
watch ceph.newdream.net -> ceph.com 2012-06-16 14:50:29 -07:00