3 llapi_quotactl \- manipulate disk quotas on a Lustre filesystem
6 .B #include <liblustre.h>
7 .B #include <lustre/lustre_idl.h>
8 .B #include <lustre/liblustreapi.h>
9 .B #include <lustre/lustre_user.h>
11 .BI "int llapi_quotactl(char" " *mnt," " struct if_quotactl" " *qctl)
13 \fBstruct if_quotactl {
18 struct obd_dqinfo qc_dqinfo;
19 struct obd_dqblk qc_dqblk;
21 struct obd_uuid obd_uuid;
37 \fBstruct obd_dqinfo {
50 .IX "filesystem" "quotactl() disk quotas" "" "\fLquotactl()\fP \(em disk quotas"
51 .IX "quotactl() disk quotas" "" "\fLquotactl()\fP \(em disk quotas"
52 .IX "disk quotas quotactl()" "" "disk quotas \(em \fLquotactl()\fP"
56 function manipulates disk quotas on a Lustre filesystem
59 indicates a command to be applied to
67 Turn on quotas for a Lustre filesystem.
69 is USRQUOTA, GRPQUOTA or UGQUOTA (both user and group quotas).
70 The quota files must exist; they are normally created with the
71 .BR llapi_quotacheck (3)
74 This call is restricted to the super-user.
77 Turn off quotas for a Lustre filesystem.
79 is USRQUOTA, GRPQUOTA or UGQUOTA (both user and group quotas).
81 This call is restricted to the super-user.
84 Get disk quota limits and current usage for user or group
87 is USRQUOTA or GRPQUOTA.
89 may be filled with OBD UUID string to query quota information from a specific node.
91 may be set nonzero to query information only from MDS. If
93 is an empty string and
95 is zero then clusterwide limits and usage are returned. On return
97 contains the requested information (block limits unit is kilobyte).
101 are block and inode softlimit grace period expiration timestamps for the requested user or group.
103 Quotas must be turned on before using this command.
105 .SB LUSTRE_Q_SETQUOTA
106 Set disk quota limits for user or group
109 is USRQUOTA or GRPQUOTA.
111 must be set to QIF_ILIMITS, QIF_BLIMITS or QIF_LIMITS (both inode limits and block limits) dependent on updating limits.
113 must be filled with limits values (as set in
115 , block limits unit is kilobyte).
117 Quotas must be turned on before using this command.
120 Get information about quotas.
122 is either USRQUOTA or GRPQUOTA. On return
124 is the default inode grace period duration for all users or all groups (in seconds),
126 is the default block grace period duration for all users or all groups (in seconds),
128 is not used by the current Lustre version.
131 Set quota information (like grace times).
133 is either USRQUOTA or GRPQUOTA.
135 is inode grace time (in seconds),
137 is block grace time (in seconds),
139 is not used by the current Lustre version and must be zeroed.
142 .B llapi_quotactl(\|)
151 to indicate the error.
159 The kernel or Lustre modules have not been compiled with the
164 Insufficient memory to complete operation.
171 Cannot process during quotacheck.
175 does not correspond to OBD or
180 The call is privileged and the caller was not the super-user.
183 No disc quota is found for the indicated user.
185 Quotas have not been turned on for this filesystem.