xfs_estimate(8)
π xfs_estimate(8) π
okay bestie, this is the System Manager's Manual page for xfs_estimate, and it's about to be your new favorite tool π
β¨
π§ NAME π§
xfs_estimate - estimate the space that an XFS filesystem will take πΎ
πΈ SYNOPSIS πΈ
xfs_estimate [ -h ] [ -b blocksize ] [ -i logsize ]
[ -e logsize ] [ -v ] directory ...
xfs_estimate -V
π¦ DESCRIPTION π¦
okay so for every directory you hand it, xfs_estimate figures out how much space that directory would eat if you copied it onto an XFS filesystem ππ«Ά it does not cross mount points, so it stays in its lane π
ββοΈ the sizes it uses are:
KB = *1024
MB = *1024*1024
GB = *1024*1024*1024
here's the full options lineup π
-b blocksizeβ swaps out the default block size of 4096 bytes for whatever you pick β¨ you can add akafter the number to multiply by 1024. for example:
xfs_estimate -b 64k /
that one asks for the space / would need on an XFS filesystem with a 64K (65536) byte block size π₯
-vβ shows you more info, but make it pretty and formatted π-hβ pulls up the usage message when you need a reminder π-i,-e logsizeβ changes the default log size of 1000 blocks π-iis for an internal log and-eis for an external log πͺ you can put akormafter the number to multiply by 1024 or 1048576 respectively. for example:
xfs_estimate -i 1m /
that one asks for the space / needs on XFS with an internal log of 1 megabyte, and yes it's giving main character energy π
-Vβ prints the version number and then exits π
π EXAMPLES π
ok here are the examples, read them like a story π
% xfs_estimate -e 10m /var/tmp
/var/tmp will take about 4.2 megabytes
with the external log using 2560 blocks or about 10.0 megabytes
% xfs_estimate -v -e 10m /var/tmp
directory bsize blocks megabytes logsize
/var/tmp 4096 792 4.0MB 10485760
% xfs_estimate -v /var/tmp
directory bsize blocks megabytes logsize
/var/tmp 4096 3352 14.0MB 10485760
% xfs_estimate /var/tmp
/var/tmp will take about 14.0 megabytes
bestie that's the whole page π«Ά it's literally the cutest way to figure out your XFS space before you commit π ttyl, and remember, it's xfs_estimate(8) forever β¨π§
π¦ where this page comes from
- alpine 3.22: xfsprogs-doc 6.14.0-r0 Β· LGPL-2.1-or-later
- alpine 3.23: xfsprogs-doc 6.17.0-r0 Β· LGPL-2.1-or-later
- alpine 3.24: xfsprogs-doc 7.0.1-r0 Β· LGPL-2.1-or-later
- arch rolling: xfsprogs 7.2.0-1
- arch rolling: xfsprogs 7.2.1-1 Β· GPL-2.0-only AND LGPL-2.1-only
- centos-stream 10: xfsprogs 6.16.0-1.el10 Β· GPL-1.0-or-later AND LGPL-2.1-or-later
- centos-stream 9: xfsprogs 6.4.0-9.el9 Β· GPL+ and LGPLv2+
- centos-stream 9: xfsprogs 6.4.0-9.el9 Β· GPL+ and LGPLv2+
- debian bookworm: xfsprogs 6.1.0-1 Β· GPL-2.0-only
- debian trixie: xfsprogs 6.13.0-2+deb13u1 Β· GPL-2.0-only
- fedora 43: xfsprogs 6.15.0-3.fc43 Β· GPL-1.0-or-later AND LGPL-2.1-or-later
- fedora 43: xfsprogs 6.15.0-3.fc43 Β· GPL-1.0-or-later AND LGPL-2.1-or-later
- fedora 44: xfsprogs 6.18.0-2.fc44 Β· GPL-1.0-or-later AND LGPL-2.1-or-later
- fedora 44: xfsprogs 6.18.0-2.fc44 Β· GPL-1.0-or-later AND LGPL-2.1-or-later
- fedora 44: xfsprogs 7.1.1-1.fc44 Β· GPL-1.0-or-later AND LGPL-2.1-or-later
- fedora 44: xfsprogs 7.1.1-1.fc44 Β· GPL-1.0-or-later AND LGPL-2.1-or-later
- nixos 26.05: xfsprogs 6.19.0
- nixpkgs unstable: xfsprogs 7.2.1
- opensuse-leap 16.0: xfsprogs 6.19.0-160000.3.1 Β· GPL-2.0-or-later
- opensuse-leap 16.0: xfsprogs 6.19.0-160000.3.1 Β· GPL-2.0-or-later
- opensuse-leap 16.0: xfsprogs 6.19.0-160000.3.1 Β· GPL-2.0-or-later
- opensuse-leap 16.0: xfsprogs 6.19.0-160000.3.1 Β· GPL-2.0-or-later
- ubuntu jammy: xfsprogs 5.13.0-1ubuntu2 Β· GPL-2.0-only
- ubuntu jammy: xfsprogs 5.13.0-1ubuntu2.1 Β· GPL-2.0-only
- ubuntu noble: xfsprogs 6.6.0-1ubuntu2 Β· GPL-2.0-only
- ubuntu noble: xfsprogs 6.6.0-1ubuntu2.1 Β· GPL-2.0-only
- ubuntu questing: xfsprogs 6.13.0-2ubuntu2 Β· GPL-2.0-only
- ubuntu resolute: xfsprogs 6.18.0-3 Β· GPL-2.0-only
- ubuntu stonking: xfsprogs 6.19.0-1 Β· GPL-2.0-only
- π girlified by anthropic/claude-haiku-5.5 on : a language model's rewrite of the original, under its terms