vxfs_ap_query_fs_pat - list the file system-wide pattern table
cc -I /opt/VRTS/include -L /opt/VRTS/lib
-l vxfsutil -ldl
cc -I /opt/VRTS/include -L /opt/VRTS/lib/sparcv9
-l vxfsutil -ldl
int vxfs_ap_query_fs_pat(int fd, struct fsap_pattern_table **pat_query, uint32_t flags);
vxfs_ap_query_fs_pat() returns the file system-wide pattern tables.
The fd field is the file descriptor of the directory.
The output of the pat_query field is freed by the caller. On a successful return, the following fields are filled:
Contains the flags of the pattern table.
Contains the number of pattern entries.
Points to an array of fsap_pattern_entry structures.
To use this function, specify -l vxfsutil while linking. Specify the /opt/VRTSvxfs/lib directory for 32-bit executables, or the /opt/VRTSvxfs/lib/sparcv9 directory for 64-bit executables.
This API supports file system versions 6.0 and above.
The flags argument is currently unused.
vxfs_ap_query_fs_pat() returns zero on success, and pat_query points to a newly allocated structure that is filled with pattern information. The caller must free the pat_query by calling the LIBC free() function. vxfs_ap_query_fs_pat() returns non-zero on failure.
An I/O error occurred during the operation.
The fd field does not point to a directory.
No appropriate licenses are installed.