[Ocfs2-devel] [PATCH v2 0/5] ocfs2: sysfs and cleanup

Goldwyn Rodrigues rgoldwyn at suse.de
Wed May 25 20:10:14 PDT 2016


From: Goldwyn Rodrigues <rgoldwyn at suse.com>

This adds /sys/fs/ocfs2/<s_id> to the sys filesystem. All other
files are added in this directory. This is done by:
1. Adding kobject in the ocfs2_super structure
2. Using ocfs2_sb_attr which encompass all the show() and store() functions

This also reduce code and does away with unnecessary data structure,
but adds some in the ocfs2_super for house keeping.

Hopefully, this would be used to further add configurable parameters
for the super block.

Suggestions/Criticism welcome.

Changes since v1:
	- Corrected store() function check

-- 
Goldwyn





More information about the Ocfs2-devel mailing list