[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-ID: <20080107072301.GW27894@ZenIV.linux.org.uk>
Date: Mon, 7 Jan 2008 07:23:01 +0000
From: Al Viro <viro@...IV.linux.org.uk>
To: linux-kernel@...r.kernel.org
Cc: ebiederm@...ssion.com, htejun@...il.com,
linux-fsdevel@...r.kernel.org, gregkh@...e.de
Subject: [RFC] netns / sysfs interaction
As much as I hate to touch either subject, let alone both at
once... Eric, would you mind explaining what exactly do you want
sysfs to do in presense of your "namespaces"? On the "what does user
see if we do <...>" level.
a) what happens if I do chdir("/sys/class/net/eth42/") and then
migrate?
b) what happens to /sys/class/net/eth0/device visibility/things
it points to/etc.?
c) what happens to open files? E.g. to /sys/class/net - say it,
if migration happens between two getdents(2).
d) what happens to visibility in other parts of sysfs? E.g. to
things like
$ ls /sys/devices/pci0000\:00/0000\:00\:0a.0/
bus device local_cpus power resource1 uevent
class driver modalias resource subsystem_device vendor
config irq net:eth0 resource0 subsystem_vendor
$
See that net:eth0 in there? Are all such suckers seen?
e) while we are at it, wouldn't seeing the information in
/sys/devices/pci in general defeat whatever purpose you have in mind
for your stuff?
Context: we need sane locking for sysfs. I think I have a more or less
workable scheme, but its feasibility depends big way on what netns needs
to have.
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists