Skip to content

xfs sysfs support

Brian Foster linux-xfs 2 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest6 patches 3 repliesIn review
  2. v16 patches 10 repliesSuperseded

Changes in v2 from the cover letter

- Rebased to latest for-next (error negation, libxfs).
- Introduce xfs_kobj container for kobject and completion.
- Genericize kobject release function.
- Move snprintf() outside of iclog lock in log_head_lsn_show(). Clean up xlog handlers.

Patches in v2 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/6xfs: fix a couple error sequence jumps in xfs_mountfs()fs/xfs/xfs_mount.c+2 -20 replies
2/6xfs: add a sysfs ksetfs/xfs/xfs_super.c+11 -10 replies
3/6xfs: add xfs_mount sysfs kobjectfs/xfs/Makefile fs/xfs/xfs_linux.h fs/xfs/xfs_mount.c +3 more+133 -11 reply
4/6xfs: add xlog sysfs kobject and attribute handlersfs/xfs/xfs_log.c fs/xfs/xfs_log_priv.h fs/xfs/xfs_sysfs.c +1 more+64 -01 reply
5/6xfs: add log attributes for log lsn and grant head datafs/xfs/xfs_sysfs.c+64 -00 replies
6/6xfs: document log sysfs attributes in testing ABIDocumentation/ABI/testing/sysfs-fs-xfs+39 -01 reply

Reviews trailers per patch

All 6 patches have a Reviewed-by or Acked-by.

PatchDave Chinner
1/6R-b
2/6R-b
3/6R-b
4/6R-b
5/6R-b
6/6R-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v2 thread

Cover letter [PATCH v2 0/6] xfs sysfs support

Hi all,

Here's v2 of sysfs support for XFS. The previous version is available here:

	http://oss.sgi.com/archives/xfs/2014-06/msg00141.html

This version is rebased onto the latest for-next and further cleans up the code to use some abstractions for sysfs object maintenance and associated helpers. As noted in the v1 thread, I think the current doc patch already indicates that the sysfs attrs are not considered stable. Unless there is further feedback on that front, I'll leave that patch as is.

Brian

v2:
- Rebased to latest for-next (error negation, libxfs).
- Introduce xfs_kobj container for kobject and completion.
- Genericize kobject release function.
- Move snprintf() outside of iclog lock in log_head_lsn_show(). Clean up xlog handlers.
v1:
- Move sysfs infrastructure code to new source file, add helpers for object initialization, etc.
- Created an xfs_mount->xlog object heirarchy for attributes associated with the log.
- Renamed the reserve/write grant head attributes to '[reserve,write]_grant_head.'
- Use the 'cycle:block' or 'cycle:bytes' decimal format for attributes (rather than export encoded values).
- Included generic mountfs fix and doc.

Brian Foster (6):
xfs: fix a couple error sequence jumps in xfs_mountfs()
xfs: add a sysfs kset
xfs: add xfs_mount sysfs kobject
xfs: add xlog sysfs kobject and attribute handlers
xfs: add log attributes for log lsn and grant head data
xfs: document log sysfs attributes in testing ABI

 Documentation/ABI/testing/sysfs-fs-xfs |  39 ++++++++
 fs/xfs/Makefile                        |   1 +
 fs/xfs/xfs_linux.h                     |  11 +++
 fs/xfs/xfs_log.c                       |   9 ++
 fs/xfs/xfs_log_priv.h                  |   2 +
 fs/xfs/xfs_mount.c                     |  18 +++-
 fs/xfs/xfs_mount.h                     |   1 +
 fs/xfs/xfs_super.c                     |  12 ++-
 fs/xfs/xfs_sysfs.c                     | 165 +++++++++++++++++++++++++++++++++
 fs/xfs/xfs_sysfs.h                     |  59 ++++++++++++
 10 files changed, 313 insertions(+), 4 deletions(-)
 create mode 100644 Documentation/ABI/testing/sysfs-fs-xfs
 create mode 100644 fs/xfs/xfs_sysfs.c
 create mode 100644 fs/xfs/xfs_sysfs.h
Signature · 6 lines
1.8.3.1

_______________________________________________
xfs mailing list
[email protected]
http://oss.sgi.com/mailman/listinfo/xfs