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"
91 quotactl \- ディスク quota を操作する
94 .B #include <sys/types.h>
96 .B #include <sys/quota.h>
98 .BI "int quotactl(int " cmd ", const char *" special ", int " id \
102 quota システムは、各々のユーザ及び/またはグループに対して、
103 ソフト・リミット及びハード・リミットを定める。これはあるファイル・システムで
104 使用する事が出来るディスク容量を制限する。
105 ハード・リミットは超過することは出来ない。
106 ソフト・リミットは超過する事が出来るが、警告が発せられる。
107 更に、(デフォルトでは) 一週間以上ソフト・リミットを超過したままに
108 しておく事はできない: 一週間経過した後はハード・リミットを超過したと
112 システムコールはこれらの quota に対する操作を行なう。
114 .BI QCMD( subcmd , type )
127 は quota を適用するデバイスのブロック・スペシャル・ファイルである。
128 そのデバイスはマウントされていなくてはならない。
132 には、(必要な場合に) quota を適用するユーザーもしくはグループの ID を指定する。
136 には、コマンドごとに異ったデータ構造体のアドレスを指定する。
144 引き数には、そのファイル・システムの quota が記録されているファイルの
151 ディスク使用量の制限値と現在の使用量を得る。
155 で定義された) dqblk 構造体を指すポインタである。
171 ファイル・システムの quota ファイルをディスクと同期させる。
177 は、成功時には 0 を返す。エラー時は、\-1 を返すとともに、
183 quota ファイルが普通のファイルではない。
187 の要求がなされたが、quota(s) は既に有効になっている。
195 が既知の quota の形式ではない。もしくは、
200 quota ファイルへの読み書きが出来ない。
203 ファイルをオープンしすぎている: quota ファイルをオープン出来ない。
210 quota を使用可にしてカーネルをコンパイルしていない。
214 がブロック・スペシャル・デバイスではない。
217 プロセスが (そのファイル・システムの) root のものではなく、
229 quota が有効になっていないファイル・システムに対して