[lkml]   [2008]   [May]   [1]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
    SubjectRe: [PATCH 00/10] sysfs tagged directories
    "Serge E. Hallyn" <> writes:

    > Quoting Greg KH (
    > 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.


     \ /
      Last update: 2008-05-01 20:43    [W:0.022 / U:11.032 seconds]
    ©2003-2017 Jasper Spaans. hosted at Digital OceanAdvertise on this site