mfstrashtime(1)
π mfstrashtime β bestie edition π
okay so listen. this is mfstrashtime(1), part of MooseFS, and before you get attached β it's DEPRECATED. like, it still exists, it still works, but the cool girls are all using the mfstrashretention tools now. so yeah. use those instead. π«Ά
β¨ NAME β¨
mfstrashtime β DEPRECATED MooseFS trash time management tools (use mfstrashretention tools instead)
π SYNOPSIS π
mfsgettrashtime [-?] [-r] [-n|-h|-H|-k|-m|-g] OBJECT...
mfssettrashtime [-?] [-r] [-n|-h|-H|-k|-m|-g] SECONDS[+|-] OBJECT...
mfscopytrashtime [-?] [-r] [-n|-h|-H|-k|-m|-g] SOURCE_OBJECT OBJECT...
π¦ DESCRIPTION π¦
So these three tools all mess with a filesystem object's trashtime value. and a filesystem object is a file, a special file, or a directory β any of the three, we don't discriminate π
and trashtime is literally just the number of seconds that file gets preserved in the special trash directory before it's finally yeeted out of the filesystem forever. gone. bye. π
trashtime has to be a non-negative integer value. that's the vibe check. no negatives, no decimals, ty.
mfsgettrashtime prints the current trashtime value of whatever object(s) you hand it. the -r option turns on recursive mode β which, bestie, works the usual way for every file you give it, but for every directory you give it, it additionally prints the current trashtime value of every single object contained inside (files and directories, all of them, no cap).
mfssettrashtime changes the current trashtime value of the object(s) you give it. and here's the cute part:
- if the new value is written as
SECONDS+, the trashtime is increased toSECONDSfor objects with a lower trashtime value, and left alone for everybody else. - same energy, flipped: if it's written as
SECONDS-, the trashtime is decreased toSECONDSfor objects with a higher trashtime value, and unchanged for the rest.
the -r option turns on recursive mode here too. and these tools can be used on any file, directory, or deleted (trash) file. very versatile, we love her. β¨
mfscopytrashtime is the copy-paste of the group β it copies the trashtime value from one object to another. it's giving clipboard energy. π
πΈ PRECISION πΈ
Since version 3.0 of MooseFS, trashtime is stored in the system as the number of hours the file is preserved in the trash directory. so any value you give in seconds gets rounded up to hours. key detail. don't forget it. π§
π OPTIONS π
okay so most MooseFS tools use -n, -h, -H, -k, -m and -g to pick the format of the printed numbers. here's the tea:
-nβ prints exact numbers. plain. honest. no notes.-hβ uses binary prefixes (Ki,Mi,Gias 2^10, 2^20 etc.) π₯-Hβ uses SI prefixes (k,M,Gas 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)
and you can also get the same results by setting the MFSHRFORMAT environment variable to:
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 don't say anything, you get the plain ones.
-?β displays the short usage message. the little "here's how you use me" moment. π
π NOTES π
π INHERITANCE π
When a new object is created in MooseFS, its trashtime is inherited from the parent directory. a freshly created object always inherits the current value of its parent's trashtime. that's the family lineage. β¨
BUT β and this is the part people get wrong β changing a directory's trashtime does NOT affect its already-created children. nope. those babies keep what they got at birth. π
if you want to change trashtime for a directory and all of its children, use the -r option. periodt.
π REPORTING BUGS π
Report bugs to <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 π₯
okay that's the whole page, bestie, you ate it π this was MooseFS 4.59.2-1, dated May 2026 β and remember, mfstrashtime is deprecated, so go hang out with mfstrashretention instead. slay, love u, bye! ππ¦β¨
π¦ 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