&#x27;&gt;&gt;&#x27; will cause O_APPEND to be specified as flags when opening &quot;&#x2F;dev&#x2F;sda&quot;. I&#x27;m pretty sure this flag is ignored on block devices as it&#x27;s obviously useless.<p><pre><code>    fd = open(&quot;&#x2F;dev&#x2F;sda&quot;, O_WRONLY|O_CREAT|O_NOCTTY|O_APPEND, 0644);
    pos = lseek(fd, 0, SEEK_CUR);
    -&gt; pos = 0
</code></pre>
<a href="http:&#x2F;&#x2F;hastebin.com&#x2F;abuhiwivoz.pl" rel="nofollow">http:&#x2F;&#x2F;hastebin.com&#x2F;abuhiwivoz.pl</a><p><pre><code>    # tmp  sudo .&#x2F;open_sda
    Current position after open: 0
    Current position after seek to end: 128035676160</code></pre>