vxfs_vol_stat - return free space information about a component volume within a multi-volume file system
cc -I /opt/VRTS/include -L /opt/VRTS/lib
-l vxfsutil -ldl
int vxfs_vol_stat(int fd, char *volname, struct fsdev_info *infop);
vxfs_vol_stat() returns information on the specified volume of a multi-volume file system. Information is returned on the total number of bytes available to VxFS in the component volume with volume volname. vxfs_vol_stat() also returns the number of bytes not yet allocated to files.
The file descriptor fd must specify any file in the file system.
The infop structure returns information about the volume specified by volname. The fields of infop are:
Returns the total size, in bytes, of the volume.
Returns the amount of available space, in bytes, on the volume.
vxfs_vol_stat() returns zero on success, non-zero on failure.
One or more of the specified pointer arguments points to an illegal address.
The specified volume name does not exist.
This operation is not supported by the disk layout version of the specified file system. Use vxupgrade(1m) to enable this operation.
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_deencapsulate(3), vxfs_vol_encapsulate(3), vxfs_vol_enumerate(3), vxfs_vol_remove(3), vxfs_vol_resize(3)