[Bugme-new] [Bug 10689] New: 9p: O_APPEND not supported?

bugme-daemon at bugzilla.kernel.org bugme-daemon at bugzilla.kernel.org
Tue May 13 08:12:18 PDT 2008


http://bugzilla.kernel.org/show_bug.cgi?id=10689

           Summary: 9p: O_APPEND not supported?
           Product: File System
           Version: 2.5
     KernelVersion: 2.6.23
          Platform: All
        OS/Version: Linux
              Tree: Mainline
            Status: NEW
          Severity: normal
          Priority: P1
         Component: v9fs
        AssignedTo: ericvh at gmail.com
        ReportedBy: sqweek at gmail.com


u9fs on the server side

zsh; echo hello world >tmp
zsh; echo hi >>tmp
zsh; cat tmp
hi
lo world

 So it hasn't truncated the file, but has started writing at zero offset
instead of the end of file. bash, dash, tcsh and zsh all exhibit the behaviour,
but it works fine in p9p's rc (which I'd wager is thanks to lib9, as it
explicitly seeks).

 strace says:

bash: open("t", O_WRONLY|O_CREAT|O_APPEND|O_LARGEFILE, 0666) = 3
dash: open("t", O_WRONLY|O_CREAT|O_APPEND|O_LARGEFILE, 0666) = 3
tcsh: open("t", O_WRONLY|O_APPEND|O_LARGEFILE) = 3
zsh: open("t", O_WRONLY|O_CREAT|O_NOCTTY|O_APPEND, 0666) = 3

rc: open("t", O_WRONLY|O_LARGEFILE)         = 5
    _llseek(5, 0, [12], SEEK_END)           = 0

-sqweek


-- 
Configure bugmail: http://bugzilla.kernel.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.


More information about the Bugme-new mailing list