test veritas logo


vxfs_ap_query_ckptdef(3)

NAME

vxfs_ap_query_ckptdef - retrieve default allocation policies for new Storage Checkpoints of a VxFS file system

SYNOPSIS

cc -I /opt/VRTS/include -L /opt/VRTS/lib
-l vxfsutil -ldl

#include <sys/types.h>

#include <vxfsutil.h>

int vxfs_ap_query_ckptdef(int fd, char *datapol, char *metapol);

AVAILABILITY

VRTSvxfs

DESCRIPTION

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.

NOTES

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.

RETURN VALUES

vxfs_ap_query_ckptdef() returns zero on success, non-zero on failure.

ERRORS

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.

SEE ALSO

vxfs_ap_assign_ckptdef(3), vxfs_ap_query_ckpt(3), vxfs_ap_query_fs(3)


VxFS 7.4 vxfs_ap_query_ckptdef(3)