1
0
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:
Zdenek Kabelac 2024-04-04 00:09:29 +02:00
parent 5dec664ccf
commit 41f13b2a3b

View File

@ -626,7 +626,8 @@ struct dev_wwid *dev_add_wwid(char *id, int id_type, struct dm_list *ids)
if (!(dw = zalloc(sizeof(*dw)))) if (!(dw = zalloc(sizeof(*dw))))
return_NULL; 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; dw->type = id_type;
dm_list_add(ids, &dw->list); dm_list_add(ids, &dw->list);
return dw; return dw;