3 llapi_quotactl \- manipulate disk quotas on a Lustre filesystem
6 .B #include <lustre/lustreapi.h>
8 .BI "int llapi_quotactl(char" " *mnt," " struct if_quotactl" " *qctl)
10 \fBstruct if_quotactl {
15 struct obd_dqinfo qc_dqinfo;
16 struct obd_dqblk qc_dqblk;
18 struct obd_uuid obd_uuid;
34 \fBstruct obd_dqinfo {
47 .IX "filesystem" "quotactl() disk quotas" "" "\fLquotactl()\fP \(em disk quotas"
48 .IX "quotactl() disk quotas" "" "\fLquotactl()\fP \(em disk quotas"
49 .IX "disk quotas quotactl()" "" "disk quotas \(em \fLquotactl()\fP"
53 function manipulates disk quotas on a Lustre filesystem
56 indicates a command to be applied to
64 Turn on quotas for a Lustre filesystem. Deprecated as of 2.4.0.
66 is USRQUOTA, GRPQUOTA or UGQUOTA (both user and group quotas).
67 The quota files must exist; they are normally created with the
68 .BR llapi_quotacheck (3)
71 This call is restricted to the super-user.
74 Turn off quotas for a Lustre filesystem. Deprecated as of 2.4.0.
76 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).
98 are block and inode softlimit grace period expiration timestamps for the requested user or group.
100 Quotas must be turned on before using this command.
102 .SB LUSTRE_Q_SETQUOTA
103 Set disk quota limits for user or group
106 is USRQUOTA or GRPQUOTA.
108 must be set to QIF_ILIMITS, QIF_BLIMITS or QIF_LIMITS (both inode limits and block limits) dependent on updating limits.
110 must be filled with limits values (as set in
112 , block limits unit is kilobyte).
114 Quotas must be turned on before using this command.
117 Get information about quotas.
119 is either USRQUOTA or GRPQUOTA. On return
121 is the default inode grace period duration for all users or all groups (in seconds),
123 is the default block grace period duration for all users or all groups (in seconds),
125 is not used by the current Lustre version.
128 Set quota information (like grace times).
130 is either USRQUOTA or GRPQUOTA.
132 is inode grace time (in seconds),
134 is block grace time (in seconds),
136 is not used by the current Lustre version and must be zeroed.
139 .B llapi_quotactl(\|)
148 to indicate the error.
156 The kernel or Lustre modules have not been compiled with the
161 Insufficient memory to complete operation.
168 Cannot process during quotacheck.
172 does not correspond to OBD or
177 The call is privileged and the caller was not the super-user.
180 No disc quota is found for the indicated user.
182 Quotas have not been turned on for this filesystem.