smb2-quota(1)
π smb2-quota(1) β the group-chat guide
okay so bestie, welcome to smb2-quota, a General Commands Manual girly whose whole personality is userspace helper to display quota information for the Linux SMB client file system (CIFS). yes that's her job title. she's booked and busy π
β¨ SYNOPSIS β¨
smb2-quota [-h] {options} {file system object}
that's it. that's the whole vibe check. {file system object} is the main character, the flags are the supporting cast π
πΈ DESCRIPTION πΈ
so this tool is literally part of the cifs-utils suite β she's not out here alone, she's got a whole friend group π«Ά
smb2-quota is a userspace helper program for the Linux SMB client file system (CIFS). icon behavior fr fr.
and how does she work her magic? okay so she makes a CIFS_QUERY_INFO IOCTL call to the Linux SMB client, and the client is like "say less," issues a SMB Query Info request, and returns the result right back to her. the way she just delegates π
no cap, that's the entire pipeline.
π¦ OPTIONS π¦
--help,-hβ prints help explaining the command line options. the "hi what do u do" of flags π--tabular,-tβ prints quota information for the volume in tabular format. the layout, exactly:Amount Used | Quota Limit | Warning Level | Percent Used | Status | SIDβ¨--csv,-cβ prints quota information for the volume in csv format. the fields, exactly:SID,Amount Used,Quota Limit,Warning Levelπ--list,-lβ prints quota information for the volume in raw format. the items, exactly:- SID- Quota Used- Quota Threshold- Quota LimitπΈ
π heads up bestie:--tabular/-tis the default action if none is given. she has a favorite and she's not hiding it.
π NOTES π
okay this part is the serious one, gather round π
Kernel support for smb2-quota requires the CIFS_QUERY_INFO IOCTL, which was initially introduced in the 4.20 kernel and is only implemented for mount points using SMB2 or above β see the vers option in mount.cifs(8). so if your kernel is ancient or your mount is speaking vintage, this is gonna be giving nothing π
β SEE ALSO β
smbinfo(1) β her sibling. go say hi π
π AUTHOR π
Kenneth D'souza <kdsouza@redhat.com> β legend behavior, we stan π
the Linux CIFS Mailing list is the preferred place to ask questions regarding these programs. that's the group chat, that's where the lore lives π«Ά
and that's the page!! mwah π this was smb2-quota(1) from the General Commands Manual β part of the cifs-utils suite, no date or version girlies in sight, just pure quota-displaying excellence. slay, periodt, go check your quotas bestie β¨π
π
π¦ where this page comes from
- arch rolling: cifs-utils 7.9-1 Β· GPL-3.0-or-later
- nixpkgs unstable: cifs-utils 7.5
- ubuntu stonking: cifs-utils 2:7.4-1ubuntu3.1 Β· GPL-3.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms