Previous  |  Next  >  
Product: File System Manual Pages for Storage Foundation   
Manual: Library Functions (3)   

vxfs_vol_add

NAME

vxfs_vol_add - add a volume to a multi-volume file system

SYNOPSIS


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

#include <sys/types.h>
#include <vxfsutil.h>
int vxfs_vol_add(int fd, char *volname, uint64_t size);

AVAILABILITY

VRTSvxfs

DESCRIPTION

vxfs_vol_add() adds the volume specified by volname to a multi-volume file system as free space. The file system is specified by fd. The size of the volume to use is specified by the size argument (in bytes). It is possible to use only a portion of the available space in the volume.

RETURN VALUES

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

ERRORS

EINVAL

The specified size is not a multiple of the file system block size.

ENOSPC

There was not enough space to create the structural files to represent the new volume.

EPERM

The calling process does not have correct access privileges.

ENXIO

An I/O error occurred during operation.

SEE ALSO

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_deencapsulate (3), vxfs_vol_encapsulate (3), vxfs_vol_enumerate (3), vxfs_vol_remove (3), vxfs_vol_resize (3), vxfs_vol_stat (3)
 ^ Return to Top Previous  |  Next  >  
Product: File System Manual Pages for Storage Foundation  
Manual: Library Functions (3)  
VERITAS Software Corporation
www.veritas.com