IceWalkers.com - Linux Software downloads and news
Name : Password :
Linux SoftwareLinux RPMLinux HowtosLink UsAboutAdvertise

quotactl (2)

QUOTACTL(2)                Linux Programmer's Manual               QUOTACTL(2)



NAME
       quotactl - manipulate disk quotas

SYNOPSIS
       #include<sys/types.h>
       #include<sys/quota.h>

       intquotactl(int cmd,constchar*special,int id,caddr_t addr);

       #include<linux/unistd.h>

       _syscall4(int,quotactl,int,  cmd,constchar*, special ,int, id,
       caddr_t, addr);

DESCRIPTION
       The quota system defines for each user and/or group a soft limit and  a
       hard  limit  bounding  the  amount  of disk space that can be used on a
       given file system.  The hard limit cannot be crossed.  The  soft  limit
       can  be  crossed, but warnings will ensue. Moreover, the user cannot be
       above the soft limit for more than one week (by  default)  at  a  time:
       after this week the soft limit counts as hard limit.

       The quotactl system call manipulates these quota. Its first argument is
       of the form QCMD(subcmd,type) where type is either USRQUOTA or GRPQUOTA
       (for user quota and group quota, respectively), and subcmd is described
       below.

       The second argument special is the block  special  device  these  quota
       apply to.  It must be mounted.

       The  third  argument  id  is  the user or group id these quota apply to
       (when relevant).

       The fourth argument addr is the address of a data structure,  depending
       on the command.

       The subcmd is one of

       Q_QUOTAON  Enable quotas. The addr argument is the pathname of the file
                  containing the quotas for the filesystem.

       Q_QUOTAOFF Disable quotas.

       Q_GETQUOTA Get limits and current usage of disk space. The  addr  argu-
                  ment   is  a  pointer  to  a  dqblk  structure  (defined  in
                  <sys/quota.h>).

       Q_SETQUOTA Set limits and current usage; addr is as before.

       Q_SETQLIM  Set limits; addr is as before.

       Q_SETUSE   Set usage.

       Q_SYNC     Sync disk copy of a filesystems quotas.

       Q_GETSTATS Get collected stats.


RETURNVALUE
       On success, quotactl returns 0. On error, -1 is returned, and errno  is
       set appropriately.

ERRORS
       ENOPKG   The kernel was compiled without quota support.

       EFAULT   Bad addr value.

       EINVAL   type  is  not  a  known  quota  type. Or, special could not be
                found.

       ENOTBLK  special is not a block special device.

       ENODEV   special cannot be found in the mount table.

       EACCES   The quota file is not an ordinary file.

       EIO      Cannot read or write the quota file.

       EMFILE   Too many open files: cannot open quota file.

       EBUSYQ_QUOTAON was asked, but quota were enabled already.

       ESRCHQ_GETQUOTA or Q_SETQUOTA or Q_SETUSE or  Q_SETQLIM  was  asked
                for a file system that didn't have quota enabled.

       EPERM    The process was not root (for the file system), and Q_GETQUOTA
                was asked for another id than that of the process  itself,  or
                anything other than Q_GETSTATS or Q_SYNC was asked.

CONFORMINGTO
       BSD

SEEALSO
       quota(1),  getrlimit(2),  setrlimit(2),  ulimit(3), quotacheck(8), quo-
       taon(8)



Linux 1.3.88                      1996-04-14                       QUOTACTL(2)

_Exitgetsockoptoutwshmat
_exitgettidoutw_pshmctl
_llseekgettimeofdaypauseshmdt
_newselectgetuidpersonalityshmget
_sysctlgttypipeshmop
acceptidlepivot_rootshutdown
accessinbpollsigaction
acctinb_pprctlsigaltstack
adjtimexinlpreadsigblock
afs_syscallinl_pprofsiggetmask
alarminsbpselectsigmask
alloc_hugepagesinslptracesignal
arch_prctlinswpwritesigpause
bdflushintroquotactlsigpending
bindinwreadsigprocmask
breakinw_preaddirsigqueue
brkioctlreadlinksigreturn
cacheflushioctl_listreadvsigsetmask
capgetiopermrebootsigsuspend
capsetioplrecvsigtimedwait
chdiripcrecvfromsigvec
chmodkillrecvmsgsigwaitinfo
chownkillpgrenamesocket
chrootlchownrmdirsocketcall
clonelinksbrksocketpair
closelistensched_get_priority_maxssetmask
connectllseeksched_get_priority_minstat
creatlocksched_getaffinitystatfs
duplseeksched_getparamstime
dup2lstatsched_getschedulerstty
execvemadvisesched_rr_get_intervalswapoff
exitmincoresched_setaffinityswapon
fchdirmkdirsched_setparamsymlink
fchmodmknodsched_setschedulersync
fchownmlocksched_yieldsyscall
fcntlmlockallselectsyscalls
fdatasyncmmapselect_tutsysctl
flockmmap2semctlsysfs
forkmodify_ldtsemgetsysinfo
free_hugepagesmountsemopsyslog
fstatmprotectsendtime
fstatfsmpxsendfiletimes
fsyncmremapsendmsgtkill
ftruncatemsgctlsendtotruncate
futexmsggetsetcontextumask
getcontextmsgopsetdomainnameumount
getdentsmsgrcvsetegidumount2
getdomainnamemsgsndseteuiduname
getdtablesizemsyncsetfsgidundocumented
getegidmunlocksetfsuidunimplemented
geteuidmunlockallsetgidunlink
getgidmunmapsetgroupsuselib
getgroupsnanosleepsethostidustat
gethostidnfsservctlsethostnameutime
gethostnamenicesetitimerutimes
getitimerobsoletesetpgidvfork
getpagesizeoldfstatsetpgrpvhangup
getpeernameoldlstatsetpriorityvm86
getpgidoldoldunamesetregidwait
getpgrpoldstatsetresgidwait3
getpidoldunamesetresuidwait4
getppidopensetreuidwaitpid
getpriorityoutbsetrlimitwrite
getresgidoutb_psetsidwritev
getresuidoutlsetsockopt 
getrlimitoutl_psettimeofday 
getrusageoutsbsetuid 
getsidoutslsetup 


The Gimp 2.6.3
GNU Image Manipulation Program
Linux Kernel 2.6 2.6.27.7
Linux Kernel
Battle for Wesnoth 1.4.6
Fantasy Turn-Based Strategy Game
DeleGate 9.9.0-pre8
Proxy server which runs on multiple platforms
Safesquid proxy server 4.2.2.RC8.14B
Antivirus and content filtering proxy server
Thunderbird 2.0.0.18
An email and newsgroup client with powerful, new junk mail controls
Wine 1.1.9
Free implementation of Windows on Unix
WebGUI 7.5.34
A fully featured content management system.
KOffice 2.0 beta3
Integrated office suite for KDE
LimeWire 4.18.8
Gnutella Client
Free IT Magazines, White Papers, eBooks, and more !
Oracle Magazine

Contains technology strategy articles, sample code, tips, Oracle and partner news, how to articles for developers and DBAs, and more.

eWeek

The essential technology information source for builders of e-business.

BusinessWeek (Digital Edition)

Provides readers a deeper understanding of the trends that drive growth, and what best practices keep them ahead of the competition.

Linux Software Map
Find Linux RPM
Best Rated Linux Software
Most Rated Linux Software
Linux Distributions
Linux Howtos
Quick Survey

Please take our survey and help us improve our website to serve you better.

Thank you.
Linux Software
Linux / IT Resources
Site Resources
Google
Privacy Policy
Contact Us
Submit Software
Advertising info