[lvm-devel] [PATCH 11/14] Add lvm_vg_get_property() generic vg property function.

Petr Rockai prockai at redhat.com
Tue Oct 12 11:05:56 UTC 2010


Zdenek Kabelac <zkabelac at redhat.com> writes:
>> +	struct lvm_property_type prop;
>> +
>> +	strncpy(prop.id, name, LVM_PROPERTY_NAME_LEN);
>
> Hmmm why doing a copy here instead of passing/assigning  'name' ptr somewhere?

Because lvm_property_type says: char id[LVM_PROPERTY_NAME_LEN];

Yours,
   Petr.




More information about the lvm-devel mailing list