mfsmetadirinfo(8)

πŸ“¦
version 4.59.2 Β· 5 versions
, in arch rolling, nixos 26.05, nixpkgs unstable, ubuntu stonking

✨ mfsmetadirinfo ✨ β€” the MooseFS meta-directory-info girlie

okay so bestie, welcome to mfsmetadirinfo, one of the little tools that ships with MooseFS πŸ’– it's giving "detective mode" for your filesystem β€” no cap.


🌸 NAME 🌸

mfsmetadirinfo β€” uses MooseFS metadata to calculate precise directory information (similar to mfsdirinfo). literally the receipts version of mfsdirinfo, fr fr 🧾✨


πŸ¦‹ SYNOPSIS πŸ¦‹

mfsmetadirinfo [-f J|C|C x] [-o outputfile] [-a sum_name] metadata_file
PATH [PATH...]

πŸ’… DESCRIPTION πŸ’…

so mfsmetadirinfo is a tool that can be used to calculate precise directory information β€” things like number of inodes, number of chunks, total length of all files, size, real size, etc. πŸŽ€

and the output?? she's flexible. plain text, CSV, or JSON, pick your vibe. the data for all those calculations gets read from the indicated metadata.mfs mfs master metadata file, and it's calculated for the directory(ies) you specify with the PATH parameter(s) β€” relative in mfs instance, just so we're clear 🫢

default output is human-readable plain text, and JSON or CSV can be selected using options. iconic honestly.

✨ Options ✨

  • -f β€” switch output format to JSON (J) or CSV (C); for CSV, if only C is specified, default separator will be used (comma), if second character is specified, this character will be used as the separator in CSV data πŸ’«
  • -o β€” write output to outputfile instead of stdout
  • -a β€” optional parameter that indicates the tool should calculate the information for all supplied paths together (a sum), this calculation is indicated by sum_name in output data
  • metadata_file β€” path to metadata.mfs file πŸ“

πŸŽ€ OUTPUT FIELDS πŸŽ€

for each PATH and, if defined, for sum_name, following information will be indicated:

  • inodes β€” number of all unique inodes (file system objects)
  • files β€” number of all unique files
  • dirs β€” number of all unique directories
  • chunks β€” number of all unique chunks
  • kchunks β€” number of all unique chunks using KEEP policy
  • achunks β€” number of all unique chunks using ARCH policy
  • length β€” total length of all unique files
  • size β€” total size of all unique chunks
  • rsize β€” total real size of all unique chunks (number of copies taken into account)
  • ksize β€” hypothetical real size of all unique chunks if all were using KEEP policy
  • asize β€” hypothetical real size of all unique chunks if all were using ARCH policy

😭 REPORTING BUGS 😭

found a bug? don't suffer in silence bestie, report bugs to <bugs@moosefs.com>. πŸ›


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 🌈


MooseFS 4.59.2-1 🌟 May 2026 β€” k bye bestie, go count some inodes, you ate πŸ’…βœ¨πŸ«Ά

πŸ“¦ where this page comes from