vxfs_ap_query_ckptdef - retrieve default allocation policies for new Storage Checkpoints of a VxFS file system
cc -I /opt/VRTS/include -L /opt/VRTS/lib-l vxfsutil -ldl
int vxfs_ap_query_ckptdef(int fd, char *datapol, char *metapol);
The vxfs_ap_query_ckptdef() function retrieves the Storage Checkpoint default allocation policies currently used by the file system referenced by fd. The datapol and metapol arguments must point to buffers of (FSAP_NAMESZ + 1) bytes, which are filled in with the name of the policy (if any) and NULL-terminated. If no policy is assigned, the string "NONE" is returned.
This function does not require root permission and can be run by any user.
This function is supported on Version 6 and later disk layouts.
vxfs_ap_query_ckptdef() returns zero on success, non-zero on failure.
EFAULT One or more of the specified pointer arguments points to an illegal address. EIO An I/O error occurred during the operation. ENOLIC There is no license installed to allow this operation. ENOTSUP This operation is not supported by the disk layout version of the specified file system.
vxfs_ap_assign_ckptdef(3), vxfs_ap_query_ckpt(3), vxfs_ap_query_fs(3)