mfsarchive(1)
β¨ mfsarchive β MooseFS archive storage mode management tools β¨
okay bestie, come SIT. this is mfsarchive, part of the MooseFS family, and it's lowkey one of the most useful little squads of tools you'll ever meet. it's giving "tiny commands, big power" fr fr π
πΈ SYNOPSIS πΈ
mfschkarchive [-?] [-n|-h|-H|-k|-m|-g] OBJECT...
mfsclrarchive [-?] [-n|-h|-H|-k|-m|-g] OBJECT...
mfssetarchive [-?] [-n|-h|-H|-k|-m|-g] OBJECT...
three little icons, one shared vibe check. every one of them takes the same options and the same OBJECT... list, so once you know one you know all three. no cap. π
π¦ DESCRIPTION π¦
so like, these tools all mess with one specific thing: the archive bit of a filesystem object. and "object" here means a file, a special file, or a directory. that's the whole target audience. π«Ά
here's the tea on what that bit even does: normally it gets set automatically, following whatever the storage class definition says β that's the ARCH_DELAY situation. and then, depending on where the bit stands:
- if the archive bit is set, then
ARCH_LABELSfrom the storage class definition get used β¨ - otherwise,
KEEP_LABESare used π
(yes, the original spells it KEEP_LABES. we do not fix. we do not touch. we just love it. iconic behavior honestly.)
now, the three besties themselves:
mfschkarchiveβ prints the current archive bit value of the given object(s). and if theOBJECTyou hand it is aDIRECTORY? it prints the current archive bit value of all the contained files, recursively. it's thorough like that. πmfsclrarchiveandmfssetarchiveβ these two clear and set (in that order, respectively) the current archive bit of the given object(s). and just likemfschkarchive: ifOBJECTis aDIRECTORY, then the tool goes recursive. same energy, different direction.
heads up bestie: recursive means recursive. point them at a directory and they will absolutely walk the whole tree. that's not a bug, that's the design, but know it before you type it. π
π OPTIONS π
first, the group chat announcement: most MooseFS tools use -n, -h, -H, -k, -m and -g to pick the format of printed numbers. so let's go through the whole lineup, one by one:
-nβ prints exact numbers. plain, honest, no dressing. the default vibe.-hβ uses binary prefixes:Ki,Mi,Gi, standing for 2^10, 2^20, etc. π-Hβ uses SI prefixes:k,M,G, standing for 10^3, 10^6, etc. β-kβ shows plain numbers in kibis (binary kilo β1024) π-mβ shows plain numbers in mebis (binary mega β1024^2) π¦-gβ shows plain numbers in gibis (binary giga β1024^3) π-?β displays the short usage message. your lil "help me" button. π
and if flags aren't your thing (valid), you can get the exact same result by setting the MFSHRFORMAT environment variable instead. here's the mapping, write it down:
0β exact numbers1orhβ binary prefixes2orHβ SI prefixes3orh+β exact numbers and binary prefixes4orH+β exact numbers and SI prefixes
the default is to print just exact numbers. so if you do nothing, you get exact numbers, and honestly? respecting that. π
π REPORTING BUGS π
found a bug? don't suffer in silence bestie, tell the devs:
bugs@moosefs.com
π COPYRIGHT π
Copyright (C) 2026 Jakub Kruszona-Zawadzki, Saglabs SA
This file is part of MooseFS.
MooseFS is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, version 2 (only).
MooseFS is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
You should have received a copy of the GNU General Public License along with this program; if not, see <https://www.gnu.org/licenses/>.
π SEE ALSO π
and that's the whole page, bestie!! you read it, you understood it, you're basically a MooseFS archivist now π§ this was MooseFS 4.59.2-1, dated May 2026 β so go forth, check those archive bits, set those archive bits, clear those archive bits, and slay π β¨
π¦ where this page comes from
- arch rolling: moosefs 4.59.2-2 Β· GPL-2.0-only
- nixos 26.05: moosefs 4.59.2
- nixpkgs unstable: moosefs 4.59.2
- ubuntu stonking: moosefs-client 4.59.2-1 Β· GPL-2.0-only
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms