Home > Veritas Storage Foundation™ File System Manual Pages
VXFS_VOL_STAT (3) |
|
Library Functions |
Table of contents
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
#include <sys/types.h>
#include <vxfsutil.h>
int vxfs_vol_stat(int fd, char *volname, struct fsdev_info *infop);
VRTSvxfs
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 size of the device available is returned in
sizep
and the amount of available free space is returned in
freep.
The file descriptor
fd
must specify any file in the file system.
struct fsdev_info {
int dev_id;
uint64_t dev_size;
uint64_t dev_free;
uint64_t dev_avail;
char dev_name[FSDEV_NAMESZ];
};
vxfs_vol_stat()
returns zero on success,
non-zero on failure.
-
ENOENT
-
The specified volume name does not exist.
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_ckpt(3),
..
vxfs_ap_enforce_file(3),
vxfs_ap_enforce_fs(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)
Last updated: 01 April 2006
Copyright ©2009 Symantec Corporation
All rights reserved.