From 96a1f7dba6e464155c0d1dc69c6c2efa96b644ac Mon Sep 17 00:00:00 2001 From: Mike Anderson Date: Fri, 19 Oct 2007 22:47:59 +0100 Subject: dm: export name and uuid This patch adds a function to obtain a copy of a mapped device's name and uuid. Signed-off-by: Mike Anderson Signed-off-by: Alasdair G Kergon --- include/linux/device-mapper.h | 1 + 1 file changed, 1 insertion(+) (limited to 'include') diff --git a/include/linux/device-mapper.h b/include/linux/device-mapper.h index 499f5373e213..8b3c7cdc599c 100644 --- a/include/linux/device-mapper.h +++ b/include/linux/device-mapper.h @@ -188,6 +188,7 @@ int dm_wait_event(struct mapped_device *md, int event_nr); * Info functions. */ const char *dm_device_name(struct mapped_device *md); +int dm_copy_name_and_uuid(struct mapped_device *md, char *name, char *uuid); struct gendisk *dm_disk(struct mapped_device *md); int dm_suspended(struct mapped_device *md); int dm_noflush_suspending(struct dm_target *ti); -- cgit v1.2.3