linux-fsdevel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [RFC v2 0/8] kobject in sysfs superblock
@ 2016-05-12 18:14 Goldwyn Rodrigues
  2016-05-12 18:14 ` [RFC 1/8] Add kset to file_system_type Goldwyn Rodrigues
                   ` (7 more replies)
  0 siblings, 8 replies; 9+ messages in thread
From: Goldwyn Rodrigues @ 2016-05-12 18:14 UTC (permalink / raw)
  To: linux-fsdevel; +Cc: Goldwyn Rodrigues

From: Goldwyn Rodrigues <rgoldwyn@suse.com>


The primary goal of this was to provide a mechanism for the filesystems
to provide feedback to userspace but grew more than that.
ENOSPC errors could be automated to delete temporary files
etc.

To handle error cases communicated, Filesystem utilities would need to be
developed which would concentrate on fixing the error reported online.
would concentrate on the errors communicated by the kernel and
try to fix it. Once in place, this can be automated using udev
scripts.

This is done by adding kobject in the super_block which gets activated
only if kset in the file_system_type is defined.. and hopefully works
well with the lifetime of the super_block.  Most filesystems are already
performing this and keeping the kset so we can move this to the common
location, in order to reduce code.

As a implementation example, I have changed ocfs2 to support the change,
though it is not completely feasible change because of the way directory are
represented in kset, but it delivers the idea. An erroneous inode
reported can be fixed by writing inode number to the sysfs file. This will
check the inode and report the errors. The same inode can be written to
finally fix the inode block. This can fix simple problems such as
incorrect field information as opposed to complete block reference checks.

Also, changed ext4 as an example.

Changes:
	- Fixed kobject init and put

-- 
Goldwyn



^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2016-05-12 18:16 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-05-12 18:14 [RFC v2 0/8] kobject in sysfs superblock Goldwyn Rodrigues
2016-05-12 18:14 ` [RFC 1/8] Add kset to file_system_type Goldwyn Rodrigues
2016-05-12 18:14 ` [RFC 2/8] Add kobject to super_block Goldwyn Rodrigues
2016-05-12 18:14 ` [RFC 3/8] Report file system events Goldwyn Rodrigues
2016-05-12 18:14 ` [RFC 4/8] Helper functions and attributes for super block's sysfs entries Goldwyn Rodrigues
2016-05-12 18:15 ` [RFC 5/8] ocfs2: Use the sb's kset Goldwyn Rodrigues
2016-05-12 18:15 ` [RFC 6/8] ocfs2: create filecheck files Goldwyn Rodrigues
2016-05-12 18:15 ` [RFC 7/8] ocfs2: report inode errors to userspace Goldwyn Rodrigues
2016-05-12 18:15 ` [RFC 8/8] ext4: Let fs create the sysfs entries Goldwyn Rodrigues

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).