1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188
|
.\" -*- nroff -*-
.\"
.\" Copyright (C) 1996 Andries Brouwer (aeb@cwi.nl)
.\"
.\" Permission is granted to make and distribute verbatim copies of this
.\" manual provided the copyright notice and this permission notice are
.\" preserved on all copies.
.\"
.\" Permission is granted to copy and distribute modified versions of this
.\" manual under the conditions for verbatim copying, provided that the
.\" entire resulting derived work is distributed under the terms of a
.\" permission notice identical to this one
.\"
.\" Since the Linux kernel and libraries are constantly changing, this
.\" manual page may be incorrect or out-of-date. The author(s) assume no
.\" responsibility for errors or omissions, or for damages resulting from
.\" the use of the information contained herein. The author(s) may not
.\" have taken the same level of care in the production of this manual,
.\" which is licensed free of charge, as they might when working
.\" professionally.
.\"
.\" Formatted or processed versions of this manual, if unaccompanied by
.\" the source, must acknowledge the copyright and authors of this work.
.\"
.TH QUOTACTL 2 "14/04/1996" "Linux 1.3.88" "Manual do Programador Linux"
.SH NOME
quotactl \- manipula as quotas de disco
.SH SINOPSE
.B #include <sys/types.h>
.br
.B #include <sys/quota.h>
.sp
.BI "int quotactl (int " cmd ", const char *" special ", int " id
.BI ", caddr_t " addr );
.sp
.B #include <linux/unistd.h>
.sp
.BI "_syscall4(int, quotactl, int, " cmd ", const char *, " special
.BI ", int, " id ", caddr_t, " addr );
.SH DESCRIO
O sistema de quotas define para cada usurio e/ou grupo um limite flexvel
e um limite inflexvel restringindo a quantidade de espao em disco que pode ser
usado em um sistema de arquivos. O limite inflexvel no pode ser cruzado.
O limite flexvel pode ser cruzado, mas avisos viro. Alm disso,
o usurio no pode ficar acima do limite flexvel por mais que uma semana (padro)
em um determinado tempo: depois desta semana o limite flexvel funciona com um limite inflexvel.
A chamada de sistema
.B quotactl
manipula esta quota. Seu primeiro argumento
da forma
.IB QCMD( subcmd , type )
onde
.I type
um dos dois
.B USRQUOTA
ou
.B GRPQUOTA
(para quota de usurio e grupo, respectivamente), e
.I subcmd
descrito abaixo.
O segundo argumento
.I special
um dispositivo de bloco onde ser aplicada a quota.
Ele deve estar montado.
O tereiro argumento
.I id
a ID do usurio ou grupo que esta quota ser aplicada (quando relevante).
o quarto argumento
.I addr
o endereo da estrutura de dados, dependendo do comando.
O
.I subcmd
um dos
.TP 1.1i
.B Q_QUOTAON
Habilita quotas. O
.I addr
argumento o caminho de busca do arquivo contendo
as quotas para o sistema de arquivos.
.TP
.B Q_QUOTAOFF
Desabilita quotas.
.TP
.B Q_GETQUOTA
Obtm limites e uso corrente do espao de disco. o argumento
.I addr
um ponteiro para uma estrutura dqblk (definida em
.IR <sys/quota.h> ).
.TP
.B Q_SETQUOTA
Seleciona limites e uso atual;
.I addr
como antes.
.TP
.B Q_SETQLIM
Seleciona limites;
.I addr
como antes.
.TP
.B Q_SETUSE
Seleciona o uso.
.TP
.B Q_SYNC
Sincroniza uma cpia do disco para um sistema de arquivos quota.
.TP
.B Q_GETSTATS
Obtm estatsticas.
.SH "VALORES RETORNADOS"
Em caso de sucesso,
.B quotactl
retorna 0. Caso contrrio, \-1 retornado, e
.I errno
selecionado adequadamente.
.SH ERROS
.TP 0.9i
.B ENOPKG
O kernel foi compilado sem suporte para quotas.
.TP
.B EFAULT
Valor
.I addr
ruim.
.TP
.B EINVAL
.I tipo
no um tipo de quota conhecido. Ou,
.I special
no pode ser achado.
.TP
.B ENOTBLK
.I special
no dispostivo de bloco.
.TP
.B ENODEV
.I special
no pode ser achado na tabela de montagem.
.TP
.B EACCES
O arquivo quota no um arquivo ordinrio.
.TP
.B EIO
No se pode ler ou escrever no arquivo quota.
.TP
.B EMFILE
Muitos arquivos abertos: no pode abrir o arquivo de quota.
.TP
.B EBUSY
.B Q_QUOTAON
foi questionado, mas quota j est habilitado.
.TP
.B ESRCH
.B Q_GETQUOTA
ou
.B Q_SETQUOTA
ou
.B Q_SETUSE
ou
.B Q_SETQLIM
foi questionado por um sistema de arquivos que no tem quota habilitada.
.TP
.B EPERM
O processo no do super-usurio (para o sistema de arquivos), e
.B Q_GETQUOTA
foi questionado por outra
.I id
que aquele mesmo do processo, ou qualquer coisa a no ser
.B Q_GETSTATS
ou
.B Q_SYNC
foi questionada.
.SH "DE ACORDO COM"
BSD
.SH "VEJA TAMBM"
.BR quota (1),
.BR getrlimit (2),
.BR setrlimit (2),
.BR ulimit (2),
.BR quotacheck (8),
.BR quotaon (8)
.SH TRADUZIDO POR LDP-BR em 21/08/2000
\&\fR\&\f(CWAndr L. Fassone Canova <lonelywolf@blv.com.br> (traduo)\fR
\&\fR\&\f(CWxxxxxxxxxxxxxxxxxxxxxxxxx <xxx@xxxxxx.xxx.xx> (reviso)\f
|