[OmniOS-discuss] LX chdir bug with steps to reproduce
Mini Trader
miniflowtrader at gmail.com
Mon Jan 16 22:01:42 UTC 2017
There are a 6 changes that have not been up streamed from:
https://github.com/joyent/illumos-joyent/commits/master/usr/src/uts/common/fs/lookup.c
We definitely need:
https://smartos.org/bugview/OS-5167 (and probably whatever was done before
it).
On Mon, Jan 16, 2017 at 3:42 PM, Jaakko Linnosaari <
jaakko.linnosaari at polarshift.fi> wrote:
>
> 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
>
> _______________________________________________
> OmniOS-discuss mailing list
> OmniOS-discuss at lists.omniti.com
> http://lists.omniti.com/mailman/listinfo/omnios-discuss
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://omniosce.org/ml-archive/attachments/20170116/b4802f34/attachment-0001.html>
More information about the OmniOS-discuss
mailing list