opening gvfs+ssh files from python

Elan Ruusamäe glen at delfi.ee
Sun Sep 11 13:04:11 CEST 2016


On 11.09.2016 14:02, Elan Ruusamäe wrote:
>
> strace shows just C level error:
> open("/home/glen/.gvfs/sftp:host=ewok.local/media/NEKO/pytest.txt", 
> O_RDWR) = -1 EOPNOTSUPP (Operation not supported)
>
> some more examples:
> ➔ strace -eopen truncate --size=0 
> /home/glen/.gvfs/sftp:host=ewok.local/media/NEKO/pytest.txt
> open("/home/glen/.gvfs/sftp:host=ewok.local/media/NEKO/pytest.txt", 
> O_WRONLY|O_CREAT|O_NONBLOCK, 0666) = -1 EOPNOTSUPP (Operation not 
> supported) 

two bash straces as well:


➔ sh -c 'date> /home/glen/.gvfs/sftp:host=ewok.local/media/NEKO/pytest.txt'
open("/home/glen/.gvfs/sftp:host=ewok.local/media/NEKO/pytest.txt", 
O_WRONLY|O_CREAT|O_TRUNC, 0666) = 3

➔ strace -ff -efile sh -c 'date >> 
/home/glen/.gvfs/sftp:host=ewok.local/media/NEKO/pytest.txt'
open("/home/glen/.gvfs/sftp:host=ewok.local/media/NEKO/pytest.txt", 
O_WRONLY|O_CREAT|O_APPEND, 0666) = 3


-- 
glen



More information about the pld-devel-en mailing list