summaryrefslogtreecommitdiffstats
path: root/drivers/md/Makefile
diff options
context:
space:
mode:
authorMilan Broz <mbroz@redhat.com>2009-01-06 03:05:12 +0000
committerAlasdair G Kergon <agk@redhat.com>2009-01-06 03:05:12 +0000
commit784aae735d9b0bba3f8b9faef4c8b30df3bf0128 (patch)
tree7e2e956c395b27f63569d7a6adc1098f116cc3a4 /drivers/md/Makefile
parentd58168763f74d1edbc296d7038c60efe6493fdd4 (diff)
downloadlinux-784aae735d9b0bba3f8b9faef4c8b30df3bf0128.tar.gz
linux-784aae735d9b0bba3f8b9faef4c8b30df3bf0128.tar.bz2
linux-784aae735d9b0bba3f8b9faef4c8b30df3bf0128.zip
dm: add name and uuid to sysfs
Implement simple read-only sysfs entry for device-mapper block device. This patch adds a simple sysfs directory named "dm" under block device properties and implements - name attribute (string containing mapped device name) - uuid attribute (string containing UUID, or empty string if not set) The kobject is embedded in mapped_device struct, so no additional memory allocation is needed for initializing sysfs entry. During the processing of sysfs attribute we need to lock mapped device which is done by a new function dm_get_from_kobj, which returns the md associated with kobject and increases the usage count. Each 'show attribute' function is responsible for its own locking. Signed-off-by: Milan Broz <mbroz@redhat.com> Signed-off-by: Alasdair G Kergon <agk@redhat.com>
Diffstat (limited to 'drivers/md/Makefile')
-rw-r--r--drivers/md/Makefile2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/md/Makefile b/drivers/md/Makefile
index 1c615804ea76..63f0ae94415d 100644
--- a/drivers/md/Makefile
+++ b/drivers/md/Makefile
@@ -3,7 +3,7 @@
#
dm-mod-objs := dm.o dm-table.o dm-target.o dm-linear.o dm-stripe.o \
- dm-ioctl.o dm-io.o dm-kcopyd.o
+ dm-ioctl.o dm-io.o dm-kcopyd.o dm-sysfs.o
dm-multipath-objs := dm-path-selector.o dm-mpath.o
dm-snapshot-objs := dm-snap.o dm-exception-store.o
dm-mirror-objs := dm-raid1.o