Re: cp -v doesn't work correctly under file system mounted through FUSE

2008-07-11 Thread Philip Rowlands
(apologies if my mailreader mangles your name - I can't easily write 
in BIG-5)


On Thu, 10 Jul 2008, ¬x¥ô¿Ù wrote:


Normally, cp -rv files > log should list all the files copied in the file 'log'.
However, when cp -rv a directory under file system mounted via FUSE,
redirect of I/O doesn't work. The verbose output is gone and the log file
contains nothing. Also, if I try to read the verbose output of cp command
with another program via pipe, it works with local file systems, but not
with remote file systems mounted via FUSE, such as sshfs and curlftpfs.
However, if I use forkpty in the program, it seems to partially work.
Shouldn't --verbose always give output whether the stdout is a tty or not?


Yes, it should. I suspect the filesystem emulation in your FUSE mounts 
is somehow misbehaving. Perhaps you could perform the following tests 
both on local disk and FUSE mount, and spot the difference in system 
calls and responses?


$ mkdir a
$ touch a/{x,y,z}
$ strace -o /tmp/cp.trace -e trace=desc cp -rv a b

Hopefully it should be obvious where copying on a FUSE filesystem 
differs.



Cheers,
Phil


___
Bug-coreutils mailing list
Bug-coreutils@gnu.org
http://lists.gnu.org/mailman/listinfo/bug-coreutils


cp -v doesn't work correctly under file system mounted through FUSE

2008-07-11 Thread 洪任諭
Hi all,
I found a very strange problem with cp.
Normally, cp -rv files > log should list all the files copied in the file 'log'.
However, when cp -rv a directory under file system mounted via FUSE,
redirect of I/O doesn't work. The verbose output is gone and the log file
contains nothing. Also, if I try to read the verbose output of cp command
with another program via pipe, it works with local file systems, but not
with remote file systems mounted via FUSE, such as sshfs and curlftpfs.
However, if I use forkpty in the program, it seems to partially work.
Shouldn't --verbose always give output whether the stdout is a tty or not?

p.s. I redirect the verbose output to pipe read by another program to
show the progress of
copying, then I found this really strange bug.

Thank you


___
Bug-coreutils mailing list
Bug-coreutils@gnu.org
http://lists.gnu.org/mailman/listinfo/bug-coreutils