mirror of
git://sourceware.org/git/lvm2.git
synced 2024-12-21 13:34:40 +03:00
device_id: add comment for trim
This commit is contained in:
parent
5dec664ccf
commit
41f13b2a3b
@ -626,7 +626,8 @@ struct dev_wwid *dev_add_wwid(char *id, int id_type, struct dm_list *ids)
|
||||
|
||||
if (!(dw = zalloc(sizeof(*dw))))
|
||||
return_NULL;
|
||||
(void)dm_strncpy(dw->id, id, sizeof(dw->id));
|
||||
/* Copy id string with upto DEV_WWID_SIZE characters */
|
||||
dm_strncpy(dw->id, id, sizeof(dw->id));
|
||||
dw->type = id_type;
|
||||
dm_list_add(ids, &dw->list);
|
||||
return dw;
|
||||
|
Loading…
Reference in New Issue
Block a user