<br /><span>On 13.11.17 16:26, <b class="name">Toomas Soome </b> <tsoome@me.com> wrote:</span><blockquote cite="mid:0F9EDDE1-ADA0-409D-B097-B067DCEAE5AA@me.com" class="iwcQuote" style="border-left: 1px solid #00F; padding-left: 13px; margin-left: 0;" type="cite"><div class="mimetype-multipart-mixed"><span><p><meta content="text/html; charset=utf-8" http-equiv="Content-Type" /></p><table><tbody><tr><td class="" style="word-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;"><p><br class="" /></p><div><br class="" /><blockquote class="" type="cite"><div class="">On 13 Nov 2017, at 17:07, Till Wegmüller <<a class="" href="mailto:toasterson@gmail.com">toasterson@gmail.com</a>> wrote:</div><br class="Apple-interchange-newline" /><div class=""><span class="" style="font-family: Helvetica; font-size: 12px; 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; -webkit-text-stroke-width: 0px; float: none; display: inline !important;">On 13.11.2017 15:59, Carsten Grzemba wrote:</span><br class="" style="font-family: Helvetica; font-size: 12px; 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; -webkit-text-stroke-width: 0px;" /><blockquote class="" style="font-family: Helvetica; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;" type="cite"><br class="" /><br class="" />On 13.11.17 15:16, *Bob Friesenhahn * <<a class="" href="mailto:bfriesen@simple.dallas.tx.us">bfriesen@simple.dallas.tx.us</a>> wrote:<br class="" /><blockquote class="" type="cite">On Mon, 13 Nov 2017, Carsten Grzemba wrote:<br class="" /><blockquote class="" type="cite"><br class="" />This compiles on Openindiana without an error, but if it runs throws<br class="" /></blockquote>the error: Invalid argument (os error 22)<br class="" /><blockquote class="" type="cite"><br class="" />If I copy this on Openindiana compiled code to Smartos it runs correctly.<br class="" /></blockquote><br class="" />Are you using the same filesystem on both systems?  For example, zfs<br class="" />vs tmp on swap could make a difference.  Or something to do with<br class="" />filesystem paths.<br class="" /></blockquote>Thats the clue:<br class="" />it fails on NFS, but works on ZFS and TMPFS<br class="" /></blockquote><br class="" style="font-family: Helvetica; font-size: 12px; 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; -webkit-text-stroke-width: 0px;" /><span class="" style="font-family: Helvetica; font-size: 12px; 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; -webkit-text-stroke-width: 0px; float: none; display: inline !important;">Doesn't NFS require a special lock daemon to be setup between server and</span><br class="" style="font-family: Helvetica; font-size: 12px; 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; -webkit-text-stroke-width: 0px;" /><span class="" style="font-family: Helvetica; font-size: 12px; 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; -webkit-text-stroke-width: 0px; float: none; display: inline !important;">client? AFAIk NFS locking is quite limted when i last tried it years ago.</span><br class="" style="font-family: Helvetica; font-size: 12px; 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; -webkit-text-stroke-width: 0px;" /><br class="" style="font-family: Helvetica; font-size: 12px; 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; -webkit-text-stroke-width: 0px;" /></div></blockquote><br class="" /></div><div>NFSv2/NFSv3 has separate locking protocol and implementation, NFSv4 has locking integrated.</div><div><br class="" /></div></td></tr></tbody></table></span></div></blockquote>I my case, it fails on NFSv4.<br />