# [OmniOS-discuss] LX chdir bug with steps to reproduce

Jaakko Linnosaari jaakko.linnosaari at polarshift.fi
Mon Jan 16 20:42:00 UTC 2017

- Previous message: [OmniOS-discuss] LOFS LX chdir bug with steps to reproduce
- Next message: [OmniOS-discuss] LX chdir bug with steps to reproduce
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]

    > On 16 Jan 2017, at 17.40, Mini Trader <miniflowtrader at gmail.com> wrote:
    >
    > I used the following dtrace to get insight into what was happening (ran it from global zone).
    >
    > dtrace -n 'fbt:genunix:vnodetopath_common:entry /pid == $target/ { printf("%s\n",stringof(args[1]->v_path)) }' -q -x strsize=4k -p 22482
    >

    I stumbled upon a similar bug (?) with Alpine 3.5 in LX zone and used this dtrace to see what is going on. No LOFS involved.

    I ran these commands:

    lxforum:~# cd /tmp
    lxforum:/tmp# mkdir foo
    lxforum:/tmp# mkdir foo/bar
    lxforum:/tmp# cd foo
    lxforum:/tmp/foo# cd bar
    lxforum:/tmp/foo/bar# cd ..
    lxforum:/tmp/foo# cd ..
    lxforum:/tmp# mv foo baz
    lxforum:/tmp# cd baz
    lxforum:/tmp/baz# cd bar
    -ash: getcwd: No such file or directory
    lxforum:(unknown)#

    dtrace looks like this:

    # pfexec dtrace -n 'fbt:genunix:vnodetopath_common:entry /pid == $target/ { printf("%s\n",stringof(args[1]->v_path)) }' -q -x strsize=4k -p 1100
    /dpool/zones/lxforum/root/tmp
    /dpool/zones/lxforum/root/tmp
    /dpool/zones/lxforum/root/tmp/foo
    /dpool/zones/lxforum/root/tmp/foo/bar
    /dpool/zones/lxforum/root/tmp/foo
    /dpool/zones/lxforum/root/tmp
    /dpool/zones/lxforum/root/tmp
    /dpool/zones/lxforum/root/tmp/baz
    /dpool/zones/lxforum/root/tmp/foo/bar

    So it would seem that renaming/moving a directory doesn’t update all links appropriately.

    — Jaakko
    -------------- next part --------------
    An HTML attachment was scrubbed...
    URL: <http://lists.omniti.com/pipermail/omnios-discuss/attachments/20170116/5d7f5ad2/attachment.html>

- Previous message: [OmniOS-discuss] LOFS LX chdir bug with steps to reproduce
- Next message: [OmniOS-discuss] LX chdir bug with steps to reproduce
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]

More information about the OmniOS-discuss mailing list