]> sourceware.org Git - lvm2.git/commitdiff
Use 'const' struct id *pvid for device_from_pvid()
authorZdenek Kabelac <zkabelac@redhat.com>
Mon, 25 Oct 2010 13:02:26 +0000 (13:02 +0000)
committerZdenek Kabelac <zkabelac@redhat.com>
Mon, 25 Oct 2010 13:02:26 +0000 (13:02 +0000)
Update interface for device_from_pvid and use const pointer.

lib/cache/lvmcache.c
lib/cache/lvmcache.h

index 35d6f76c6c1188e822f11d4cf7436f69986cc8b4..83ac1a5a459d01f44cfa762dc84d363eaa3f7e3d 100644 (file)
@@ -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;
index 4966a5ca3f1a745b83d8e0e5ec86ba16c6d24323..28f85418fb952c86a618a33e96558ac208598fef 100644 (file)
@@ -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);
This page took 0.033281 seconds and 5 git commands to generate.