<div><div class="gmail_quote">On Wed, Oct 10, 2012 at 11:39 PM, Amar Tumballi <span dir="ltr">&lt;<a href="mailto:amarts@redhat.com" target="_blank">amarts@redhat.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div class="HOEnZb"><div class="h5">On 10/11/2012 11:35 AM, M. Mohan Kumar wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<br>
As part of BD xlator symlink interface testing, I figured out that the<br>
parameter &#39;linkname&#39; contains even the mount point for example<br>
&#39;/media/link&#39;. I wonder we should never get the mount directory in the<br>
server part of code.<br>
<br>
I tested creating symlink with posix xlator with top git commit<br>
751da4675cf3add21e567aebb92de2<u></u>c10457afee.<br>
<br>
Here is the steps I followed:<br>
<br>
[root@host mohan]# mount -t glusterfs host:/posix /media<br>
<br>
[root@host mohan]# ls -la /media/<br>
total 8<br>
drwx------.  3 root root 4096 Oct 11 11:15 .<br>
dr-xr-xr-x. 20 root root 4096 Sep 28 16:40 ..<br>
<br>
[root@host mohan]# touch /media/file<br>
<br>
[root@host mohan]# ln -s /media/file /media/link<br>
<br>
[root@host mohan]# ls -la /media/<br>
total 9<br>
drwx------.  3 root root 4096 Oct 11 11:18 .<br>
dr-xr-xr-x. 20 root root 4096 Sep 28 16:40 ..<br>
-rw-r--r--.  1 root root    0 Oct 11 11:18 file<br>
lrwxrwxrwx.  1 root root   11 Oct 11 11:18 link -&gt; /media/file<br>
<br>
[root@host mohan]# umount /media<br>
<br>
[root@host mohan]# mount -t glusterfs host:/posix /media/posix<br>
<br>
[root@host mohan]# ls -la /media/posix/<br>
total 9<br>
drwx------. 3 root root 4096 Oct 11 11:18 .<br>
drwxr-xr-x. 4 root root 4096 Oct 11 07:55 ..<br>
-rw-r--r--. 1 root root    0 Oct 11 11:18 file<br>
lrwxrwxrwx. 1 root root   11 Oct 11 11:18 link -&gt; /media/file<br>
<br>
<br>
Directory listing of brick from server side<br>
[root@host mohan]# ls -la ~/gl/posix/<br>
total 24<br>
drwx------.  3 root root 4096 Oct 11 11:18 .<br>
drwx------.  4 root root 4096 Sep 28 20:20 ..<br>
-rw-r--r--.  2 root root    0 Oct 11 11:18 file<br>
drw-------. 12 root root 4096 Oct 11 11:18 .glusterfs<br>
lrwxrwxrwx.  2 root root   11 Oct 11 11:18 link -&gt; /media/file<br>
<br>
<br>
Ideally it should be link -&gt; file instead of /media/file<br>
</blockquote>
<br></div></div>
It the same behavior on backend fs also... I don&#39;t see it as a problem in GlusterFS.<br>
<br></blockquote>In fact this is how symlink is supposed to work.<div>-ab</div><div><br></div></div>
</div>