Skip to main content

listxattr_query

Function listxattr_query 

Source
pub fn listxattr_query<P: Arg>(path: P) -> Result<usize>
Expand description

listxattr(path, NULL, 0)—Query the length of the list of extended filesystem attributes.

This function uses listxattr with no buffer to just return the size of the list. This can be used to determine the size of a buffer to allocate for a subsequent call to listxattr, however keep in mind that other processes may modify attributes at any time.

§References