Not working for "tee -a" ?

Help
2008-10-12
2013-05-02
  • 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
    2.6.26-1-486

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

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

    debian:~# echo "test" | tee /mnt/test
    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
    test2

    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 ftp://192.168.120.254 /mnt

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

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

      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.

       
      • 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 ?
        Thanks.

         

Log in to post a comment.