cephfs-tool: Add filesystem statistics reporting before and after benchmark runs
Added filesystem stats reporting to cephfs-tool.cc. Helper functions • fetch_statvfs() — uses ceph_ll_statfs on the root inode when --async-io is set, otherwise ceph_statfs on mount_root • report_fs_stats() — prints and optionally JSON-encodes: • Total / free blocks • File count When it runs • Before the iteration loop (after the bench directory is created) • After all iterations finish (before the final report and optional cleanup) Console output example Filesystem statistics (before iterations): Total blocks: ... Free blocks: ... Files: ... JSON output (when --json is used) adds a filesystem_stats section with before and after objects containing the same fields. Fixes: https://tracker.ceph.com/issues/76183 Signed-off-by: Edwin Rodriguez <edwin.rodriguez1@ibm.com>
E
Edwin Rodriguez committed
c8d115ee5d8f780d41764154dcce211e59e401fa
Parent: d9dbfde