[RFC v2 0/8] kobject in sysfs superblock

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



From: Goldwyn Rodrigues <rgoldwyn@xxxxxxxx>


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


--
To unsubscribe from this list: send the line "unsubscribe linux-fsdevel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html



[Index of Archives]     [Linux Ext4 Filesystem]     [Union Filesystem]     [Filesystem Testing]     [Ceph Users]     [Ecryptfs]     [AutoFS]     [Kernel Newbies]     [Share Photos]     [Security]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux Cachefs]     [Reiser Filesystem]     [Linux RAID]     [Samba]     [Device Mapper]     [CEPH Development]
  Powered by Linux