xfs
[Top] [All Lists]

[PATCH 0/3] xfs: new global stats in sysfs

To: xfs@xxxxxxxxxxx
Subject: [PATCH 0/3] xfs: new global stats in sysfs
From: billodo <billodo@xxxxxxxxxx>
Date: Thu, 3 Sep 2015 11:36:24 -0500
Delivered-to: xfs@xxxxxxxxxxx
Hi all-
Here is a first pass at a series to add new global stats to sysfs.
As a part of that, the /proc/fs/xfs/stat file becomes a symlink to
the sysfs stats entry. The patch provides the beginnings of the
infrastructure for per-fs stats (in addition to global accumulative
stats).

Patch 1 handles the bring-up and tear down of xfs/stats directory
structure in sysfs when an fs is mounted. The directory contains
the stats file and the stats_clear file. The stats file contents mimic
those of /proc/fs/xfs/stat. The stats_clear file is empty, and much
like the current stat_clear command, handles the zeroing of the stats
file when a "1" is echoed to the stats_clear file.

Patch 2 creates the symlink for stats from procfs to sysfs.

Patch 3 removes the now unused portions of procfs for stat.

Comments and questions are welcome.

Thanks-
Bill

<Prev in Thread] Current Thread [Next in Thread>