<div dir="ltr"><div>There are a 6 changes that have not been up streamed from:</div><div><br></div><div><a href="https://github.com/joyent/illumos-joyent/commits/master/usr/src/uts/common/fs/lookup.c">https://github.com/joyent/illumos-joyent/commits/master/usr/src/uts/common/fs/lookup.c</a><br></div><div><br></div><div>We definitely need:</div><div><br></div><div><a href="https://smartos.org/bugview/OS-5167">https://smartos.org/bugview/OS-5167</a> (and probably whatever was done before it).<br></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Mon, Jan 16, 2017 at 3:42 PM, Jaakko Linnosaari <span dir="ltr"><<a href="mailto:jaakko.linnosaari@polarshift.fi" target="_blank">jaakko.linnosaari@polarshift.fi</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div style="word-wrap:break-word"><br><div><blockquote type="cite"><div>On 16 Jan 2017, at 17.40, Mini Trader <<a href="mailto:miniflowtrader@gmail.com" target="_blank">miniflowtrader@gmail.com</a>> wrote:</div><br class="m_-7384597500873746144Apple-interchange-newline"><div><div style="font-family:Helvetica;font-size:14px;font-style:normal;font-variant-caps:normal;font-weight:normal;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px">I used the following dtrace to get insight into what was happening (ran it from global zone).</div><div style="font-family:Helvetica;font-size:14px;font-style:normal;font-variant-caps:normal;font-weight:normal;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px"><br></div><div style="font-family:Helvetica;font-size:14px;font-style:normal;font-variant-caps:normal;font-weight:normal;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px">dtrace -n 'fbt:genunix:vnodetopath_<wbr>common:entry /pid == $target/ { printf("%s\n",stringof(args[1]<wbr>->v_path)) }' -q -x strsize=4k -p 22482</div><br class="m_-7384597500873746144Apple-interchange-newline"></div></blockquote></div><div><br></div><div>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.</div><div><br></div><div>I ran these commands:</div><div><br></div><div><div style="margin:0px;font-size:12px;line-height:normal;font-family:Menlo;color:rgb(18,18,18);background-color:rgba(255,255,255,0.85098)"><span style="font-variant-ligatures:no-common-ligatures">lxforum:~# cd /tmp</span></div><div style="margin:0px;font-size:12px;line-height:normal;font-family:Menlo;color:rgb(18,18,18);background-color:rgba(255,255,255,0.85098)"><span style="font-variant-ligatures:no-common-ligatures">lxforum:/tmp# mkdir foo</span></div><div style="margin:0px;font-size:12px;line-height:normal;font-family:Menlo;color:rgb(18,18,18);background-color:rgba(255,255,255,0.85098)"><span style="font-variant-ligatures:no-common-ligatures">lxforum:/tmp# mkdir foo/bar</span></div><div style="margin:0px;font-size:12px;line-height:normal;font-family:Menlo;color:rgb(18,18,18);background-color:rgba(255,255,255,0.85098)"><span style="font-variant-ligatures:no-common-ligatures">lxforum:/tmp# cd foo</span></div><div style="margin:0px;font-size:12px;line-height:normal;font-family:Menlo;color:rgb(18,18,18);background-color:rgba(255,255,255,0.85098)"><span style="font-variant-ligatures:no-common-ligatures">lxforum:/tmp/foo# cd bar</span></div><div style="margin:0px;font-size:12px;line-height:normal;font-family:Menlo;color:rgb(18,18,18);background-color:rgba(255,255,255,0.85098)"><span style="font-variant-ligatures:no-common-ligatures">lxforum:/tmp/foo/bar# cd ..</span></div><div style="margin:0px;font-size:12px;line-height:normal;font-family:Menlo;color:rgb(18,18,18);background-color:rgba(255,255,255,0.85098)"><span style="font-variant-ligatures:no-common-ligatures">lxforum:/tmp/foo# cd ..</span></div><div style="margin:0px;font-size:12px;line-height:normal;font-family:Menlo;color:rgb(18,18,18);background-color:rgba(255,255,255,0.85098)"><span style="font-variant-ligatures:no-common-ligatures">lxforum:/tmp# mv foo baz</span></div><div style="margin:0px;font-size:12px;line-height:normal;font-family:Menlo;color:rgb(18,18,18);background-color:rgba(255,255,255,0.85098)"><span style="font-variant-ligatures:no-common-ligatures">lxforum:/tmp# cd baz</span></div><div style="margin:0px;font-size:12px;line-height:normal;font-family:Menlo;color:rgb(18,18,18);background-color:rgba(255,255,255,0.85098)"><span style="font-variant-ligatures:no-common-ligatures">lxforum:/tmp/baz# cd bar</span></div><div style="margin:0px;font-size:12px;line-height:normal;font-family:Menlo;color:rgb(18,18,18);background-color:rgba(255,255,255,0.85098)"><span style="font-variant-ligatures:no-common-ligatures">-ash: getcwd: No such file or directory</span></div><div style="margin:0px;font-size:12px;line-height:normal;font-family:Menlo;color:rgb(18,18,18);background-color:rgba(255,255,255,0.85098)"><span style="font-variant-ligatures:no-common-ligatures">lxforum:(unknown)# </span></div></div><br>dtrace looks like this:<div><br></div><div><div style="margin:0px;font-size:12px;line-height:normal;font-family:Menlo;color:rgb(18,18,18);background-color:rgba(255,255,255,0.85098)"><span style="font-variant-ligatures:no-common-ligatures"># pfexec dtrace -n 'fbt:genunix:vnodetopath_<wbr>common:entry /pid == $target/ { printf("%s\n",stringof(args[1]<wbr>->v_path)) }' -q -x strsize=4k -p 1100</span></div><div style="margin:0px;font-size:12px;line-height:normal;font-family:Menlo;color:rgb(18,18,18);background-color:rgba(255,255,255,0.85098)"><span style="font-variant-ligatures:no-common-ligatures">/dpool/zones/lxforum/root/tmp</span></div><div style="margin:0px;font-size:12px;line-height:normal;font-family:Menlo;color:rgb(18,18,18);background-color:rgba(255,255,255,0.85098)"><span style="font-variant-ligatures:no-common-ligatures">/dpool/zones/lxforum/root/tmp</span></div><div style="margin:0px;font-size:12px;line-height:normal;font-family:Menlo;color:rgb(18,18,18);background-color:rgba(255,255,255,0.85098)"><span style="font-variant-ligatures:no-common-ligatures">/dpool/zones/lxforum/root/tmp/<wbr>foo</span></div><div style="margin:0px;font-size:12px;line-height:normal;font-family:Menlo;color:rgb(18,18,18);background-color:rgba(255,255,255,0.85098)"><span style="font-variant-ligatures:no-common-ligatures">/dpool/zones/lxforum/root/tmp/<wbr>foo/bar</span></div><div style="margin:0px;font-size:12px;line-height:normal;font-family:Menlo;color:rgb(18,18,18);background-color:rgba(255,255,255,0.85098)"><span style="font-variant-ligatures:no-common-ligatures">/dpool/zones/lxforum/root/tmp/<wbr>foo</span></div><div style="margin:0px;font-size:12px;line-height:normal;font-family:Menlo;color:rgb(18,18,18);background-color:rgba(255,255,255,0.85098)"><span style="font-variant-ligatures:no-common-ligatures">/dpool/zones/lxforum/root/tmp</span></div><div style="margin:0px;font-size:12px;line-height:normal;font-family:Menlo;color:rgb(18,18,18);background-color:rgba(255,255,255,0.85098)"><span style="font-variant-ligatures:no-common-ligatures">/dpool/zones/lxforum/root/tmp</span></div><div style="margin:0px;font-size:12px;line-height:normal;font-family:Menlo;color:rgb(18,18,18);background-color:rgba(255,255,255,0.85098)"><span style="font-variant-ligatures:no-common-ligatures">/dpool/zones/lxforum/root/tmp/<wbr>baz</span></div><div style="margin:0px;font-size:12px;line-height:normal;font-family:Menlo;color:rgb(18,18,18);background-color:rgba(255,255,255,0.85098)"><span style="font-variant-ligatures:no-common-ligatures">/dpool/zones/lxforum/root/tmp/<wbr>foo/bar</span></div><div><br></div><div>So it would seem that renaming/moving a directory doesn’t update all links appropriately.</div><span class="HOEnZb"><font color="#888888"><div><br></div><div>— Jaakko</div></font></span></div></div><br>______________________________<wbr>_________________<br>
OmniOS-discuss mailing list<br>
<a href="mailto:OmniOS-discuss@lists.omniti.com">OmniOS-discuss@lists.omniti.<wbr>com</a><br>
<a href="http://lists.omniti.com/mailman/listinfo/omnios-discuss" rel="noreferrer" target="_blank">http://lists.omniti.com/<wbr>mailman/listinfo/omnios-<wbr>discuss</a><br>
<br></blockquote></div><br></div>