[gvfs-smb] cp: read error: Invalid argument
Hello,
we use gvfs to allow our users to mount different network shares from our institute, currently we only mount smb/cifs network shares. We also pass the directories, which are created by gvfs under /run/user/UID/gvfs/*
, into containers to enable data and persistent storage there.
In general, the whole setup works and it is possible to navigate and read and write files in the remote directories, but errors occur when copying large files to the system. The first time I noticed the error was with a 100MB file, which I had copied to and from the remote for pre-metering. Currently, I test this behavior with the Ubuntu installation ISO. This error is similar to #473 and #442.
system environment
lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 18.04.5 LTS
Release: 18.04
Codename: bionic
./gvfsd --version
gvfs 1.36.1
copy command
# copy command in container from samba share
/data # cp common/Network\ Trash\ Folder/blub/ubuntu-20.04.1-live-server-amd64.iso tmpfile
cp: read error: Invalid argument
debug log gvfsd
#/usr/lib/gvfsd -r -d
...
...
smb: Queued new job 0x55b3af65dd50 (GVfsJobRead)
smb: send_reply(0x55b3af65dd50), bytes=131072, failed=0 ()
smb: Queued new job 0x7fe6980132b0 (GVfsJobRead)
smb: send_reply(0x7fe6980132b0), bytes=0, failed=0 ()
smb: Queued new job 0x55b3af65dde0 (GVfsJobQueryInfoRead)
smb: Queued new job 0x55b3af66a040 (GVfsJobQueryInfoRead)
smb: Queued new job 0x55b3af623ee0 (GVfsJobQueryInfoRead)
smb: Queued new job 0x55b3af624cc0 (GVfsJobCloseRead)
smb: send_reply(0x55b3af624cc0), failed=1 (Software caused connection abort)
debug log gvfsd-fuse
#/usr/lib/gvfs/gvfsd-fuse -o allow_root -o big_writes -d /run/user/ID/gvfs
...
...
unique: 14814, opcode: READ (15), nodeid: 16, insize: 80, pid: 19281
read[139942382603168] 131072 bytes from 958136320 flags: 0x8000
read[139942382603168] 131072 bytes from 958136320
unique: 14814, success, outsize: 131088
unique: 14815, opcode: READ (15), nodeid: 16, insize: 80, pid: 19281
read[139942382603168] 131072 bytes from 958267392 flags: 0x8000
read[139942382603168] 131072 bytes from 958267392
unique: 14815, success, outsize: 131088
unique: 14816, opcode: GETATTR (3), nodeid: 16, insize: 56, pid: 19281
getattr /smb-share:server=fs1-2-common.rz.hs-offenburg.de,share=common/Network Trash Folder/blub/ubuntu-20.04.1-live-server-amd64.iso
unique: 14816, error: -22 (Invalid argument), outsize: 16
unique: 14817, opcode: GETATTR (3), nodeid: 16, insize: 56, pid: 19281
getattr /smb-share:server=fs1-2-common.rz.hs-offenburg.de,share=common/Network Trash Folder/blub/ubuntu-20.04.1-live-server-amd64.iso
unique: 14817, error: -22 (Invalid argument), outsize: 16
unique: 14818, opcode: GETATTR (3), nodeid: 16, insize: 56, pid: 19281
getattr /smb-share:server=fs1-2-common.rz.hs-offenburg.de,share=common/Network Trash Folder/blub/ubuntu-20.04.1-live-server-amd64.iso
unique: 14818, error: -22 (Invalid argument), outsize: 16
unique: 14819, opcode: RELEASE (18), nodeid: 16, insize: 64, pid: 0
release[139942382603168] flags: 0x8000
unique: 14819, success, outsize: 16
Edited by ralph isenmann