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)
72 call. This call is restricted to the super-user.
75 Turn off quotas for a Lustre filesystem.
77 is USRQUOTA, GRPQUOTA or UGQUOTA (both user and group quotas).
78 This call is restricted to the super-user.
81 Get disk quota limits and current usage for user or group
84 is USRQUOTA or GRPQUOTA.
86 may be filled with OBD UUID string to query quota information from a specific node.
88 may be set nonzero to query information only from MDS. If
90 is an empty string and
92 is zero then clusterwide limits and usage are returned. On return
94 contains the requested information (block limits unit is kilobyte).
95 Quotas must be turned on before using this command.
98 Set disk quota limits for user or group
101 is USRQUOTA or GRPQUOTA.
103 must be set to QIF_ILIMITS, QIF_BLIMITS or QIF_LIMITS (both inode limits and block limits) dependent on updating limits.
105 must be filled with limits values (as set in
107 , block limits unit is kilobyte).
108 Quotas must be turned on before using this command.
111 Get information about quotas.
113 is either USRQUOTA or GRPQUOTA. On return
115 is inode grace time (in seconds),
117 is block grace time (in seconds),
119 is not used by the current Lustre version.
122 Set quota information (like grace times).
124 is either USRQUOTA or GRPQUOTA.
126 is inode grace time (in seconds),
128 is block grace time (in seconds),
130 is not used by the current Lustre version and must be zeroed.
133 .B llapi_quotactl(\|)
142 to indicate the error.
150 The kernel or Lustre modules have not been compiled with the
155 Insufficient memory to complete operation.
162 Cannot process during quotacheck.
166 does not correspond to OBD or
171 The call is privileged and the caller was not the super-user.
174 No disc quota is found for the indicated user.
176 Quotas have not been turned on for this filesystem.