Home > Veritas Storage Foundation™ File System Manual Pages

VXFS_VOL_ADD (3)

Library Functions

Table of contents


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 -ldl

#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_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_deencapsulate(3), vxfs_vol_encapsulate(3), vxfs_vol_encapsulate_bias(3), vxfs_vol_enumerate(3), vxfs_vol_remove(3), vxfs_vol_resize(3), vxfs_vol_stat(3)

Last updated: 01 April 2006
Copyright ©2009 Symantec Corporation
All rights reserved.