From: ebiederm@xmission.com (Eric W. Biederman)
To: "Serge E. Hallyn" <serue@us.ibm.com>
Cc: Greg KH <gregkh@suse.de>,
Benjamin Thery <benjamin.thery@bull.net>,
linux-kernel@vger.kernel.org, Al Viro <viro@ftp.linux.org.uk>,
Tejun Heo <htejun@gmail.com>,
Daniel Lezcano <dlezcano@fr.ibm.com>,
Pavel Emelyanov <xemul@openvz.org>,
netdev@vger.kernel.org
Subject: Re: [PATCH 00/10] sysfs tagged directories
Date: Thu, 01 May 2008 11:34:31 -0700 [thread overview]
Message-ID: <m11w4lho08.fsf@frodo.ebiederm.org> (raw)
In-Reply-To: <20080501151051.GB16038@sergelap.austin.ibm.com> (Serge E. Hallyn's message of "Thu, 1 May 2008 10:10:51 -0500")
"Serge E. Hallyn" <serue@us.ibm.com> writes:
> Quoting Greg KH (gregkh@suse.de):
> Now before moving veth1 to the new netns, we have in the container:
> /sys/class/net:
> lo sit0
>
> /sys/devices/virtual/net:
> lo sit0
>
> and after moving veth1, we have in the container:
>
> /sys/class/net:
> lo sit0 veth1
>
> /sys/devices/virtual/net:
> lo sit0
>
> In the parent network namespace, veth1 is removed from /sys/class/net
> but remains in /sys/devices/virtual/net.
The symlink is gone by the real directory remains?
> I'm not sure whether this is the renaming bug that Daniel Lezcano's
> patch addresses. If not (as I suspect) then that clearly needs to be
> fixed.
>
> Benjamin can you play around with this and test it with Daniel's
> patch?
Darn. It appears we have a regression in this patchset.
That part used to work.
I was thinking of blaming sysfs_rename_link. But it the
links are fine so it looks more likely that sysfs has morphed once
again and we have a reference counting issue or something similar.
Yuck. d_move and the other moves should have worked.
>From a purely get the good less controversial parts of this
patchset in. I suggest we look at patches 7/10 and 8/10 (without
the tag_ops). And introduce and start using sysfs_delete_link
and sysfs_rename_link. That code seems pretty stable and is
generally a code reduction all by itself by reducing a common
idiom into a single function.
Eric
next prev parent reply other threads:[~2008-05-01 18:39 UTC|newest]
Thread overview: 30+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-04-29 17:10 [PATCH 00/10] sysfs tagged directories Benjamin Thery
2008-04-29 17:10 ` [PATCH 01/10] sysfs: Support for preventing unmounts Benjamin Thery
2008-04-29 17:10 ` [PATCH 02/10] sysfs: sysfs_get_dentry add a sb parameter Benjamin Thery
2008-04-29 17:10 ` [PATCH 03/10] sysfs: Implement __sysfs_get_dentry Benjamin Thery
2008-04-29 17:10 ` [PATCH 04/10] sysfs: Rename Support multiple superblocks Benjamin Thery
2008-04-29 17:11 ` [PATCH 05/10] sysfs: sysfs_chmod_file handle " Benjamin Thery
2008-04-29 17:11 ` [PATCH 06/10] sysfs: Implement sysfs tagged directory support Benjamin Thery
2008-04-29 17:11 ` [PATCH 07/10] sysfs: Implement sysfs_delete_link and sysfs_rename_link Benjamin Thery
2008-04-29 17:11 ` [PATCH 08/10] driver core: Implement tagged directory support for device classes Benjamin Thery
2008-04-29 17:11 ` [PATCH 09/10] net: netns: Enable tagging for net_class directories in sysfs Benjamin Thery
2008-04-29 17:11 ` [PATCH 10/10] sysfs: user namespaces: add ns to user_struct Benjamin Thery
2008-04-29 19:51 ` Eric W. Biederman
2008-04-29 23:18 ` Serge E. Hallyn
2008-04-29 17:36 ` [PATCH 00/10] sysfs tagged directories Greg KH
2008-04-29 18:04 ` Serge E. Hallyn
2008-04-29 18:41 ` Greg KH
2008-04-29 19:34 ` Serge E. Hallyn
2008-04-29 20:10 ` Eric W. Biederman
2008-05-01 3:12 ` Greg KH
2008-05-01 3:13 ` Greg KH
2008-05-01 15:10 ` Serge E. Hallyn
2008-05-01 18:34 ` Eric W. Biederman [this message]
2008-05-01 21:05 ` Serge E. Hallyn
2008-05-01 21:58 ` Eric W. Biederman
2008-05-02 17:42 ` Serge E. Hallyn
2008-05-04 23:13 ` Daniel Lezcano
2008-05-05 16:18 ` Serge E. Hallyn
2008-05-06 16:53 ` Benjamin Thery
2008-04-29 19:35 ` Eric W. Biederman
2008-04-29 19:14 ` Eric W. Biederman
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=m11w4lho08.fsf@frodo.ebiederm.org \
--to=ebiederm@xmission.com \
--cc=benjamin.thery@bull.net \
--cc=dlezcano@fr.ibm.com \
--cc=gregkh@suse.de \
--cc=htejun@gmail.com \
--cc=linux-kernel@vger.kernel.org \
--cc=netdev@vger.kernel.org \
--cc=serue@us.ibm.com \
--cc=viro@ftp.linux.org.uk \
--cc=xemul@openvz.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox