Deleted Added
full compact
quotactl.2 (108028) quotactl.2 (108087)
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

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

28.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
29.\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
30.\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
31.\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
32.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
33.\" SUCH DAMAGE.
34.\"
35.\" @(#)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

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

28.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
29.\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
30.\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
31.\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
32.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
33.\" SUCH DAMAGE.
34.\"
35.\" @(#)quotactl.2 8.2 (Berkeley) 3/10/95
36.\" $FreeBSD: head/lib/libc/sys/quotactl.2 108028 2002-12-18 09:22:32Z ru $
36.\" $FreeBSD: head/lib/libc/sys/quotactl.2 108087 2002-12-19 09:40:28Z ru $
37.\"
38.Dd March 5, 1999
39.Dt QUOTACTL 2
40.Os
41.Sh NAME
42.Nm quotactl
43.Nd manipulate file system quotas
44.Sh LIBRARY

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

107and
108.Fa id
109arguments are unused.
110Only the super-user may turn quotas off.
111.It Dv Q_GETQUOTA
112Get disk quota limits and current usage for the user or group
113(as determined by the command type) with identifier
114.Fa id .
37.\"
38.Dd March 5, 1999
39.Dt QUOTACTL 2
40.Os
41.Sh NAME
42.Nm quotactl
43.Nd manipulate file system quotas
44.Sh LIBRARY

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

107and
108.Fa id
109arguments are unused.
110Only the super-user may turn quotas off.
111.It Dv Q_GETQUOTA
112Get disk quota limits and current usage for the user or group
113(as determined by the command type) with identifier
114.Fa id .
115.Fa Addr
115The
116.Fa addr
117argument
116is a pointer to a
117.Fa struct dqblk
118structure (defined in
119.Ao Pa ufs/ufs/quota.h Ac ) .
120.It Dv Q_SETQUOTA
121Set disk quota limits for the user or group
122(as determined by the command type) with identifier
123.Fa id .
118is a pointer to a
119.Fa struct dqblk
120structure (defined in
121.Ao Pa ufs/ufs/quota.h Ac ) .
122.It Dv Q_SETQUOTA
123Set disk quota limits for the user or group
124(as determined by the command type) with identifier
125.Fa id .
124.Fa Addr
126The
127.Fa addr
128argument
125is a pointer to a
126.Fa struct dqblk
127structure (defined in
128.Ao Pa ufs/ufs/quota.h Ac ) .
129The usage fields of the
130.Fa dqblk
131structure are ignored.
132This system call is restricted to the super-user.
133.It Dv Q_SETUSE
134Set disk usage limits for the user or group
135(as determined by the command type) with identifier
136.Fa id .
129is a pointer to a
130.Fa struct dqblk
131structure (defined in
132.Ao Pa ufs/ufs/quota.h Ac ) .
133The usage fields of the
134.Fa dqblk
135structure are ignored.
136This system call is restricted to the super-user.
137.It Dv Q_SETUSE
138Set disk usage limits for the user or group
139(as determined by the command type) with identifier
140.Fa id .
137.Fa Addr
141The
142.Fa addr
143argument
138is a pointer to a
139.Fa struct dqblk
140structure (defined in
141.Ao Pa ufs/ufs/quota.h Ac ) .
142Only the usage fields are used.
143This system call is restricted to the super-user.
144.It Dv Q_SYNC
145Update the on-disk copy of quota usages.
146The command type specifies which type of quotas are to be updated.
147The
148.Fa id
149and
150.Fa addr
144is a pointer to a
145.Fa struct dqblk
146structure (defined in
147.Ao Pa ufs/ufs/quota.h Ac ) .
148Only the usage fields are used.
149This system call is restricted to the super-user.
150.It Dv Q_SYNC
151Update the on-disk copy of quota usages.
152The command type specifies which type of quotas are to be updated.
153The
154.Fa id
155and
156.Fa addr
151parameters are ignored.
157arguments are ignored.
152.El
153.Sh RETURN VALUES
154.Rv -std quotactl
155.Sh ERRORS
156The
157.Fn quotactl
158system call will fail if:
159.Bl -tag -width Er
160.It Bq Er EOPNOTSUPP
161The kernel has not been compiled with the
162.Dv QUOTA
163option.
164.It Bq Er EUSERS
165The quota table cannot be expanded.
166.It Bq Er EINVAL
158.El
159.Sh RETURN VALUES
160.Rv -std quotactl
161.Sh ERRORS
162The
163.Fn quotactl
164system call will fail if:
165.Bl -tag -width Er
166.It Bq Er EOPNOTSUPP
167The kernel has not been compiled with the
168.Dv QUOTA
169option.
170.It Bq Er EUSERS
171The quota table cannot be expanded.
172.It Bq Er EINVAL
167.Fa Cmd
173The
174.Fa cmd
175argument
168or the command type is invalid.
169In
170.Dv Q_GETQUOTA
171and
172.Dv Q_SETQUOTA ,
173quotas are not currently enabled for this file system.
174.It Bq Er EACCES
175In

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

196error occurred while reading from or writing
197to a file containing quotas.
198.It Bq Er EFAULT
199An invalid
200.Fa addr
201was supplied; the associated structure could not be copied in or out
202of the kernel.
203.It Bq Er EFAULT
176or the command type is invalid.
177In
178.Dv Q_GETQUOTA
179and
180.Dv Q_SETQUOTA ,
181quotas are not currently enabled for this file system.
182.It Bq Er EACCES
183In

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

204error occurred while reading from or writing
205to a file containing quotas.
206.It Bq Er EFAULT
207An invalid
208.Fa addr
209was supplied; the associated structure could not be copied in or out
210of the kernel.
211.It Bq Er EFAULT
204.Fa Path
212The
213.Fa path
214argument
205points outside the process's allocated address space.
206.It Bq Er EPERM
207The call was privileged and the caller was not the super-user.
208.El
209.Sh SEE ALSO
210.Xr quota 1 ,
211.Xr fstab 5 ,
212.Xr edquota 8 ,

--- 14 unchanged lines hidden ---
215points outside the process's allocated address space.
216.It Bq Er EPERM
217The call was privileged and the caller was not the super-user.
218.El
219.Sh SEE ALSO
220.Xr quota 1 ,
221.Xr fstab 5 ,
222.Xr edquota 8 ,

--- 14 unchanged lines hidden ---