summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorZdenek Kabelac <zkabelac@redhat.com>2010-10-25 13:02:26 +0000
committerZdenek Kabelac <zkabelac@redhat.com>2010-10-25 13:02:26 +0000
commite0256ba49a35d1758ab05b0c765a00de538d7d22 (patch)
treee03c07f007ea68a7e90252f6debbf5929fcca747
parent22f922671e3414225a8d6c49b43ee1d66cd2d13b (diff)
downloadlvm2-e0256ba49a35d1758ab05b0c765a00de538d7d22.tar.gz
Use 'const' struct id *pvid for device_from_pvid()
Update interface for device_from_pvid and use const pointer.
-rw-r--r--lib/cache/lvmcache.c2
-rw-r--r--lib/cache/lvmcache.h2
2 files changed, 2 insertions, 2 deletions
diff --git a/lib/cache/lvmcache.c b/lib/cache/lvmcache.c
index 35d6f76c6..83ac1a5a4 100644
--- a/lib/cache/lvmcache.c
+++ b/lib/cache/lvmcache.c
@@ -733,7 +733,7 @@ struct dm_list *lvmcache_get_pvids(struct cmd_context *cmd, const char *vgname,
return pvids;
}
-struct device *device_from_pvid(struct cmd_context *cmd, struct id *pvid,
+struct device *device_from_pvid(struct cmd_context *cmd, const struct id *pvid,
unsigned *scan_done_once)
{
struct label *label;
diff --git a/lib/cache/lvmcache.h b/lib/cache/lvmcache.h
index 4966a5ca3..28f85418f 100644
--- a/lib/cache/lvmcache.h
+++ b/lib/cache/lvmcache.h
@@ -94,7 +94,7 @@ struct lvmcache_vginfo *vginfo_from_vgname(const char *vgname,
struct lvmcache_vginfo *vginfo_from_vgid(const char *vgid);
struct lvmcache_info *info_from_pvid(const char *pvid, int valid_only);
const char *vgname_from_vgid(struct dm_pool *mem, const char *vgid);
-struct device *device_from_pvid(struct cmd_context *cmd, struct id *pvid,
+struct device *device_from_pvid(struct cmd_context *cmd, const struct id *pvid,
unsigned *scan_done_once);
const char *pvid_from_devname(struct cmd_context *cmd,
const char *dev_name);