[Bug 220185] >> operator does not append in Fuse mounts

bugzilla-noreply at freebsd.org bugzilla-noreply at freebsd.org
Wed Jun 21 13:53:30 UTC 2017


https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=220185

            Bug ID: 220185
           Summary: >> operator does not append in Fuse mounts
           Product: Base System
           Version: CURRENT
          Hardware: Any
                OS: Any
            Status: New
          Severity: Affects Many People
          Priority: ---
         Component: kern
          Assignee: freebsd-bugs at FreeBSD.org
          Reporter: ben.rubson at gmail.com

Hello,

So as shown below, >> operator does not seem to correctly append in Fuse
mounts.
No issue however opening files in >> mode with Perl.
Tested with Fuse FS such as EncFS and SSHFS.

Initial EncFS issue :
https://github.com/vgough/encfs/issues/334

Using direct_io (or r317273) does not help.

# uname -sr
FreeBSD 11.0-RELEASE-p8

# echo -e "line1\nline2\nline3" > /my_fuse_mount/test.txt
# cat /my_fuse_mount/test.txt 
line1
line2
line3
# echo line4 >> /my_fuse_mount/test.txt 
# cat /my_fuse_mount/test.txt 
line4
line2
line3

# cat test.pl 
open(my $out, ">", "/my_fuse_mount/perltest.txt");
print($out "line1\nline2\nline3\n");
close($out);
open($out, ">>", "/my_fuse_mount/perltest.txt");
print($out "line4\n");
close($out);
# 
# perl test.pl 
# cat /my_fuse_mount/perltest.txt 
line1
line2
line3
line4

Thank you !

Ben

-- 
You are receiving this mail because:
You are the assignee for the bug.


More information about the freebsd-bugs mailing list