lio_getattr

Synopsis

lio_getattr OPTIONS [LIO_COMMON_OPTIONS] [LIO_PATH_OPTIONS]

Description

Retrieve file attributes.

Options

-rd recurse_depth
Max recursion depth on directories. Defaults to 10000
-t otypes
Object types. See LIO Object Types for details.
-vmax max_val
Max size of attribute value allowed. Default value is 1048576
-ga attr_glob
Attribute glob string
-ra attr_regex
Attribute regex string
-al key1,key2,...
Comma separated list of keys to retrieve

Output formatting options

-new_obj new_obj_fmt
New object C format string. Default is “object=%sn”
-end_obj end_obj_fmt
End object C format string. Default is “n”
-attr_fmt attr_fmt
Attribute C format string. Default is ” %s=%sn”
-attr_sep attr_sep
Attribute separator C format string. Default is “”

The format strings are string together according to the following code snippet:

printf(new_obj_fmt, object_name);
printf(attr_fmt, key[0], val[0]);
for (i=1; i<nattr; i++) {
   printf(attr_sep);
   printf(attr_fmt, key[i], val[i]);
}
printf(end_obj_fmt, object_name);

Bugs

Please report any bugs to support@lstore.org.

See also

Command Reference, LIO Common Options, LIO Path Options, lio_setattr