Package: smbnetfs
Version: 0.6.1-1
Severity: important
At least since 0.6.0, any attempt to use open(2) with O_CREAT on a mounted smb
filesystem fails with EIO (Input/output error). The file is created, with has a
size of 0.
This is a call caused by "cp" traced with strace:
openat(AT_FDCWD, "/home/ydelia/shared/file", O_WRONLY|O_CREAT|O_EXCL, 0644) =
-1 EIO (Input/output error)
This is what is outputed by smbnetfs with debugging enabled:
...
unique: 8, opcode: CREATE (35), nodeid: 5, insize: 62, pid: 4235
create flags: 0x80c1 /server/test/file 0100644 umask=0022
create[139858764895120] flags: 0x80c1 /server/test/empty
fgetattr[139858764895120] /server/test/file
2018-02-01 18:55:43.439 srv(4236)->smb_conn_srv_fstat: errno=22, Invalid
argument
2018-02-01 18:55:45.454 srv(4237)->smb_conn_srv_fstat: errno=22, Invalid
argument
2018-02-01 18:55:47.469 srv(4238)->smb_conn_srv_fstat: errno=22, Invalid
argument
release[139858764895120] flags: 0x80c1
unique: 8, error: -5 (Input/output error), outsize: 16
So it seems that smbnetfs creates the file correctly, then attempts an fstat
and stops there.
-- System Information:
Debian Release: buster/sid
APT prefers unstable
APT policy: (900, 'unstable'), (800, 'experimental'), (500, 'unstable-debug')
Architecture: amd64 (x86_64)
Kernel: Linux 4.15.0-1-amd64 (SMP w/4 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8),
LANGUAGE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)
Versions of packages smbnetfs depends on:
ii libc6 2.27-2
ii libfuse2 2.9.7-1
ii libglib2.0-0 2.54.3-2
ii libsecret-1-0 0.18.5-6
ii libsmbclient 2:4.7.4+dfsg-1
Versions of packages smbnetfs recommends:
ii fuse 2.9.7-1
smbnetfs suggests no packages.