1
0
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:
David Teigland 2021-09-20 09:32:21 -05:00
parent b1f33a4000
commit 130993bab1

View File

@ -477,14 +477,14 @@ struct lvmcache_info *lvmcache_info_from_pvid(const char *pvid_arg, struct devic
return info; 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 * Since we know that lvmcache_info_from_pvid directly above
* does not assume pvid_arg is null-terminated, we make an * does not assume pvid_arg is null-terminated, we make an
* exception here and cast a struct id to char *. * 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) const struct format_type *lvmcache_fmt_from_info(struct lvmcache_info *info)