Skip to content

tagged sysfs support

Eric W. Biederman linux-fsdevel lkml netdev 1 version Applied

Status from this message: This is a note to let you know that I've just added the patch titled

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest6 patches 58 repliesApplied

Patches in v1 Applied

#Subject and filesSizeRepliesApplied
1/6sysfs: Basic support for multiple super blocksfs/sysfs/mount.c fs/sysfs/sysfs.h+59 -210 replies
1/6kobject: Send hotplug events in all network namespaceslib/kobject_uevent.c+60 -81 reply
2/6kobj: Add basic infrastructure for dealing with namespaces.drivers/base/class.c drivers/base/core.c include/linux/device.h +2 more+204 -141 reply
2/6netns: Teach network device kobjects which namespace they are in.include/linux/kobject.h net/Kconfig net/core/net-sysfs.c+55 -06 replies
3/6sysfs: Implement sysfs tagged directory support.drivers/gpio/gpiolib.c drivers/md/bitmap.c drivers/md/md.c +10 more+181 -5121 replies
3/6netlink: Implment netlink_broadcast_filteredinclude/linux/netlink.h net/netlink/af_netlink.c+23 -21 reply
4/6sysfs: Add support for tagged directories with untagged members.fs/sysfs/dir.c fs/sysfs/inode.c+5 -91 reply
4/6kobj: Send hotplug events in the proper namespace.lib/kobject_uevent.c+20 -21 reply
5/6sysfs: Implement sysfs_delete_linkfs/sysfs/symlink.c include/linux/sysfs.h+28 -01 reply
5/6hotplug: netns aware uevent_helperlib/kobject_uevent.c+17 -11 reply
6/6driver core: Implement ns directory support for device classes.drivers/base/core.c+12 -91 reply
6/6net: Expose all network devices in a namespaces in sysfsnet/core/dev.c net/core/net-sysfs.c net/core/net-sysfs.h+6 -391 reply

Reviews trailers per patch

All 12 patches have a Reviewed-by or Acked-by of their own; the series has one for all of them.

PatchTejun HeoSerge HallynDavid S. Miller
SeriesA-b A-b
1/6A-b A-b A-b
1/6A-b A-b A-b
2/6A-b A-b A-b
2/6A-b A-b A-b
3/6A-b
3/6A-b
4/6A-b
4/6A-b
5/6A-b A-b A-b
5/6A-b A-b A-b
6/6A-b
6/6A-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes. Scroll the table sideways for all 3 reviewers.

Read the v1 thread

Cover letter [PATCH 0/6] tagged sysfs support

The main short coming of using multiple network namespaces today is that only network devices for the primary network namespaces can be put in the kobject layer and sysfs.

This is essentially the earlier version of this patchset that was reviewed before, just now on top of a version of sysfs that doesn't need cleanup patches to support it.

I have been running these patches in some form for well over a year so the basics should at least be solid.

This patchset is currently against 2.6.34-rc1.

This patchset is just the basic infrastructure a couple of more pretty trivial patches are needed to actually enable network namespaces to use this. My current plan is to send those after these patches have made it through review.

 drivers/base/class.c    |    9 ++++
 drivers/base/core.c     |   98 +++++++++++++++++++++++++++++++++----------
 drivers/gpio/gpiolib.c  |    2 +-
 drivers/md/bitmap.c     |    4 +-
 drivers/md/md.c         |    6 +-
 fs/sysfs/bin.c          |    2 +-
 fs/sysfs/dir.c          |  106 ++++++++++++++++++++++++++++++++++++-----------
 fs/sysfs/file.c         |   17 ++++---
 fs/sysfs/group.c        |    6 +-
 fs/sysfs/inode.c        |    6 ++-
 fs/sysfs/mount.c        |   91 +++++++++++++++++++++++++++++++++++++++-
 fs/sysfs/symlink.c      |   35 ++++++++++++++-
 fs/sysfs/sysfs.h        |   23 ++++++++--
 include/linux/device.h  |    3 +
 include/linux/kobject.h |   26 +++++++++++
 include/linux/sysfs.h   |   18 ++++++++
 lib/kobject.c           |  104 ++++++++++++++++++++++++++++++++++++++++++++++
 17 files changed, 480 insertions(+), 76 deletions(-)

Eric