Skip to content

RFC sysfs backing store ver 0.5

Maneesh Soni lkml 1 version New

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 RFC Latest6 patches 0 repliesNew

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/6sysfs backing store ver 0.5fs/sysfs/mount.c include/linux/sysfs.h+30 -20 replies
2/6sysfs backing store ver 0.5fs/sysfs/dir.c+308 -420 replies
3/6sysfs backing store ver 0.5fs/sysfs/file.c fs/sysfs/inode.c+39 -400 replies
4/6sysfs backing store ver 0.5fs/sysfs/symlink.c+29 -130 replies
5/6sysfs backing store ver 0.5fs/sysfs/bin.c+19 -330 replies
6/6sysfs backing store ver 0.5fs/sysfs/group.c fs/sysfs/sysfs.h+101 -100 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [RFC 0/6] sysfs backing store ver 0.5

Hi,

The following patch set contains ver 0.5 patches implementing sysfa backig store for leaf sysfs entries. There have been changed from previuos version based on the comments from Al Viro. The main changes are

1) Re-implemented file_operations method for sysfs directories. sysfs_dir_open(), sysfs_dir_close(), sysfs_read_dir() and sysfs_dir_lseek() are changed to use sysfs_dirent based tree instead of dentry based VFS tree. This provides cleaner code and also corrects the error path in sysfs_open_dir() where it might end up in close entries, opened by some other thread.

2) ->umount_begin() is removed as mount -o remount provides the same functionalities.

3) changes to accomodate current sysfs changes related to symlinks and sysfs_rename_dir()

The patch set needs the following patches to get applied on top of 2.6.6-rc3-mm1 in the sequence as mentioned.

1) sysfs-symlinks-fix.patch
http://marc.theaimsgroup.com/?l=linux-kernel&m=108331963219401&w=2

2) kobject_set_name-cleanup-01.patch
http://marc.theaimsgroup.com/?l=linux-kernel&m=108366251207999&w=2

3) sysfs_rename_dir-cleanup.patch
http://marc.theaimsgroup.com/?l=linux-kernel&m=108373318213824&w=2

BTW, all the patches apply cleany to 2.6.6.-rc3-mm2 also.

Al, please let me know any further changes/suggestions.

Thanks
Maneesh

Signature · 5 lines
Maneesh Soni
IBM Linux Technology Center, 
IBM India Software Lab, Bangalore.
Phone: +91-80-5044999 email: [email protected]
http://lse.sourceforge.net/