readv2: Note preadv2(..., RWF_NOWAIT) bug in BUGS section
[man-pages.git] / man2 / quotactl.2
blobd22d8c584f27713d26cabd55e7281d61d9d793fd
1 .\" Copyright (c) 2010, Jan Kara
2 .\" A few pieces copyright (c) 1996 Andries Brouwer (aeb@cwi.nl)
3 .\" and copyright 2010 (c) Michael Kerrisk <mtk.manpages@gmail.com>
4 .\"
5 .\" %%%LICENSE_START(VERBATIM)
6 .\" Permission is granted to make and distribute verbatim copies of this
7 .\" manual provided the copyright notice and this permission notice are
8 .\" preserved on all copies.
9 .\"
10 .\" Permission is granted to copy and distribute modified versions of
11 .\" this manual under the conditions for verbatim copying, provided that
12 .\" the entire resulting derived work is distributed under the terms of
13 .\" a permission notice identical to this one.
14 .\"
15 .\" Since the Linux kernel and libraries are constantly changing, this
16 .\" manual page may be incorrect or out-of-date.  The author(s) assume
17 .\" no responsibility for errors or omissions, or for damages resulting
18 .\" from the use of the information contained herein.  The author(s) may
19 .\" not have taken the same level of care in the production of this
20 .\" manual, which is licensed free of charge, as they might when working
21 .\" professionally.
22 .\"
23 .\" Formatted or processed versions of this manual, if unaccompanied by
24 .\" the source, must acknowledge the copyright and authors of this work.
25 .\" %%%LICENSE_END
26 .\"
27 .TH QUOTACTL 2 2021-03-22 "Linux" "Linux Programmer's Manual"
28 .SH NAME
29 quotactl \- manipulate disk quotas
30 .SH SYNOPSIS
31 .nf
32 .B #include <sys/quota.h>
33 .BR "#include <xfs/xqm.h>" " /* Definition of " Q_X* " and " XFS_QUOTA_* \
34 " constants"
35 .RB    "                        (or " <linux/dqblk_xfs.h> "; see NOTES) */"
36 .PP
37 .BI "int quotactl(int " cmd ", const char *" special ", int " id \
38 ", caddr_t " addr );
39 .fi
40 .SH DESCRIPTION
41 The quota system can be used to set per-user, per-group, and per-project limits
42 on the amount of disk space used on a filesystem.
43 For each user and/or group,
44 a soft limit and a hard limit can be set for each filesystem.
45 The hard limit can't be exceeded.
46 The soft limit can be exceeded, but warnings will ensue.
47 Moreover, the user can't exceed the soft limit for more than grace period
48 duration (one week by default) at a time;
49 after this, the soft limit counts as a hard limit.
50 .PP
51 The
52 .BR quotactl ()
53 call manipulates disk quotas.
54 The
55 .I cmd
56 argument indicates a command to be applied to the user or
57 group ID specified in
58 .IR id .
59 To initialize the
60 .IR cmd
61 argument, use the
62 .IR "QCMD(subcmd, type)"
63 macro.
64 The
65 .I type
66 value is either
67 .BR USRQUOTA ,
68 for user quotas,
69 .BR GRPQUOTA ,
70 for group quotas, or (since Linux 4.1)
71 .\" 847aac644e92e5624f2c153bab409bf713d5ff9a
72 .BR PRJQUOTA ,
73 for project quotas.
74 The
75 .I subcmd
76 value is described below.
77 .PP
78 The
79 .I special
80 argument is a pointer to a null-terminated string containing the pathname
81 of the (mounted) block special device for the filesystem being manipulated.
82 .PP
83 The
84 .I addr
85 argument is the address of an optional, command-specific, data structure
86 that is copied in or out of the system.
87 The interpretation of
88 .I addr
89 is given with each operation below.
90 .PP
91 The
92 .I subcmd
93 value is one of the following operations:
94 .TP
95 .B Q_QUOTAON
96 Turn on quotas for a filesystem.
97 The
98 .I id
99 argument is the identification number of the quota format to be used.
100 Currently, there are three supported quota formats:
102 .TP 13
103 .BR QFMT_VFS_OLD
104 The original quota format.
106 .BR QFMT_VFS_V0
107 The standard VFS v0 quota format, which can handle 32-bit UIDs and GIDs
108 and quota limits up to 2^42 bytes and 2^32 inodes.
110 .BR QFMT_VFS_V1
111 A quota format that can handle 32-bit UIDs and GIDs
112 and quota limits of 2^64 bytes and 2^64 inodes.
116 .IR addr
117 argument points to the pathname of a file containing the quotas for
118 the filesystem.
119 The quota file must exist; it is normally created with the
120 .BR quotacheck (8)
121 program
123 Quota information can be also stored in hidden system inodes
124 for ext4, XFS, and other filesystems if the filesystem is configured so.
125 In this case, there are no visible quota files and there is no need to
127 .BR quotacheck (8).
128 Quota information is always kept consistent by the filesystem and the
129 .B Q_QUOTAON
130 operation serves only to enable enforcement of quota limits.
131 The presence of hidden
132 system inodes with quota information is indicated by the
133 .B DQF_SYS_FILE
134 flag in the
135 .I dqi_flags
136 field returned by the
137 .B Q_GETINFO
138 operation.
140 This operation requires privilege
141 .RB ( CAP_SYS_ADMIN ).
143 .B Q_QUOTAOFF
144 Turn off quotas for a filesystem.
146 .I addr
148 .I id
149 arguments are ignored.
150 This operation requires privilege
151 .RB ( CAP_SYS_ADMIN ).
153 .B Q_GETQUOTA
154 Get disk quota limits and current usage for user or group
155 .IR id .
157 .I addr
158 argument is a pointer to a
159 .I dqblk
160 structure defined in
161 .IR <sys/quota.h>
162 as follows:
164 .in +4n
166 /* uint64_t is an unsigned 64\-bit integer;
167    uint32_t is an unsigned 32\-bit integer */
169 struct dqblk {      /* Definition since Linux 2.4.22 */
170     uint64_t dqb_bhardlimit;  /* Absolute limit on disk
171                                  quota blocks alloc */
172     uint64_t dqb_bsoftlimit;  /* Preferred limit on
173                                  disk quota blocks */
174     uint64_t dqb_curspace;    /* Current occupied space
175                                  (in bytes) */
176     uint64_t dqb_ihardlimit;  /* Maximum number of
177                                  allocated inodes */
178     uint64_t dqb_isoftlimit;  /* Preferred inode limit */
179     uint64_t dqb_curinodes;   /* Current number of
180                                  allocated inodes */
181     uint64_t dqb_btime;       /* Time limit for excessive
182                                  disk use */
183     uint64_t dqb_itime;       /* Time limit for excessive
184                                  files */
185     uint32_t dqb_valid;       /* Bit mask of QIF_*
186                                  constants */
189 /* Flags in dqb_valid that indicate which fields in
190    dqblk structure are valid. */
192 #define QIF_BLIMITS   1
193 #define QIF_SPACE     2
194 #define QIF_ILIMITS   4
195 #define QIF_INODES    8
196 #define QIF_BTIME     16
197 #define QIF_ITIME     32
198 #define QIF_LIMITS    (QIF_BLIMITS | QIF_ILIMITS)
199 #define QIF_USAGE     (QIF_SPACE | QIF_INODES)
200 #define QIF_TIMES     (QIF_BTIME | QIF_ITIME)
201 #define QIF_ALL       (QIF_LIMITS | QIF_USAGE | QIF_TIMES)
206 .I dqb_valid
207 field is a bit mask that is set to indicate the entries in the
208 .I dqblk
209 structure that are valid.
210 Currently, the kernel fills in all entries of the
211 .I dqblk
212 structure and marks them as valid in the
213 .I dqb_valid
214 field.
215 Unprivileged users may retrieve only their own quotas;
216 a privileged user
217 .RB ( CAP_SYS_ADMIN )
218 can retrieve the quotas of any user.
220 .BR Q_GETNEXTQUOTA " (since Linux 4.6)"
221 .\" commit 926132c0257a5a8d149a6a395cc3405e55420566
222 This operation is the same as
223 .BR Q_GETQUOTA ,
224 but it returns quota information for the next ID greater than or equal to
225 .IR id
226 that has a quota set.
229 .I addr
230 argument is a pointer to a
231 .I nextdqblk
232 structure whose fields are as for the
233 .IR dqblk ,
234 except for the addition of a
235 .I dqb_id
236 field that is used to return the ID for which
237 quota information is being returned:
239 .in +4n
241 struct nextdqblk {
242     uint64_t dqb_bhardlimit;
243     uint64_t dqb_bsoftlimit;
244     uint64_t dqb_curspace;
245     uint64_t dqb_ihardlimit;
246     uint64_t dqb_isoftlimit;
247     uint64_t dqb_curinodes;
248     uint64_t dqb_btime;
249     uint64_t dqb_itime;
250     uint32_t dqb_valid;
251     uint32_t dqb_id;
256 .B Q_SETQUOTA
257 Set quota information for user or group
258 .IR id ,
259 using the information supplied in the
260 .I dqblk
261 structure pointed to by
262 .IR addr .
264 .I dqb_valid
265 field of the
266 .I dqblk
267 structure indicates which entries in the structure have been set by the caller.
268 This operation supersedes the
269 .B Q_SETQLIM
271 .B Q_SETUSE
272 operations in the previous quota interfaces.
273 This operation requires privilege
274 .RB ( CAP_SYS_ADMIN ).
276 .BR Q_GETINFO " (since Linux 2.4.22)"
277 Get information (like grace times) about quotafile.
279 .I addr
280 argument should be a pointer to a
281 .I dqinfo
282 structure.
283 This structure is defined in
284 .IR <sys/quota.h>
285 as follows:
287 .in +4n
289 /* uint64_t is an unsigned 64\-bit integer;
290    uint32_t is an unsigned 32\-bit integer */
292 struct dqinfo {         /* Defined since kernel 2.4.22 */
293     uint64_t dqi_bgrace;  /* Time before block soft limit
294                              becomes hard limit */
295     uint64_t dqi_igrace;  /* Time before inode soft limit
296                              becomes hard limit */
297     uint32_t dqi_flags;   /* Flags for quotafile
298                              (DQF_*) */
299     uint32_t dqi_valid;
302 /* Bits for dqi_flags */
304 /* Quota format QFMT_VFS_OLD */
306 #define DQF_ROOT_SQUASH (1 << 0) /* Root squash enabled */
307               /* Before Linux v4.0, this had been defined
308                  privately as V1_DQF_RSQUASH */
310 /* Quota format QFMT_VFS_V0 / QFMT_VFS_V1 */
312 #define DQF_SYS_FILE    (1 << 16)   /* Quota stored in
313                                        a system file */
315 /* Flags in dqi_valid that indicate which fields in
316    dqinfo structure are valid. */
318 #define IIF_BGRACE  1
319 #define IIF_IGRACE  2
320 #define IIF_FLAGS   4
321 #define IIF_ALL     (IIF_BGRACE | IIF_IGRACE | IIF_FLAGS)
326 .I dqi_valid
327 field in the
328 .I dqinfo
329 structure indicates the entries in the structure that are valid.
330 Currently, the kernel fills in all entries of the
331 .I dqinfo
332 structure and marks them all as valid in the
333 .I dqi_valid
334 field.
336 .I id
337 argument is ignored.
339 .BR Q_SETINFO " (since Linux 2.4.22)"
340 Set information about quotafile.
342 .I addr
343 argument should be a pointer to a
344 .I dqinfo
345 structure.
347 .I dqi_valid
348 field of the
349 .I dqinfo
350 structure indicates the entries in the structure
351 that have been set by the caller.
352 This operation supersedes the
353 .B Q_SETGRACE
355 .B Q_SETFLAGS
356 operations in the previous quota interfaces.
358 .I id
359 argument is ignored.
360 This operation requires privilege
361 .RB ( CAP_SYS_ADMIN ).
363 .BR Q_GETFMT " (since Linux 2.4.22)"
364 Get quota format used on the specified filesystem.
366 .I addr
367 argument should be a pointer to a 4-byte buffer
368 where the format number will be stored.
370 .B Q_SYNC
371 Update the on-disk copy of quota usages for a filesystem.
373 .I special
374 is NULL, then all filesystems with active quotas are sync'ed.
376 .I addr
378 .I id
379 arguments are ignored.
381 .BR Q_GETSTATS " (supported up to Linux 2.4.21)"
382 Get statistics and other generic information about the quota subsystem.
384 .I addr
385 argument should be a pointer to a
386 .I dqstats
387 structure in which data should be stored.
388 This structure is defined in
389 .IR <sys/quota.h> .
391 .I special
393 .I id
394 arguments are ignored.
396 This operation is obsolete and was removed in Linux 2.4.22.
397 Files in
398 .I /proc/sys/fs/quota/
399 carry the information instead.
401 For XFS filesystems making use of the XFS Quota Manager (XQM),
402 the above operations are bypassed and the following operations are used:
404 .B Q_XQUOTAON
405 Turn on quotas for an XFS filesystem.
406 XFS provides the ability to turn on/off quota limit enforcement
407 with quota accounting.
408 Therefore, XFS expects
409 .I addr
410 to be a pointer to an
411 .I "unsigned int"
412 that contains a bitwise combination of the following flags (defined in
413 .IR <xfs/xqm.h> ):
415 .in +4n
417 XFS_QUOTA_UDQ_ACCT  /* User quota accounting */
418 XFS_QUOTA_UDQ_ENFD  /* User quota limits enforcement */
419 XFS_QUOTA_GDQ_ACCT  /* Group quota accounting */
420 XFS_QUOTA_GDQ_ENFD  /* Group quota limits enforcement */
421 XFS_QUOTA_PDQ_ACCT  /* Project quota accounting */
422 XFS_QUOTA_PDQ_ENFD  /* Project quota limits enforcement */
426 This operation requires privilege
427 .RB ( CAP_SYS_ADMIN ).
429 .I id
430 argument is ignored.
432 .B Q_XQUOTAOFF
433 Turn off quotas for an XFS filesystem.
434 As with
435 .BR Q_QUOTAON ,
436 XFS filesystems expect a pointer to an
437 .I "unsigned int"
438 that specifies whether quota accounting and/or limit enforcement need
439 to be turned off (using the same flags as for
440 .B Q_XQUOTAON
441 operation).
442 This operation requires privilege
443 .RB ( CAP_SYS_ADMIN ).
445 .I id
446 argument is ignored.
448 .B Q_XGETQUOTA
449 Get disk quota limits and current usage for user
450 .IR id .
452 .I addr
453 argument is a pointer to an
454 .I fs_disk_quota
455 structure, which is defined in
456 .I <xfs/xqm.h>
457 as follows:
459 .in +4n
461 /* All the blk units are in BBs (Basic Blocks) of
462    512 bytes. */
464 #define FS_DQUOT_VERSION  1  /* fs_disk_quota.d_version */
466 #define XFS_USER_QUOTA    (1<<0)  /* User quota type */
467 #define XFS_PROJ_QUOTA    (1<<1)  /* Project quota type */
468 #define XFS_GROUP_QUOTA   (1<<2)  /* Group quota type */
470 struct fs_disk_quota {
471     int8_t   d_version;   /* Version of this structure */
472     int8_t   d_flags;     /* XFS_{USER,PROJ,GROUP}_QUOTA */
473     uint16_t d_fieldmask; /* Field specifier */
474     uint32_t d_id;        /* User, project, or group ID */
475     uint64_t d_blk_hardlimit; /* Absolute limit on
476                                  disk blocks */
477     uint64_t d_blk_softlimit; /* Preferred limit on
478                                  disk blocks */
479     uint64_t d_ino_hardlimit; /* Maximum # allocated
480                                  inodes */
481     uint64_t d_ino_softlimit; /* Preferred inode limit */
482     uint64_t d_bcount;    /* # disk blocks owned by
483                              the user */
484     uint64_t d_icount;    /* # inodes owned by the user */
485     int32_t  d_itimer;    /* Zero if within inode limits */
486                           /* If not, we refuse service */
487     int32_t  d_btimer;    /* Similar to above; for
488                              disk blocks */
489     uint16_t d_iwarns;    /* # warnings issued with
490                              respect to # of inodes */
491     uint16_t d_bwarns;    /* # warnings issued with
492                              respect to disk blocks */
493     int32_t  d_padding2;  /* Padding \- for future use */
494     uint64_t d_rtb_hardlimit; /* Absolute limit on realtime
495                                  (RT) disk blocks */
496     uint64_t d_rtb_softlimit; /* Preferred limit on RT
497                                  disk blocks */
498     uint64_t d_rtbcount;  /* # realtime blocks owned */
499     int32_t  d_rtbtimer;  /* Similar to above; for RT
500                              disk blocks */
501     uint16_t d_rtbwarns;  /* # warnings issued with
502                              respect to RT disk blocks */
503     int16_t  d_padding3;  /* Padding \- for future use */
504     char     d_padding4[8];   /* Yet more padding */
509 Unprivileged users may retrieve only their own quotas;
510 a privileged user
511 .RB ( CAP_SYS_ADMIN )
512 may retrieve the quotas of any user.
514 .BR Q_XGETNEXTQUOTA " (since Linux 4.6)"
515 .\" commit 8b37524962b9c54423374717786198f5c0820a28
516 This operation is the same as
517 .BR Q_XGETQUOTA ,
518 but it returns (in the
519 .I fs_disk_quota
520 structure pointed by
521 .IR addr )
522 quota information for the next ID greater than or equal to
523 .IR id
524 that has a quota set.
525 Note that since
526 .I fs_disk_quota
527 already has
528 .I q_id
529 field, no separate structure type is needed (in contrast with
530 .B Q_GETQUOTA
532 .B Q_GETNEXTQUOTA
533 operations)
535 .B Q_XSETQLIM
536 Set disk quota limits for user
537 .IR id .
539 .I addr
540 argument is a pointer to an
541 .I fs_disk_quota
542 structure.
543 This operation requires privilege
544 .RB ( CAP_SYS_ADMIN ).
546 .B Q_XGETQSTAT
547 Returns XFS filesystem-specific quota information in the
548 .I fs_quota_stat
549 structure pointed by
550 .IR addr .
551 This is useful for finding out how much space is used to store quota
552 information, and also to get the quota on/off status of a given local XFS
553 filesystem.
555 .I fs_quota_stat
556 structure itself is defined as follows:
558 .in +4n
560 #define FS_QSTAT_VERSION 1  /* fs_quota_stat.qs_version */
562 struct fs_qfilestat {
563     uint64_t qfs_ino;       /* Inode number */
564     uint64_t qfs_nblks;     /* Number of BBs
565                                512\-byte\-blocks */
566     uint32_t qfs_nextents;  /* Number of extents */
569 struct fs_quota_stat {
570     int8_t   qs_version; /* Version number for
571                             future changes */
572     uint16_t qs_flags; /* XFS_QUOTA_{U,P,G}DQ_{ACCT,ENFD} */
573     int8_t   qs_pad;   /* Unused */
574     struct fs_qfilestat qs_uquota;  /* User quota storage
575                                        information */
576     struct fs_qfilestat qs_gquota;  /* Group quota storage
577                                        information */
578     uint32_t qs_incoredqs;   /* Number of dquots in core */
579     int32_t  qs_btimelimit;  /* Limit for blocks timer */
580     int32_t  qs_itimelimit;  /* Limit for inodes timer */
581     int32_t  qs_rtbtimelimit;/* Limit for RT
582                                 blocks timer */
583     uint16_t qs_bwarnlimit;  /* Limit for # of warnings */
584     uint16_t qs_iwarnlimit;  /* Limit for # of warnings */
590 .I id
591 argument is ignored.
593 .B Q_XGETQSTATV
594 Returns XFS filesystem-specific quota information in the
595 .I fs_quota_statv
596 pointed to by
597 .IR addr .
598 This version of the operation uses a structure with proper versioning support,
599 along with appropriate layout (all fields are naturally aligned) and
600 padding to avoiding special compat handling;
601 it also provides the ability to get statistics regarding
602 the project quota file.
604 .I fs_quota_statv
605 structure itself is defined as follows:
607 .in +4n
609 #define FS_QSTATV_VERSION1 1 /* fs_quota_statv.qs_version */
611 struct fs_qfilestatv {
612     uint64_t qfs_ino;       /* Inode number */
613     uint64_t qfs_nblks;     /* Number of BBs
614                                512\-byte\-blocks */
615     uint32_t qfs_nextents;  /* Number of extents */
616     uint32_t qfs_pad;       /* Pad for 8\-byte alignment */
619 struct fs_quota_statv {
620     int8_t   qs_version;    /* Version for future
621                                changes */
622     uint8_t  qs_pad1;       /* Pad for 16\-bit alignment */
623     uint16_t qs_flags;      /* XFS_QUOTA_.* flags */
624     uint32_t qs_incoredqs;  /* Number of dquots incore */
625     struct fs_qfilestatv qs_uquota;  /* User quota
626                                         information */
627     struct fs_qfilestatv qs_gquota;  /* Group quota
628                                         information */
629     struct fs_qfilestatv qs_pquota;  /* Project quota
630                                         information */
631     int32_t  qs_btimelimit;   /* Limit for blocks timer */
632     int32_t  qs_itimelimit;   /* Limit for inodes timer */
633     int32_t  qs_rtbtimelimit; /* Limit for RT blocks
634                                  timer */
635     uint16_t qs_bwarnlimit;   /* Limit for # of warnings */
636     uint16_t qs_iwarnlimit;   /* Limit for # of warnings */
637     uint64_t qs_pad2[8];      /* For future proofing */
643 .I qs_version
644 field of the structure should be filled with the version of the structure
645 supported by the callee (for now, only
646 .I FS_QSTAT_VERSION1
647 is supported).
648 The kernel will fill the structure in accordance with
649 version provided.
651 .I id
652 argument is ignored.
654 .B Q_XQUOTARM " (since Linux 3.16)"
655 .\" 9da93f9b7cdf8ab28da6b364cdc1fafc8670b4dc
656 Free the disk space taken by disk quotas.
658 .I addr
659 argument should be a pointer to an
660 .I "unsigned int"
661 value containing flags (the same as in
662 .I d_flags
663 field of
664 .I fs_disk_quota
665 structure)
666 which identify what types of quota
667 should be removed.
668 (Note that the quota type passed in the
669 .I cmd
670 argument is ignored, but should remain valid in order to pass preliminary
671 quotactl syscall handler checks.)
673 Quotas must have already been turned off.
675 .I id
676 argument is ignored.
678 .BR Q_XQUOTASYNC " (since Linux 2.6.15; no-op since Linux 3.4)"
679 .\" Added in commit ee34807a65aa0c5911dc27682863afca780a003e
680 This operation was an XFS quota equivalent to
681 .BR Q_SYNC ,
682 but it is no-op since Linux 3.4,
683 .\" 4b217ed9e30f94b6e8e5e262020ef0ceab6113af
685 .BR sync (1)
686 writes quota information to disk now
687 (in addition to the other filesystem metadata that it writes out).
689 .IR special ", " id " and " addr
690 arguments are ignored.
691 .SH RETURN VALUE
692 On success,
693 .BR quotactl ()
694 returns 0; on error \-1
695 is returned, and
696 .I errno
697 is set to indicate the error.
698 .SH ERRORS
700 .B EACCES
701 .I cmd
703 .BR Q_QUOTAON ,
704 and the quota file pointed to by
705 .I addr
706 exists, but is not a regular file or
707 is not on the filesystem pointed to by
708 .IR special .
710 .B EBUSY
711 .I cmd
713 .BR Q_QUOTAON ,
714 but another
715 .B Q_QUOTAON
716 had already been performed.
718 .B EFAULT
719 .I addr
721 .I special
722 is invalid.
724 .B EINVAL
725 .I cmd
727 .I type
728 is invalid.
730 .B EINVAL
731 .I cmd
733 .BR Q_QUOTAON ,
734 but the specified quota file is corrupted.
736 .BR EINVAL " (since Linux 5.5)"
737 .\" 3dd4d40b420846dd35869ccc8f8627feef2cff32
738 .I cmd
740 .BR Q_XQUOTARM ,
742 .I addr
743 does not point to valid quota types.
745 .B ENOENT
746 The file specified by
747 .I special
749 .I addr
750 does not exist.
752 .B ENOSYS
753 The kernel has not been compiled with the
754 .B CONFIG_QUOTA
755 option.
757 .B ENOTBLK
758 .I special
759 is not a block device.
761 .B EPERM
762 The caller lacked the required privilege
763 .RB ( CAP_SYS_ADMIN )
764 for the specified operation.
766 .B ERANGE
767 .I cmd
769 .BR Q_SETQUOTA ,
770 but the specified limits are out of the range allowed by the quota format.
772 .B ESRCH
773 No disk quota is found for the indicated user.
774 Quotas have not been turned on for this filesystem.
776 .B ESRCH
777 .I cmd
779 .BR Q_QUOTAON ,
780 but the specified quota format was not found.
782 .B ESRCH
783 .I cmd
785 .B Q_GETNEXTQUOTA
787 .BR Q_XGETNEXTQUOTA ,
788 but there is no ID greater than or equal to
789 .IR id
790 that has an active quota.
791 .SH NOTES
792 Instead of
793 .I <xfs/xqm.h>
794 one can use
795 .IR <linux/dqblk_xfs.h> ,
796 taking into account that there are several naming discrepancies:
797 .IP \(bu 3
798 Quota enabling flags (of format
799 .BR XFS_QUOTA_[UGP]DQ_{ACCT,ENFD} )
800 are defined without a leading "X", as
801 .BR FS_QUOTA_[UGP]DQ_{ACCT,ENFD} .
802 .IP \(bu
803 The same is true for
804 .B XFS_{USER,GROUP,PROJ}_QUOTA
805 quota type flags, which are defined as
806 .BR FS_{USER,GROUP,PROJ}_QUOTA .
807 .IP \(bu
809 .I dqblk_xfs.h
810 header file defines its own
811 .BR XQM_USRQUOTA ,
812 .BR XQM_GRPQUOTA ,
814 .B XQM_PRJQUOTA
815 constants for the available quota types, but their values are the same as for
816 constants without the
817 .B XQM_
818 prefix.
819 .SH SEE ALSO
820 .BR quota (1),
821 .BR getrlimit (2),
822 .BR quotacheck (8),
823 .BR quotaon (8)