FS_SETQUOTA(1)
πΎ FS_SETQUOTA(1) β the AFS Command Reference glow-up β¨
okay bestie, pull up a chair because we're talking about fs setquota, from the AFS Command Reference, and it's lowkey one of the most useful little commands ever. sit with me. π«Ά
πΈ NAME πΈ
fs_setquota β sets the quota for the volume containing a file or directory. that's it, that's the whole job, and she does it flawlessly. π
β¨ SYNOPSIS β¨
fs setquota [-path <dir/file path>]
-max <max quota in kbytes> [-help]
fs setq [-p <dir/file path>] -m <max quota> [-h]
fs sq [-p <dir/file path>] -m <max quota> [-h]
three ways to say the same thing, because sometimes you're typing fast and honestly fs sq is the moment. π
π DESCRIPTION π
so the fs setquota command sets the quota β that's the maximum possible size β of the read/write volume that contains the directory or file you named with the -path argument. that's the vibe. she finds the volume, she caps it, done. π
if you wanna set quotas on multiple volumes at the same time, that's a different girl: use the fs setvol command.
and if you just wanna look at a volume's quota (no cap, just peeking π), use fs examine, fs listquota, or fs quota.
β οΈ CAUTIONS β οΈ
okay listen, this part matters, no cap:
- rn, the maximum quota for a volume is 2 terabytes (
2^41bytes). - that cap only touches the volume's quota β a volume can grow way, way bigger than that if the volume quota is disabled. so like, the ceiling isn't real if you take the ceiling away. π
- BUT: volumes over 2 terabytes in size may be impractical to move, and some tools β like
fs_listquota(1)β may report their size incorrectly.
so yeah, big volume energy comes with big volume consequences. choose wisely. π
π§ OPTIONS π§
-path <dir/file path>β names the directory or file whose host volume's quota you wanna set. partial pathnames get interpreted relative to the current working directory, and the cwd is also the default value if you just... don't include this argument. no thoughts, head empty, defaults applied. β¨
also: specify the read/write path to the file or directory, so you don't hit the failure that comes from trying to change a read-only volume. by convention, the read/write path is shown by putting a period before the cell name at the pathname's second level β for example, /afs/.example.com. for more on the whole read/write vs read-only paths through the filespace thing, go read the fs mkmount reference page. iykyk. π
-max <max quota>β sets the maximum amount of file server disk space the volume can occupy. the quota value should be a positive integer followed by an optional suffix:"K"for kibibytes (1024bytes β this is the default, bestie)"M"for mebibytes (1024kibibytes)"G"for gibibytes (1024mebibytes)"T"for tebibytes (1024gibibytes)
a value of 0 sets an unlimited quota β but heads up, the size of the disk partition that houses the volume still places an absolute limit on the volume's size. so "unlimited" is doing a lil bit of lying, but affectionately. π
if you omit the -path argument (i.e. you're setting the quota of the volume housing the current working directory), then the -max switch must be included with this argument. non-negotiable.
-helpβ prints the online help for this command. all other valid options are ignored. she's not listening to anything else rn, she's helping. π
π EXAMPLES π
this command slaps a maximum quota of 3000 kilobytes on the volume that houses the /afs/example.com/usr/smith directory:
% fs setquota -path /afs/example.com/usr/smith -max 3000
look at her go. ate, no crumbs. π₯
π PRIVILEGE REQUIRED π
the issuer must belong to the system:administrators group. sorry babe, this one's a members-only situation. π
π SEE ALSO π
fs_examine(1), fs_listquota(1), fs_quota(1), fs_mkmount(1), fs_setvol(1)
(the whole friend group, honestly. go say hi. π¦)
π COPYRIGHT π
IBM Corporation 2000. <http://www.ibm.com/> All Rights Reserved.
this documentation is covered by the IBM Public License Version 1.0. it was converted from HTML to POD by software written by Chas Williams and Russ Allbery, based on work by Alf Wachsmann and Elizabeth Cassell. legends, all of them. π
and that's the whole page, bestie β brought to you by OpenAFS, dated 2026-07-27. go set some quotas, stay iconic, and remember: not me forgetting to check if the volume is read/write. π mwah π
π¦ where this page comes from
- ubuntu stonking: openafs-client 1.8.16.1-1
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms