Linux and UNIX Man Pages

Linux & Unix Commands - Search Man Pages

chfsets(8) [osf1 man page]

chfsets(8)						      System Manager's Manual							chfsets(8)

NAME
chfsets - Changes limits for fileset quotas SYNOPSIS
/sbin/chfsets [-F limit] [-f limit] [-B limit] [-b limit] domain [fileset...] OPTIONS
Specifies the file usage soft limit (quota) of the fileset. Specifies the file usage hard limit (quota) of the fileset. Specifies the block usage soft limit (quota) in 1K blocks of the fileset. Specifies the block usage hard limit (quota) in 1K blocks of the fileset. OPERANDS
Specifies the name of the file domain. Specifies the name of one or more filesets. DESCRIPTION
The chfsets command enables you to change fileset quotas (file usage limits and block usage limits) of any AdvFS fileset. Filesets can have both soft and hard disk storage and file limits. When a hard limit is reached, no more disk space allocations or file creations which would exceed the limit are allowed. The soft limit may be exceeded for a period of time (called the grace period). The grace periods for the soft limits are set with the edquota command. The command also displays the changes made to the file and block usage limits. Note that the root user can exceed fileset quotas. The chfsets command displays the following fileset information: Id A unique number (in hexadecimal format) that identifies a file domain and fileset. File H limit The file usage hard limit of the specified fileset before the change followed by the new limit. Block H limit The block usage hard limit of the specified fileset before the change followed by the new limit. File S limit The file usage soft limit of the specified fileset before the change followed by the new limit. Block S limit The block usage soft limit of the specified fileset before the change followed by the new limit. Use the following commands to manipulate filesets: Displays the limits and actual number of blocks used by a fileset. Displays space usage for the specified domain. Displays the file and block usage limits for the filesets in a domain. Changes the user or group block and file limits and grace period. Turns on and off quota enforcement. For more information, see the reference pages for each command. RESTRICTIONS
At least one fileset within the domain must be mounted for the chfsets command to succeed. You must be the root user to run the chfsets command. EXAMPLES
The following example changes the file hard limit from 11 to 200 and block hard limit from 121 to 1000 for the credit_fs fileset in the account_dmn domain: # chfsets -b 1000 -f 200 account_dmn credit_fs credit_fs Id : 2c2f557f.000b15f4.3.8004 File H limit : 11 --> 200 Block H limit : 121 --> 1000 EXIT STATUS
The utility returns a 0 (zero) on success and a 1 (one) on failure. SEE ALSO
Commands: df(1), edquota(8), quotaon(8), quotaoff(8), showfdmn(8), showfsets(8) chfsets(8)

Check Out this Related Man Page

advfs_set_fset_quotas(3)				     Library Functions Manual					  advfs_set_fset_quotas(3)

NAME
advfs_set_fset_quotas - Sets fileset quotas for an AdvFS fileset SYNOPSIS
#include <sys/advfs_syscalls.h> int advfs_set_fset_quotas( char *domainName, char *filesetName, filesetQuotasT *filesetQuotas ); LIBRARY
AdvFS Library (libadvfs) PARAMETERS
A pointer to the name of the domain. A pointer to the name of the fileset. A pointer to a structure that contains the fileset quotas. DESCRIPTION
This function associates the fileset quotas that are specified in the filesetQuotas structure with the fileset specified by the domainName and filesetName parameters. Note that the advfs_get_set_quotas function does not set: user or group quota information grace time information Use the quotactl system call instead. See the quotactl(2) reference page for information. RESTRICTIONS
At least one fileset in the domain nust be mounted. Clone filesets cannot have fileset quotas. If you attempt to set fileset quotas for a clone fileset, an error occurs. RETURN VALUES
The function returns a value of 0 (zero) on successful completion. The function returns a value of -1 on failure and sets the value of errno to the specific error. ERRORS
The function sets errno to the specified errors for the following failure conditions: The calling program is not running with root privi- leges. No fileset in the file domain has been mounted. The *filesetQuotas parameter contains invalid data. An I/O error occurred on one of the disks in the file domain. The filesetId parameter does not refer to an existing fileset. There is not enough memory available for the operation. The fileset is mounted read-only: it may be a clone fileset. Clone filesets cannot have fileset quotas. SEE ALSO
Commands: chfsets(8), showfsets(8) Functions: quotactl(2), advfs_get_fset_quotas(3) advfs_set_fset_quotas(3)
Man Page