mirror of
git://sourceware.org/git/lvm2.git
synced 2025-01-02 01:18:26 +03:00
lvmcache: follow pv_id/pvid naming convention
name the variable pv_id_arg to follow the convention: . "pvid" variable is null-terminated string . "pv_id" variable is non-null-terminated struct
This commit is contained in:
parent
b1f33a4000
commit
130993bab1
4
lib/cache/lvmcache.c
vendored
4
lib/cache/lvmcache.c
vendored
@ -477,14 +477,14 @@ struct lvmcache_info *lvmcache_info_from_pvid(const char *pvid_arg, struct devic
|
||||
return info;
|
||||
}
|
||||
|
||||
struct lvmcache_info *lvmcache_info_from_pv_id(const struct id *pvid, struct device *dev, int valid_only)
|
||||
struct lvmcache_info *lvmcache_info_from_pv_id(const struct id *pv_id_arg, struct device *dev, int valid_only)
|
||||
{
|
||||
/*
|
||||
* Since we know that lvmcache_info_from_pvid directly above
|
||||
* does not assume pvid_arg is null-terminated, we make an
|
||||
* exception here and cast a struct id to char *.
|
||||
*/
|
||||
return lvmcache_info_from_pvid((const char *)pvid, dev, valid_only);
|
||||
return lvmcache_info_from_pvid((const char *)pv_id_arg, dev, valid_only);
|
||||
}
|
||||
|
||||
const struct format_type *lvmcache_fmt_from_info(struct lvmcache_info *info)
|
||||
|
Loading…
Reference in New Issue
Block a user