vxfs_vol_queryflags - queries flags on volumes in a multi-volume file system
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_vol_queryflags(int fd, int getall, int *countp, struct fsvol_queryinfo *qinfop);
The vxfs_vol_queryflags() function returns volume flags information for the volumes specified in the *qinfop argument. If the getall argument is zero, information is returned for volumes specified in the *qinfop argument. The *countp argument must contain the number of volumes specified in the array pointed to by the *qinfop argument.
The file descriptor fd must be the mount point of the file system.
If the getall argument is non-zero, information is returned for all component volumes in a multi-volume file system. Upon entry, *countp must contain the number of structures in the array pointed to by *qinfop. On return, *countp is updated with the number of records that were filled. If the error E2BIG is returned, *countp contains the minimum number of records necessary for the call to succeed.
The contents of the structure pointed to by *qinfop are as follows:
The fields of *qinfop are as follows:
Returns flags that are currently set on the volume.
Contains the name of the component volume.
vxfs_vol_queryflags() returns zero on success, non-zero on failure.
The amount of data to return is too large to fit in the specified array.
One or more of the specified pointer arguments points to an illegal address.
The number of structures specified is incorrect.
The specified volume does not exist.
There is no license installed to allow this operation.
This operation is not supported by the disk layout version of the specified file system. Use vxupgrade(1m) to enable this operation.
The calling process does not have correct access privileges.
There is no such device or address.
The specified file system is mounted read-only.
vxfs_ap_assign_ckpt(3), vxfs_ap_assign_file(3), vxfs_ap_assign_fs(3), vxfs_ap_define(3), vxfs_ap_remove(3), vxfs_ap_enforce_file(3), vxfs_ap_enumerate(3), vxfs_ap_query(3), vxfs_ap_query_ckpt(3), vxfs_ap_query_file(3), vxfs_ap_query_fs(3), vxfs_vol_add(3), vxfs_vol_clearflags(3), vxfs_vol_deencapsulate(3), vxfs_vol_encapsulate(3), vxfs_vol_enumerate(3), vxfs_vol_remove(3), vxfs_vol_resize(3), vxfs_vol_setflags(3), vxfs_vol_stat(3)