Veritas™ File System 5.0.1 Programmer's Reference Guide

Enforcing the policy may cause the file to be reallocated to another volume.
To enforce a policy on all files in a Storage Checkpoint, use the following
function call:
vxfs_ap_enforce_ckpt(fd, check_point_name, data_policy, meta_policy, flags);
To enforce a policy on a primary fileset and all of the fileset's Storage
Checkpoint, use the following function call:
vxfs_ap_enforce_ckptchain(fd, data_policy, meta_policy, flags);
Data structures
You can view the fsap_info and fsdev_info data structures in the vxfsutil.h
header file and libvxfsutil.a library file.
See the vxfsutil.h header file and libvxfsutil.a library file.
The data structures are provided here for quick reference:
#define FSAP_NAMESZ 64
#define FSAP_MAXDEVS 256
#define FSDEV_NAMESZ 32
struct fsap_info { /* policy structure */
char ap_name[FSAP_NAMESZ];/* policy name */
uint32_t ap_flags; /* FSAP_CREATE | FSAP_INHERIT |
FSAP_ANYUSER */
uint32_t ap_order; /* FSAP_ORDER_ASGIVEN |
FSAP_ORDER_LEASTFULL |
FSAP_ORDER_ROUNDROBIN */
uint32_t ap_ndevs; /* number of volumes */
char ap_devs[FSAP_MAXDEVS][FSDEV_NAMESZ];
/* volume names associated with
this policy */
};
struct fsdev_info { /* volume structure */
int dev_id; /* a number from 0 to n */
uint64_t dev_size; /* size in bytes of volume */
uint64_t dev_free;
uint64_t dev_avail;
char dev_name[FSDEV_NAMESZ];/* volume name */
};
Multi-volume support
Data structures
58