<html><head><meta http-equiv="Content-Type" content="text/html charset=utf-8"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class="">Hi<div class=""><br class=""></div><div class=""><div class="">I am testing glusterfs on OS X (yosemite) as bricks &nbsp;and this does not go well with symbolic links due to what I believe is missing support for hardlinking to a symlink (not its target) in HFS+.&nbsp;</div><div class=""><br class=""></div><div class="">So when doing a symlink to a file like:</div><div class=""><br class=""></div><div class="">$ touch from_file</div><div class="">$ ln -s from_file to_symlink</div><div class=""><br class=""></div><div class="">I am getting:</div><div class=""><br class=""></div><div class=""><div style="margin: 0px; font-family: Menlo;" class=""><font size="1" class="">[2015-02-25 07:08:03.092538] W [posix-handle.c:711:posix_handle_hard] 0-repl-posix: link /export/data/brick1/symlink -&gt; /export/data/brick1/.glusterfs/0f/eb/0feb5989-30c9-4f09-812a-dfbfc9e9956a failed (Operation not supported)</font></div></div><div class=""><div style="margin: 0px; font-family: Menlo;" class=""><font size="1" class="">[2015-02-26 22:16:26.074432] E [posix.c:1796:posix_symlink] 0-repl-posix: setting gfid on /export/data/brick1/to_symlink failed</font></div></div><div style="margin: 0px; font-size: 14px; font-family: Menlo;" class=""><br class=""></div><div class="">Which is what the linkat describes: if not giving AT_SYMLINK_FOLLOW flag some file system will report this.&nbsp;</div><div class=""><br class=""></div><div class="">I haven’t tried with another filesystem yet, but OpenZFS is a possibility. I was just wondering if anyone already tried that?&nbsp;</div></div><div class=""><br class=""></div><div class="">Just for the fun of it I build without using the linkat but the regular link. Now the link above succeed but it will be a hardlink to the target of the symlink.&nbsp;</div><div class=""><br class=""></div><div class="">So the attempt to get the READLINK fails:&nbsp;</div><div class=""><div style="margin: 0px; font-size: 14px; font-family: Menlo;" class=""><br class=""></div><div style="margin: 0px;" class=""><span style="font-family: Menlo; font-size: 14px;" class="">[</span><font face="Menlo" size="1" class="">2015-02-28 10:20:27.934944] W [posix-handle.c:730:posix_handle_hard] 0-repl-posix: mismatching ino/dev between file /export/data/brick1/to_symlink (28617302/16777221) and handle /export/data/brick1/.glusterfs/04/87/048787fc-0d99-4927-8ef1-357f56fe84ae (28141430/16777221)</font></div></div><div style="margin: 0px;" class=""><div style="margin: 0px;" class=""><font face="Menlo" size="1" class="">[2015-02-28 10:20:27.935036] E [posix.c:1796:posix_symlink] 0-repl-posix: setting gfid on /export/data/brick1/to_symlink failed</font></div><div style="margin: 0px;" class=""><font face="Menlo" size="1" class="">[2015-02-28 10:20:30.225177] E [posix.c:1038:posix_readlink] 0-repl-posix: readlink on /export/data/brick1/.glusterfs/04/87/048787fc-0d99-4927-8ef1-357f56fe84ae failed: Invalid argument</font></div></div><div style="margin: 0px;" class=""><div style="margin: 0px;" class=""><font face="Menlo" size="1" class="">[2015-02-28 10:20:30.225244] I [server-rpc-fops.c:1641:server_readlink_cbk] 0-repl-server: 139132: READLINK /to_symlink (048787fc-0d99-4927-8ef1-357f56fe84ae) ==&gt; (Invalid argument)</font></div></div><div style="margin: 0px;" class=""><br class=""></div><div style="margin: 0px;" class="">This fails because glusterfs tries to readlink on a regular file. I will try to analyse a bit more to see if there could be a work-around</div><div style="margin: 0px;" class=""><br class=""></div><div style="margin: 0px;" class="">cheers,</div><div style="margin: 0px;" class="">:-Dennis</div><div style="margin: 0px;" class=""><br class=""></div></body></html>