ceph/systemd
David Disseldorp e58413abf4 rbdmap: unmap RBDMAPFILE images unless called with unmap-all
When called with a "map" parameter, the rbdmap script iterates the list
of images present in RBDMAPFILE (/etc/ceph/rbdmap), and maps each entry.
When called with "unmap", rbdmap currently iterates *all* mapped RBD
images and unmaps each one, regardless of whether it's listed in the
RBDMAPFILE or not.

This commit adds functionality such that only RBD images listed in the
configuration file are unmapped. This behaviour is the new default for
"rbdmap unmap". A new "unmap-all" parameter is added to offer the old
unmap-all-rbd-images behaviour, which is used by the systemd service.

Fixes: http://tracker.ceph.com/issues/18884

Signed-off-by: David Disseldorp <ddiss@suse.de>
2017-02-16 20:31:45 +01:00
..
50-ceph.preset systemd: add ceph-mgr service and target files 2016-09-29 17:27:08 +01:00
ceph doc: fix message typos in systemd 2015-11-23 16:50:07 +01:00
ceph-disk@.service systemd/ceph-disk: reduce ceph-disk flock contention 2016-11-28 17:55:39 +01:00
ceph-fuse.target systemd: add ceph-fuse service file 2016-12-01 19:51:37 -05:00
ceph-fuse@.service systemd: add ceph-fuse service file 2016-12-01 19:51:37 -05:00
ceph-mds.target
ceph-mds@.service systemd: make Ceph daemon units "want" time-sync.target 2016-04-23 17:48:08 +02:00
ceph-mgr.target systemd: add ceph-mgr service and target files 2016-09-29 17:27:08 +01:00
ceph-mgr@.service Fix startup of Ceph cluster manager daemon on Debian 8 2016-12-18 18:07:21 +05:00
ceph-mon.target
ceph-mon@.service systemd: Restart Mon after 10s in case of failure 2017-01-23 08:50:08 +01:00
ceph-osd.target
ceph-osd@.service systemd: Start OSDs after MONs 2017-01-25 12:39:46 +01:00
ceph-radosgw.target
ceph-radosgw@.service systemd: make Ceph daemon units "want" time-sync.target 2016-04-23 17:48:08 +02:00
ceph-rbd-mirror.target systemd: new ceph-rbd-mirror scripts 2016-03-18 17:51:23 -04:00
ceph-rbd-mirror@.service Drop any systemd imposed process/thread limits 2016-04-05 17:33:57 +01:00
ceph.target
ceph.tmpfiles.d
CMakeLists.txt systemd: add ceph-fuse service file 2016-12-01 19:51:37 -05:00
rbdmap.service rbdmap: unmap RBDMAPFILE images unless called with unmap-all 2017-02-16 20:31:45 +01:00