summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMykola Golub <mgolub@suse.com>2020-04-28 15:14:24 +0200
committerMykola Golub <mgolub@suse.com>2020-05-09 17:36:49 +0200
commit8b6e38a6bfdf618aa4667ede0bde43594f7172ce (patch)
treef824ca530074ac0db7277fe120b1c2597f50ab5b
parentrbd-nbd: script that can be hooked to quiesce/unquiesce events (diff)
downloadceph-8b6e38a6bfdf618aa4667ede0bde43594f7172ce.tar.xz
ceph-8b6e38a6bfdf618aa4667ede0bde43594f7172ce.zip
rpm,deb: add quiesce hook script to rbd-nbd package
Signed-off-by: Mykola Golub <mgolub@suse.com>
-rw-r--r--ceph.spec.in3
-rw-r--r--debian/rbd-nbd.install1
-rwxr-xr-xdebian/rules1
3 files changed, 5 insertions, 0 deletions
diff --git a/ceph.spec.in b/ceph.spec.in
index 8024b99749a..e12b8f07702 100644
--- a/ceph.spec.in
+++ b/ceph.spec.in
@@ -1289,6 +1289,7 @@ install -m 0644 -D src/logrotate.conf %{buildroot}%{_sysconfdir}/logrotate.d/cep
chmod 0644 %{buildroot}%{_docdir}/ceph/sample.ceph.conf
install -m 0644 -D COPYING %{buildroot}%{_docdir}/ceph/COPYING
install -m 0644 -D etc/sysctl/90-ceph-osd.conf %{buildroot}%{_sysctldir}/90-ceph-osd.conf
+install -m 0755 -D src/tools/rbd_nbd/rbd-nbd_quiesce %{buildroot}%{_libexecdir}/rbd-nbd/rbd-nbd_quiesce
install -m 0755 src/cephadm/cephadm %{buildroot}%{_sbindir}/cephadm
mkdir -p %{buildroot}%{_sharedstatedir}/cephadm
@@ -1931,6 +1932,8 @@ fi
%files -n rbd-nbd
%{_bindir}/rbd-nbd
%{_mandir}/man8/rbd-nbd.8*
+%dir %{_libexecdir}/rbd-nbd
+%{_libexecdir}/rbd-nbd/rbd-nbd_quiesce
%files radosgw
%{_bindir}/ceph-diff-sorted
diff --git a/debian/rbd-nbd.install b/debian/rbd-nbd.install
index 385c4501f77..c3768b9d24e 100644
--- a/debian/rbd-nbd.install
+++ b/debian/rbd-nbd.install
@@ -1,2 +1,3 @@
usr/bin/rbd-nbd
usr/share/man/man8/rbd-nbd.8
+usr/lib/rbd-nbd/rbd-nbd_quiesce
diff --git a/debian/rules b/debian/rules
index 8f2e9afa43d..de9d22afae2 100755
--- a/debian/rules
+++ b/debian/rules
@@ -63,6 +63,7 @@ override_dh_auto_install:
install -D -m 644 etc/sysctl/90-ceph-osd.conf $(DESTDIR)/etc/sysctl.d/30-ceph-osd.conf
install -D -m 600 sudoers.d/ceph-osd-smartctl $(DESTDIR)/etc/sudoers.d/ceph-osd-smartctl
install -D -m 600 sudoers.d/cephadm $(DESTDIR)/etc/sudoers.d/cephadm
+ install -D -m 755 src/tools/rbd_nbd/rbd-nbd_quiesce $(DESTDIR)/usr/lib/rbd-nbd/rbd-nbd_quiesce
install -m 755 src/cephadm/cephadm $(DESTDIR)/usr/sbin/cephadm