diff --git a/Makefile b/Makefile index 684f28ac..f94113a3 100644 --- a/Makefile +++ b/Makefile @@ -9,7 +9,7 @@ install: make-bcache probe-bcache install -m0755 probe-bcache $(DESTDIR)/sbin/ install -m0644 61-bcache.rules $(DESTDIR)/lib/udev/rules.d/ install -m0755 initramfs $(DESTDIR)/usr/share/initramfs-tools/hooks/bcache - install -m0644 make-bcache.8 $(DESTDIR)${PREFIX}/share/man/man8 + install -m0644 *.8 $(DESTDIR)${PREFIX}/share/man/man8 # install -m0755 bcache-test $(DESTDIR)${PREFIX}/sbin/ clean: diff --git a/probe-bcache.8 b/probe-bcache.8 new file mode 100644 index 00000000..17273f02 --- /dev/null +++ b/probe-bcache.8 @@ -0,0 +1,17 @@ +.TH probe-bcache 8 +.SH NAME +probe-bcache \- probe a bcache device +.SH SYNOPSIS +.B probe-bcache +[\fB \-o\ \fIudev\fR ] +.I device +.SH OPTIONS +.TP +.BR \-o +return UUID in udev style for invocation by udev rule as IMPORT{program} +.SH USAGE +Return UUID if device identified as bcache-formatted. + +Only necessary until support for the bcache superblock is included +in blkid; in the meantime, provides just enough functionality for a udev script +to create the /dev/disk/by-uuid symlink.