Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 21 Jun 2017 13:53:30 +0000
From:      bugzilla-noreply@freebsd.org
To:        freebsd-bugs@FreeBSD.org
Subject:   [Bug 220185] >> operator does not append in Fuse mounts
Message-ID:  <bug-220185-8@https.bugs.freebsd.org/bugzilla/>

next in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D220185

            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@FreeBSD.org
          Reporter: ben.rubson@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=20
line1
line2
line3
# echo line4 >> /my_fuse_mount/test.txt=20
# cat /my_fuse_mount/test.txt=20
line4
line2
line3

# cat test.pl=20
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);
#=20
# perl test.pl=20
# cat /my_fuse_mount/perltest.txt=20
line1
line2
line3
line4

Thank you !

Ben

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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-220185-8>