QUOTACTL
Section: Linux Programmer's Manual
(2)
Updated: 14 April 1996
Index
Return to Main Contents
À̸§
quotactl - µð½ºÅ© ºÐÇÒÀ» ´Ù·é´Ù
»ç¿ë¹ý
#include <sys/types.h>
#include <sys/quota.h>
int quotactl (int cmd, const char *special, int id
, caddr_t addr);
#include <linux/unistd.h>
_syscall4(int, quotactl, int, cmd, const char *, special
, int, id, caddr_t, addr);
¼³¸í
quota systemÀº °¢°¢ÀÇ »ç¿ëÀÚ³ª ±×·ìÀ» À§ÇØ ÁÖ¾îÁø ÆÄÀÏ ½Ã½ºÅÛ»ó¿¡¼ »ç¿ëÇÒ ¼ö ÀÖ´Â µð½ºÅ© °ø°£ÀÇ ¾çÀ» soft limit³ª hard limit·Î ¹¾îÁÖ´Â °ÍÀÌ´Ù. hard limit´Â ¿¬°áµÉ ¼ö ¾ø´Ù. soft limit´Â ¿¬°áµÉ ¼ö ÀÖ´Ù. ÇÏÁö¸¸ ÁÖÀÇ°¡ ÇÊ¿äÇÏ´Ù. °Ô´Ù°¡, µ¡ºÙ¿©¼ »ç¿ëÀÚ´Â µðÆúÆ® »óÅ¿¡¼ Çѹø¿¡ ÀÏÁÖÀÏ ÀÌ»ó soft limit »ó¿¡ ÀÖÀ» ¼ö ¾ø´Ù. ÀÏÁÖÀÏ ÈÄ¿¡´Â hard limit·Î °è»êµÈ´Ù.
quotactl
½Ã½ºÅÛ È£ÃâÀº ÀÌ quota¸¦ ´Ù·é´Ù. ÀÌ°ÍÀº ù¹ø° µ¶¸³º¯¼ö´Â
QCMD(subcmd,type)
ÀÇ ÇüÅÂÀÌ´Ù.
type
˼
USRQUOTA
³ª
GRPQUOTA
(°¢°¢ »ç¿ëÀÚ quota¿Í ±×·ì quota)ÀÌ°í,
subcmd
´Â ¾Æ·¡¸¦ ÂüÁ¶ÇÏÀÚ.
µÎ¹ø° µ¶¸³º¯¼ö
special
´Â quota¿¡ Àû¿ëµÇ´Â Ưº°ÇÑ ÀåÄ¡ÀÌ´Ù.
¹Ýµå½Ã ¸¶¿îÆ® ½ÃÄÑ¾ß ÇÑ´Ù.
¼¼¹ø° µ¶¸³º¯¼ö
id
´Â ÀÌ quota°¡ Àû¿ëµÇ´Â »ç¿ëÀÚ³ª ±×·ìÀÇ idÀÌ´Ù.
³×¹ø° µ¶¸³º¯¼ö
addr
´Â ¸í·É¾î¿¡ µû¸¥ µ¥ÀÌÅÍ ±¸Á¶ÀÇ ÁÖ¼ÒÀÌ´Ù.
subcmd
´Â
- Q_QUOTAON
-
°¡´É quotaÁß Çϳª ÀÌ´Ù.
addr
µ¶¸³º¯¼ö´Â ÆÄÀÏ ½Ã½ºÅÛÀ» À§ÇÑ quota¸¦ Æ÷ÇÔÇÏ´Â ÆÄÀÏÀÇ °æ·Î¸íÀÌ´Ù.
- Q_QUOTAOFF
-
quota »ç¿ëºÒ°¡.
- Q_GETQUOTA
-
limit°ú ÇöÀç µð½ºÅ© °ø°£ÀÇ »ç¿ë¾çÀ» °¡Áø´Ù.
addr
µ¶¸³º¯¼ö´Â dqblk structure (
<sys/quota.h>
¿¡ Á¤ÀÇµÈ )¸¦ °¡¸£Å°´Â Æ÷ÀÎÅÍÀÌ´Ù.
- Q_SETQUOTA
-
limit°ú ÇöÀç »ç¿ë¾çÀ» ¼³Á¤ÇÑ´Ù;
addr
´Â ÀÌÀü°ú °°ÀÌ ¾²ÀδÙ.
- Q_SETQLIM
-
limit¸¦ ¼³Á¤ÇÑ´Ù;
addr
´Â ÀÌÀü°ú °°ÀÌ ¾²ÀδÙ.
- Q_SETUSE
-
»ç¿ë·® ¼³Á¤.
- Q_SYNC
-
filesystems quotasÀÇ Sync disk copy
- Q_GETSTATS
-
ÇöÁ¦ »óŸ¦ °¡Áø´Ù.
¹Ýȯ°ª
¼º°ø½Ã,
quotactl
´Â 0À» ¹ÝȯÇÑ´Ù. ¿¡·¯½Ã, -1À» ¹ÝȯÇÑ´Ù.
errno
´Â ÀûÀýÈ÷ ¼³Á¤µÈ´Ù.
¿¡·¯
- ENOPKG
-
Ä¿³ÎÀÌ quota Áö¿ø ¾øÀÌ ÄÄÆÄÀÏ µÇ¾ú´Ù.The kernel was compiled without quota support.
- EFAULT
-
ºÎÀû´çÇÑ
addr
°ª.
- EINVAL
-
type
ÀÌ ¾Ë·ÁÁöÁö ¾ÊÀº typeÀÌ´Ù. ȤÀº,
special
À» ãÀ» ¼ö ¾ø´Ù.
- ENOTBLK
-
special
ÀÌ block special deviceÀÌ ¾Æ´Ï´Ù.
- ENODEV
-
special
À» ¸¶¿îÆ® Å×ÀÌºí¿¡¼ ãÀ» ¼ö ¾ø´Ù.
- EACCES
-
quota°¡ ÀÏ¹Ý ÆÄÀÏÀÌ ¾Æ´Ï´Ù.
- EIO
-
quota ÆÄÀÏÀ» Àаųª ¾µ ¼ö ¾ø´Ù.
- EMFILE
-
³Ê¹« ¸¹Àº ÆÄÀÏÀÌ ¿·Á ÀÖ¾î¼ quotaÆÄÀÏÀ» ¿ ¼ö ¾ø´Ù.
- EBUSY
-
Q_QUOTAON
ÀÌ ¿ä±¸µÇ¾úÁö¸¸, quota°¡ ÀÌ¹Ì »ç¿ëµÇ°í ÀÖ´Ù.
- ESRCH
-
Q_GETQUOTA
³ª
Q_SETQUOTA
³ª
Q_SETUSE
³
Q_SETQLIM
°¡ quota°¡ °¡´ÉÇÑ ÆÄÀϽýºÅÛ¿¡°Ô ¿ä±¸µÇ¾ú´Ù.
- EPERM
-
The process was not root (for the file system), and
Q_GETQUOTA
°¡ ´Ù¸¥ ÀÌ¹Ì »ç¿ëµÇ°í ÀÖ´Â
id
¿¡°Ô ¿ä±¸µÇ¾ú´Ù. ȤÀº
Q_GETSTATS
³ª
Q_SYNC
°¡ ¿ä±¸µÇ¾ú´Ù.
ȣȯ
BSD
°ü·Ã Ç׸ñ
quota(1),
getrlimit(2),
setrlimit(2),
ulimit(2),
quotacheck(8),
quotaon(8)
¿ªÀÚ
ASPLINUX<man@asp-linux.co.kr>, 2000³â 7¿ù 29
Index
- À̸§
-
- »ç¿ë¹ý
-
- ¼³¸í
-
- ¹Ýȯ°ª
-
- ¿¡·¯
-
- ȣȯ
-
- °ü·Ã Ç׸ñ
-
- ¿ªÀÚ
-
This document was created by
man2html,
using the manual pages.
Time: 08:06:58 GMT, March 25, 2004