Symantec logo

vxfs_vol_resize

NAME

vxfs_vol_resize - resize a specific volume within 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_resize(int fd, char *volname, uint64_t newsize);

AVAILABILITY

VRTSvxfs

DESCRIPTION

vxfs_vol_resize() changes the amount of space available to a file system in a component volume specified by the volume volname. The size of the new component volume must be at least newsize (specified in bytes). The file descriptor fd can be any file in the file system.

NOTES

In the current implementation, if there is data in the part of the volume that is shrinking, the resize operation will fail.

RETURN VALUES

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

ERRORS

ENOSPC

There was not enough space to expand the structural files to represent the new blocks in the device.

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_add(3), vxfs_vol_deencapsulate(3), vxfs_vol_encapsulate(3), vxfs_vol_enumerate(3), vxfs_vol_remove(3), vxfs_vol_stat(3)