Not working for "tee -a" ?

  • Steven Shiau

    Steven Shiau - 2008-10-12

    I have a weird problem, i.e. curlftpfs works for "tee", but not working for "tee -a".
    On Debian Lenny, kernel:
    debian:~# uname -r

    debian:~# curlftpfs --version
    curlftpfs 0.9.2 libcurl/7.18.2 fuse/2.7

    debian:~# curlftpfs -o direct_io,kernel_cache,nonempty,user=steven /mnt
    Enter host password for user 'steven':
    debian:~# df /mnt
    Filesystem           1K-blocks      Used Available Use% Mounted on
                         7999999992         0 7999999992   0% /mnt

    debian:~# echo "test" | tee /mnt/test
    debian:~# ls -alFh /mnt/test
    -rw-r--r-- 1 root root 5 2008-10-12 12:33 /mnt/test
    debian:~# echo "test2" | tee -a /mnt/test2
    tee: /mnt/test2: Operation not supported

    Is anything I did wrong or this is a bug ?
    Thanks in advance.

    • Steven Shiau

      Steven Shiau - 2009-04-26

      I did a test on Debian Lenny with updated libcurl3 (version 7.19.4-1), same curlftpfs (0.9.2-1), both of them are backported from Debian Sid. The problem still exists:

      debian:~# curlftpfs -o direct_io,kernel_cache,nonempty,user=steven /mnt

      debian:~# mount |grep "\/mnt"
      curlftpfs# on /mnt type fuse (rw,nosuid,nodev)

      debian:~# echo "test" | tee /mnt/test.txt
      debian:~# echo "test" | tee -a /mnt/test2.txt
      tee: /mnt/test2.txt: Operation not supported

      I have a Debian live CD with the packages libcurl3 (7.19.4-1) and curlftpfs (0.9.2-1) , if it's easier for you to reproduce the problem, and to debug and fix it. Please let me know if you need that.

      curlftpfs is the best ftpfs I can find, so I'd like to have this bug fixed.

      Thanks in advance.


      • Steven Shiau

        Steven Shiau - 2009-04-26

        OK, with some more debug, looks like there is something not implemented in ftpfs.c. This is run with debug option on:
           unique: 2, error: 0 (Success), outsize: 136
        unique: 3, opcode: OPEN (14), nodeid: 2, insize: 48
        1240745739 ftpfs.c:703 ftpfs_open_common: access_mode=O_WRONLY, flags=O_APPEND
        1240745739 ftpfs.c:758 opening /test2.txt with O_APPEND - not supported!
        ftpfs: operation ftpfs_open failed because Operation not supported
           unique: 3, error: -95 (Operation not supported), outsize: 16

        Any idea when it will be implemented ?


Log in to post a comment.