#532413 coreutils: cp fails on SMBFS mount due to error on EOPNOTSUPP

Package:
coreutils
Source:
coreutils
Description:
GNU core utilities
Submitter:
Arthur Marsh
Date:
2011-07-10 11:22:26 UTC
Severity:
normal
#532413#5
Date:
2009-06-09 08:35:09 UTC
From:
To:
This report was originally reported as Debian Bug#532153 against
smbfs, and the maintainer suggested that a bug be filed against coreutils.

When trying to do a cp -af from a local file to an
SMBFS-mounted share where the server filesystem has been
mounted with acl support, I get the following error on strace:

strace cp -af /usr/share/kernel-package/po ./debian/po

[excerpt follows]

lchown("./debian/po/po", 0, 0)          = 0
llistxattr("/usr/share/kernel-package/po", (nil), 0) = 0
llistxattr("/usr/share/kernel-package/po", 0x7fff766ffd00, 0) = 0
getxattr("/usr/share/kernel-package/po", "system.posix_acl_access", 0x7fff766ffbd0, 132) = -1 EOPNOTSUPP (Operation not supported)
setxattr("./debian/po/po", "system.posix_acl_access", "\x02\x00\x00\x00\x01\x00\x07\x00\xff\xff\xff\xff\x04\x00\x05\x00\xff\xff\xff\xff \x00\x05\x00\xff\xff\xff\xff", 28, 0) = 0
removexattr("./debian/po/po", "system.posix_acl_default") = -1 EOPNOTSUPP (Operation not supported)
write(2, "cp: ", 4cp: )                     = 4
write(2, "preserving permissions for `./de"..., 43preserving permissions for `./debian/po/po') = 43
write(2, ": Operation not supported", 25: Operation not supported) = 25
write(2, "\n", 1
)                       = 1
close(0)                                = 0
close(1)                                = 0
close(2)                                = 0
exit_group(1)                           = ?

The cp command fails even though the file was copied to the destination,
and the script that called the cp command also failed.

#532413#10
Date:
2009-06-09 08:49:35 UTC
From:
To:
This report was originally reported as Debian Bug#532153 against
smbfs, and the maintainer suggested that a bug be filed against
coreutils. The Debian bug report number against coreutils is #532413.

When trying to do a cp -af from a local file to an
SMBFS-mounted share where the server filesystem has been
mounted with acl support, I get the following error on strace:

strace cp -af /usr/share/kernel-package/po ./debian/po

[excerpt follows]

lchown("./debian/po/po", 0, 0)          = 0
llistxattr("/usr/share/kernel-package/po", (nil), 0) = 0
llistxattr("/usr/share/kernel-package/po", 0x7fff766ffd00, 0) = 0
getxattr("/usr/share/kernel-package/po", "system.posix_acl_access",
0x7fff766ffbd0, 132) = -1 EOPNOTSUPP (Operation not supported)
setxattr("./debian/po/po", "system.posix_acl_access",
"\x02\x00\x00\x00\x01\x00\x07\x00\xff\xff\xff\xff\x04\x00\x05\x00\xff\xff\xff\xff
\x00\x05\x00\xff\xff\xff\xff", 28, 0) = 0
removexattr("./debian/po/po", "system.posix_acl_default") = -1
EOPNOTSUPP (Operation not supported)
write(2, "cp: ", 4cp: )                     = 4
write(2, "preserving permissions for `./de"..., 43preserving permissions
for `./debian/po/po') = 43
write(2, ": Operation not supported", 25: Operation not supported) = 25
write(2, "\n", 1
)                       = 1
close(0)                                = 0
close(1)                                = 0
close(2)                                = 0
exit_group(1)                           = ?

The cp command fails even though the file was copied to the destination,
and the script that called the cp command also failed.

#532413#13
Date:
2009-06-09 08:49:35 UTC
From:
To:
This report was originally reported as Debian Bug#532153 against
smbfs, and the maintainer suggested that a bug be filed against
coreutils. The Debian bug report number against coreutils is #532413.

When trying to do a cp -af from a local file to an
SMBFS-mounted share where the server filesystem has been
mounted with acl support, I get the following error on strace:

strace cp -af /usr/share/kernel-package/po ./debian/po

[excerpt follows]

lchown("./debian/po/po", 0, 0)          = 0
llistxattr("/usr/share/kernel-package/po", (nil), 0) = 0
llistxattr("/usr/share/kernel-package/po", 0x7fff766ffd00, 0) = 0
getxattr("/usr/share/kernel-package/po", "system.posix_acl_access",
0x7fff766ffbd0, 132) = -1 EOPNOTSUPP (Operation not supported)
setxattr("./debian/po/po", "system.posix_acl_access",
"\x02\x00\x00\x00\x01\x00\x07\x00\xff\xff\xff\xff\x04\x00\x05\x00\xff\xff\xff\xff
\x00\x05\x00\xff\xff\xff\xff", 28, 0) = 0
removexattr("./debian/po/po", "system.posix_acl_default") = -1
EOPNOTSUPP (Operation not supported)
write(2, "cp: ", 4cp: )                     = 4
write(2, "preserving permissions for `./de"..., 43preserving permissions
for `./debian/po/po') = 43
write(2, ": Operation not supported", 25: Operation not supported) = 25
write(2, "\n", 1
)                       = 1
close(0)                                = 0
close(1)                                = 0
close(2)                                = 0
exit_group(1)                           = ?

The cp command fails even though the file was copied to the destination,
and the script that called the cp command also failed.

#532413#18
Date:
2011-07-10 11:20:27 UTC
From:
To:
tag 532413 moreinfo
thanks

Follow-up to
http://bugs.debian.org/532413
(cp fails on SMBFS mount due to error on EOPNOTSUPP)

Can anyone still reproduce this bug using current coreutils (8.5-1 in
Debian, 8.12 or git HEAD upstream)? I don't have a SMBFS to test it on,
unfortunately.