|
Purpose
|
Retrieves the name, data type, number of values, and value size of an attribute for a vgroup. |
|
Return value
|
Returns SUCCEED (or 0) if successful and FAIL (or -1) otherwise. |
|
Description
|
Vattrinfo retrieves the name, datatype, number of values, and value size of an attribute identified by its index, attr_index, in the vgroup, vgroup_id. Name, data type, number of values and size are retrieved into the parameters attr_name, data_type, count, and size, respectively. |
|
|
If the attribute's name, data type, number of values, or value size are not needed, the corresponding output parameters can be set to NULL. |
|
|
The valid value attr_index range from 0 to the total number of attributes attached to a vgroup - 1. The number of vgroup attributes can be obtained using Vnattrs. |