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

vxfs_ap_enforce_fs

NAME

vxfs_ap_enforce_fs - ensure that all allocations for files in a file system match the specified policies

SYNOPSIS


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

#include <sys/types.h>
#include <vxfsutil.h>
int vxfs_ap_enforce_fs(int fd, char *datapol, char *metapol);

AVAILABILITY

VRTSvxfs

DESCRIPTION

vxfs_ap_enforce_fs() reallocates the blocks for all files in a file system. The file specified by fd must be a file in the file system. All allocations for files in the file system must match the given policies. If either policy is NULL, the usual mechanism for determining the policy is used.

RETURN VALUES

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

ERRORS

EFAULT

One or more of the specified pointer arguments points to an illegal address.

EIO

An I/O error occurred during the operation.

ENOENT

One or more of the named policies does not exist.

ENOSPC

There was not enough space in the volumes specified in the policies to hold all the blocks for all files in the file system.

ENOSYS

There is no license installed to allow this operation.

ENOTSUP

This operation is not supported by the disk layout version of the specified file system. Use vxupgrade(1m) to enable this operation.

ENXIO

An I/O error occurred during the operation.

EPERM

The effective user ID of the calling process does not have appropriate privileges to perform this operation.

EROFS

The specified file system is mounted read-only.

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