Skip to content

sysfs network namespace support

Eric W. Biederman containers lkml netdev 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest10 patches 53 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/10sysfs: Make sysfs_mount static again.fs/sysfs/file.c fs/sysfs/mount.c fs/sysfs/sysfs.h+2 -30 replies
2/10sysfs: Support for preventing unmounts.fs/sysfs/mount.c fs/sysfs/sysfs.h+81 -80 replies
3/10sysfs: sysfs_get_dentry add a sb parameterfs/sysfs/dir.c fs/sysfs/file.c fs/sysfs/sysfs.h+8 -70 replies
4/10sysfs: Implement __sysfs_get_dentryfs/sysfs/dir.c+38 -00 replies
5/10sysfs: Rename Support multiple superblocksfs/sysfs/dir.c+135 -550 replies
6/10sysfs: sysfs_chmod_file handle multiple superblocksfs/sysfs/file.c+28 -230 replies
7/10sysfs: Implement sysfs tagged directory support.fs/sysfs/bin.c fs/sysfs/dir.c fs/sysfs/file.c +6 more+255 -330 replies
8/10sysfs: Implement sysfs_delete_link and sysfs_rename_linkfs/sysfs/symlink.c include/linux/sysfs.h+48 -00 replies
9/10driver core: Implement tagged directory support for device classes.drivers/base/class.c drivers/base/core.c include/linux/device.h+55 -280 replies
10/10net: Enable tagging for net_class directories in sysfsfs/sysfs/mount.c include/linux/sysfs.h net/Kconfig +1 more+59 -10 replies

Reviews trailers per patch

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

Read the v1 thread

Cover letter [PATCH 0/10] sysfs network namespace support

Now that we have network namespace support merged it is time to revisit the sysfs support so we can remove the dependency on !SYSFS.

I'm not even trying to base this on any of Tejun's very interesting work on sysfs to remove the coupling between kobjects and sysfs_dirents. For my objective that just means I would need to spend several more weeks staring at sysfs trying to figure out how to get where I am going and iterating several times from yet another new starting place. I want to get something working before I try for anymore perfection.

I don't expect the userspace side of this to ever change which is close enough to perfect for me.

The bulk of the patches are the changes to allow multiple sysfs superblocks.

Then comes the tagged directory sysfs support which uses information captured at mount time to decide which object with which tag will appear in a directory.

Then the support for renaming and deleting objects where the source may be ambiguous because of tagging.

Then finally the network namespace support so it is clear how all of this tied together.

Greg the last patch that enables tagged directory support seems to make most sense living in your tree, as it lives half in fs/sysfs/mount.c, and half in net/core/net-sysfs.c and all of it's dependencies are in Linus tree except for this patchset.

Eric