1 .\" Hey Emacs! This file is -*- nroff -*- source.
3 .\" Copyright (C) 1996 Andries Brouwer (aeb@cwi.nl)
5 .\" Permission is granted to make and distribute verbatim copies of this
6 .\" manual provided the copyright notice and this permission notice are
7 .\" preserved on all copies.
9 .\" Permission is granted to copy and distribute modified versions of this
10 .\" manual under the conditions for verbatim copying, provided that the
11 .\" entire resulting derived work is distributed under the terms of a
12 .\" permission notice identical to this one.
14 .\" Since the Linux kernel and libraries are constantly changing, this
15 .\" manual page may be incorrect or out-of-date. The author(s) assume no
16 .\" responsibility for errors or omissions, or for damages resulting from
17 .\" the use of the information contained herein. The author(s) may not
18 .\" have taken the same level of care in the production of this manual,
19 .\" which is licensed free of charge, as they might when working
22 .\" Formatted or processed versions of this manual, if unaccompanied by
23 .\" the source, must acknowledge the copyright and authors of this work.
25 .\" FIXME There is much that is missing and/or out of date in this page.
26 .\" (There is a quotactl.2 page in the quotactl package that seems to
27 .\" have more info than this page.)
28 .\" As things stand the page more or less documents Linux 2.2 reality:
36 .\" Q_RSQUASH (not currently documented)
55 .\" Q_V1_GETQUOTA Q_V1_GETSTATS Q_V1_RSQUASH Q_V1_SETQLIM
56 .\" Q_V1_SETQUOTA Q_V1_SETUSE
57 .\" Q_V2_GETINFO Q_V2_GETQUOTA Q_V2_SETFLAGS Q_V2_SETGRACE
58 .\" Q_V2_SETINFO Q_V2_SETQUOTA Q_V2_SETUSE
59 .\" Q_XGETQSTAT Q_XGETQUOTA Q_XQUOTAOFF Q_XQUOTAON Q_XQUOTARM
80 .\" Japanese Version Copyright (c) 1997 Kazuyoshi Furutaka
81 .\" all rights reserved.
82 .\" Translated Sun Dec 21 21:58:06 JST 1997
83 .\" by Kazuyoshi Furutaka <furutaka@jb3.so-net.or.jp>
84 .\" Modified Wed Dec 24 22:17:00 JST 1997
85 .\" by HANATAKA Shinya <hanataka@abyss.rim.or.jp>
86 .\" Updated & Modified Thu Feb 24 02:50:48 JST 2005
87 .\" by Yuichi SATO <ysato444@yahoo.co.jp>
89 .TH QUOTACTL 2 2007-06-01 "Linux" "Linux Programmer's Manual"
92 .\"O quotactl \- manipulate disk quota
93 quotactl \- ディスク quota を操作する
97 .B #include <sys/types.h>
99 .B #include <sys/quota.h>
101 .BI "int quotactl(int " cmd ", const char *" special ", int " id \
106 .\"O The quota system defines for each user and/or group a soft limit
107 .\"O and a hard limit bounding the amount of disk space that can be
108 .\"O used on a given file system.
109 .\"O The hard limit cannot be crossed.
110 .\"O The soft limit can be crossed, but warnings will ensue.
112 .\"O the user cannot be above the soft limit for more than one week (by default)
113 .\"O at a time: after this week the soft limit counts as hard limit.
114 quota システムは、各々のユーザ及び/またはグループに対して、
115 ソフト・リミット及びハード・リミットを定める。これはあるファイル・システムで
116 使用する事が出来るディスク容量を制限する。
117 ハード・リミットは超過することは出来ない。
118 ソフト・リミットは超過する事が出来るが、警告が発せられる。
119 更に、(デフォルトでは) 一週間以上ソフト・リミットを超過したままに
120 しておく事はできない: 一週間経過した後はハード・リミットを超過したと
125 .\"O system call manipulates these quota.
126 .\"O Its first argument is
128 .\"O .BI QCMD( subcmd , type )
135 .\"O (for user quota and group quota, respectively), and
137 .\"O is described below.
139 システムコールはこれらの quota に対する操作を行なう。
141 .BI QCMD( subcmd , type )
152 .\"O The second argument
154 .\"O is the block special device these quota apply to.
155 .\"O It must be mounted.
158 は quota を適用するデバイスのブロック・スペシャル・ファイルである。
159 そのデバイスはマウントされていなくてはならない。
161 .\"O The third argument
163 .\"O is the user or group ID these quota apply to (when relevant).
166 には、(必要な場合に) quota を適用するユーザーもしくはグループの ID を指定する。
168 .\"O The fourth argument
170 .\"O is the address of a data structure, depending on the command.
173 には、コマンドごとに異ったデータ構造体のアドレスを指定する。
185 .\"O argument is the pathname of the file containing
186 .\"O the quota for the file system.
189 引き数には、そのファイル・システムの quota が記録されているファイルの
197 .\"O Get limits and current usage of disk space.
200 .\"O argument is a pointer to a dqblk structure (defined in
201 .\"O .IR <sys/quota.h> ).
202 ディスク使用量の制限値と現在の使用量を得る。
206 で定義された) dqblk 構造体を指すポインタである。
209 .\"O Set limits and current usage;
229 .\"O Sync disk copy of a file system's quota.
230 ファイル・システムの quota ファイルをディスクと同期させる。
233 .\"O Get collected stats.
235 .\"O .SH "RETURN VALUE"
240 .\"O On error, \-1 is returned, and
242 .\"O is set appropriately.
244 は、成功時には 0 を返す。エラー時は、\-1 を返すとともに、
251 .\"O The quota file is not an ordinary file.
252 quota ファイルが普通のファイルではない。
256 .\"O was asked, but quotas were enabled already.
258 の要求がなされたが、quota(s) は既に有効になっている。
269 .\"O is not a known quota type.
272 .\"O could not be found.
274 が既知の quota の形式ではない。もしくは、
279 .\"O Cannot read or write the quota file.
280 quota ファイルへの読み書きが出来ない。
283 .\"O Too many open files: cannot open quota file.
284 ファイルをオープンしすぎている: quota ファイルをオープン出来ない。
288 .\"O cannot be found in the mount table.
293 .\"O The kernel was compiled without quota support.
294 quota を使用可にしてカーネルをコンパイルしていない。
298 .\"O is not a block special device.
300 がブロック・スペシャル・デバイスではない。
303 .\"O The process was not root (for the file system), and
305 .\"O was asked for another
307 .\"O than that of the process itself, or anything other than
312 プロセスが (そのファイル・システムの) root のものではなく、
331 .\"O was asked for a file system that didn't have quota enabled.
332 quota が有効になっていないファイル・システムに対して
338 .\"O .SH "CONFORMING TO"