summaryrefslogtreecommitdiffstats
path: root/udev
diff options
context:
space:
mode:
authorSage Weil <sage@inktank.com>2013-02-14 02:30:19 +0100
committerSage Weil <sage@inktank.com>2013-02-14 07:18:59 +0100
commit5bd85ee5aa31bfd1f4f0e434f08c2a19414358ef (patch)
treecccbfaf5d61f5d3b5d0932ca81fac81a9256ba17 /udev
parentceph-disk-activate: auto detect init system (diff)
downloadceph-5bd85ee5aa31bfd1f4f0e434f08c2a19414358ef.tar.xz
ceph-5bd85ee5aa31bfd1f4f0e434f08c2a19414358ef.zip
udev: trigger ceph-disk-activate directly from udev
There is no need to depend on upstart for this. Signed-off-by: Sage Weil <sage@inktank.com>
Diffstat (limited to 'udev')
-rw-r--r--udev/95-ceph-osd.rules5
1 files changed, 5 insertions, 0 deletions
diff --git a/udev/95-ceph-osd.rules b/udev/95-ceph-osd.rules
new file mode 100644
index 00000000000..c3e05bb6ace
--- /dev/null
+++ b/udev/95-ceph-osd.rules
@@ -0,0 +1,5 @@
+# activate ceph-tagged partitions
+ACTION=="add", SUBSYSTEM=="block", \
+ ENV{DEVTYPE}=="partition", \
+ ENV{ID_PART_ENTRY_TYPE}=="4fbd7e29-9d25-41b8-afd0-062c0ceff05d", \
+ RUN+="/usr/sbin/ceph-disk-activate --mount /dev/$name"