Deleted Added
full compact
quotactl.2 (166382) quotactl.2 (207736)
1.\" Copyright (c) 1983, 1990, 1991, 1993
2.\" The Regents of the University of California. All rights reserved.
3.\"
4.\" This code is derived from software contributed to Berkeley by
5.\" Robert Elz at The University of Melbourne.
6.\"
7.\" Redistribution and use in source and binary forms, with or without
8.\" modification, are permitted provided that the following conditions

--- 15 unchanged lines hidden (view full) ---

24.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
25.\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
26.\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
27.\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
28.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
29.\" SUCH DAMAGE.
30.\"
31.\" @(#)quotactl.2 8.2 (Berkeley) 3/10/95
1.\" Copyright (c) 1983, 1990, 1991, 1993
2.\" The Regents of the University of California. All rights reserved.
3.\"
4.\" This code is derived from software contributed to Berkeley by
5.\" Robert Elz at The University of Melbourne.
6.\"
7.\" Redistribution and use in source and binary forms, with or without
8.\" modification, are permitted provided that the following conditions

--- 15 unchanged lines hidden (view full) ---

24.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
25.\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
26.\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
27.\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
28.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
29.\" SUCH DAMAGE.
30.\"
31.\" @(#)quotactl.2 8.2 (Berkeley) 3/10/95
32.\" $FreeBSD: head/lib/libc/sys/quotactl.2 166382 2007-02-01 02:31:02Z mpp $
32.\" $FreeBSD: head/lib/libc/sys/quotactl.2 207736 2010-05-07 00:41:12Z mckusick $
33.\"
34.Dd March 5, 1999
35.Dt QUOTACTL 2
36.Os
37.Sh NAME
38.Nm quotactl
39.Nd manipulate file system quotas
40.Sh LIBRARY

--- 38 unchanged lines hidden (view full) ---

79a command is composed of a primary command (see below)
80and a command type used to interpret the
81.Fa id .
82Types are supported for interpretation of user identifiers (USRQUOTA)
83and group identifiers (GRPQUOTA).
84The
85.Dq ufs
86specific commands are:
33.\"
34.Dd March 5, 1999
35.Dt QUOTACTL 2
36.Os
37.Sh NAME
38.Nm quotactl
39.Nd manipulate file system quotas
40.Sh LIBRARY

--- 38 unchanged lines hidden (view full) ---

79a command is composed of a primary command (see below)
80and a command type used to interpret the
81.Fa id .
82Types are supported for interpretation of user identifiers (USRQUOTA)
83and group identifiers (GRPQUOTA).
84The
85.Dq ufs
86specific commands are:
87.Bl -tag -width Q_QUOTAOFFxx
87.Bl -tag -width Q_GETQUOTASIZEx
88.It Dv Q_QUOTAON
89Enable disk quotas for the file system specified by
90.Fa path .
91The command type specifies the type of the quotas being enabled.
92The
93.Fa addr
94argument specifies a file from which to take the quotas.
95The quota file must exist;

--- 9 unchanged lines hidden (view full) ---

105.Fa path .
106The command type specifies the type of the quotas being disabled.
107The
108.Fa addr
109and
110.Fa id
111arguments are unused.
112Only the super-user may turn quotas off.
88.It Dv Q_QUOTAON
89Enable disk quotas for the file system specified by
90.Fa path .
91The command type specifies the type of the quotas being enabled.
92The
93.Fa addr
94argument specifies a file from which to take the quotas.
95The quota file must exist;

--- 9 unchanged lines hidden (view full) ---

105.Fa path .
106The command type specifies the type of the quotas being disabled.
107The
108.Fa addr
109and
110.Fa id
111arguments are unused.
112Only the super-user may turn quotas off.
113.It Dv Q_GETQUOTASIZE
114Get the wordsize used to represent the quotas for the user or group
115(as determined by the command type).
116Possible values are 32 for the old-style quota file
117and 64 for the new-style quota file.
118The
119.Fa addr
120argument is a pointer to an integer into which the size is stored.
121The identifier
122.Fa id
123is not used.
113.It Dv Q_GETQUOTA
114Get disk quota limits and current usage for the user or group
115(as determined by the command type) with identifier
116.Fa id .
117The
118.Fa addr
119argument
120is a pointer to a

--- 51 unchanged lines hidden (view full) ---

172.It Bq Er EUSERS
173The quota table cannot be expanded.
174.It Bq Er EINVAL
175The
176.Fa cmd
177argument
178or the command type is invalid.
179In
124.It Dv Q_GETQUOTA
125Get disk quota limits and current usage for the user or group
126(as determined by the command type) with identifier
127.Fa id .
128The
129.Fa addr
130argument
131is a pointer to a

--- 51 unchanged lines hidden (view full) ---

183.It Bq Er EUSERS
184The quota table cannot be expanded.
185.It Bq Er EINVAL
186The
187.Fa cmd
188argument
189or the command type is invalid.
190In
180.Dv Q_GETQUOTA
181and
191.Dv Q_GETQUOTASIZE ,
192.Dv Q_GETQUOTA ,
182.Dv Q_SETQUOTA ,
193.Dv Q_SETQUOTA ,
194and
195.Dv Q_SETUSE ,
183quotas are not currently enabled for this file system.
184.Pp
185The
186.Fa id
187argument to
188.Dv Q_GETQUOTA ,
189.Dv Q_SETQUOTA
190or

--- 12 unchanged lines hidden (view full) ---

203or the entire length of either path name exceeded 1023 characters.
204.It Bq Er ENOENT
205A filename does not exist.
206.It Bq Er ELOOP
207Too many symbolic links were encountered in translating a pathname.
208.It Bq Er EROFS
209In
210.Dv Q_QUOTAON ,
196quotas are not currently enabled for this file system.
197.Pp
198The
199.Fa id
200argument to
201.Dv Q_GETQUOTA ,
202.Dv Q_SETQUOTA
203or

--- 12 unchanged lines hidden (view full) ---

216or the entire length of either path name exceeded 1023 characters.
217.It Bq Er ENOENT
218A filename does not exist.
219.It Bq Er ELOOP
220Too many symbolic links were encountered in translating a pathname.
221.It Bq Er EROFS
222In
223.Dv Q_QUOTAON ,
211the quota file resides on a read-only file system.
224either the file system on which quotas are to be enabled is mounted read-only
225or the quota file resides on a read-only file system.
212.It Bq Er EIO
213An
214.Tn I/O
215error occurred while reading from or writing
216to a file containing quotas.
217.It Bq Er EFAULT
218An invalid
219.Fa addr

--- 28 unchanged lines hidden ---
226.It Bq Er EIO
227An
228.Tn I/O
229error occurred while reading from or writing
230to a file containing quotas.
231.It Bq Er EFAULT
232An invalid
233.Fa addr

--- 28 unchanged lines hidden ---