~ubuntu-branches/debian/sid/lvm2/sid

« back to all changes in this revision

Viewing changes to lib/cache/lvmcache.c

  • Committer: Package Import Robot
  • Author(s): Bastian Blank
  • Date: 2014-08-19 15:37:06 UTC
  • mfrom: (1.1.18)
  • Revision ID: package-import@ubuntu.com-20140819153706-i1gaio8lg534dara
Tags: 2.02.109-1
New upstream version.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1062
1062
        return 1;
1063
1063
}
1064
1064
 
1065
 
/* Unused
1066
1065
void lvmcache_del(struct lvmcache_info *info)
1067
1066
{
1068
1067
        if (info->dev->pvid[0] && _pvid_hash)
1071
1070
        _drop_vginfo(info, info->vginfo);
1072
1071
 
1073
1072
        info->label->labeller->ops->destroy_label(info->label->labeller,
1074
 
                                                info->label);
 
1073
                                                  info->label);
1075
1074
        dm_free(info);
1076
1075
 
1077
1076
        return;
1078
 
} */
 
1077
}
1079
1078
 
1080
1079
static int _lvmcache_update_pvid(struct lvmcache_info *info, const char *pvid)
1081
1080
{
1708
1707
                 * lvmcache_label_scan() and drop cached
1709
1708
                 * vginfo so make a local copy of string.
1710
1709
                 */
1711
 
                strcpy(vgname, info->vginfo->vgname);
 
1710
                (void) dm_strncpy(vgname, info->vginfo->vgname, sizeof(vgname));
1712
1711
                memcpy(vgid, info->vginfo->vgid, sizeof(vgid));
1713
1712
 
1714
1713
                if (get_pv_from_vg_by_id(info->fmt, vgname, vgid,