mirror of
git://sourceware.org/git/lvm2.git
synced 2025-02-28 05:57:49 +03:00
Use 'const' struct id *pvid for device_from_pvid()
Update interface for device_from_pvid and use const pointer.
This commit is contained in:
parent
22f922671e
commit
e0256ba49a
2
lib/cache/lvmcache.c
vendored
2
lib/cache/lvmcache.c
vendored
@ -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;
|
||||
|
2
lib/cache/lvmcache.h
vendored
2
lib/cache/lvmcache.h
vendored
@ -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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user