-
Notifications
You must be signed in to change notification settings - Fork 23
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Strange behavior on MacOS + SMB share #8
Comments
Seems to work fine here on a Linux server + client combination:
|
Also looks OK when mounting with "vers=1.0" so it uses SMB1 protocol:
This was tested on Fedora 30, versions are:
|
Thank you for checking @rfjakob, I will put a workaround only in the MacOS code then. Should we keep this issue open, so others can be alerted to the problem? Maybe someone else can suggest a solution. |
For the record: a workaround (calling |
1) Making sure we are looking at the same thing@rfjakob I just realized one thing: maybe you tested only with creating a new tag? The sample you posted in #8 (comment) was:
This works for me too, but this is creating a new tag. The issue happen only when updating a preexisting but outdated tag. To be sure we are on the same page, here is a oneliner to copy-paste (the
The correct final bit of output should be:
but without the double-call to
2) Additional infoFor the record, I was not able to reproduce this issue when running a Mac + SMB_1 share setup. So it may be more of an SMB_3 issue rather than a Mac issue. |
@rfjakob Can you help me a bit? Investigating this issue, I am trying to mount my NAS SMB share on a Linux VM I just got running on my Mac (Linux Mint 19.1 fresh install). The Samba server on the NAS obviously supports extended attributes since they work fine when the share is mounted on the Mac. However, I cannot seem to be able to get extended attributes working at all when mounting the share in the Linux VM. Here is my mount command:
But this does not work at all for me:
How did you mount your SMB share on Linux to get the extended attributes working? |
I just booted Fedora 30 (5.0.9-301.fc30.x86_64) in another VM, but I am getting the same |
I mounted like this:
I get this output from your testcase:
|
While working on a MacOS port, I just found a weird bug when updating tags on a Samba share. I am wondering if this bug is introduced by some MacOS + SMB interaction, or if it is preexisting. Here is the behavior I am seeing:
When updating an outdated tag on the Mac's main filesystem, the update works, and the next run of
cshatag
reports<ok>
:When doing the same thing on an SMB-mounted Samba share, the update does not work: instead, the xattrs are removed. The next run of
cshatag
reports a missing flag ("stored: 00000..."), and this time, it sets the xattrs succesfully. Another (third) run ofcshatag
reports<ok>
:Is this a known issue with SMB or Samba? If not, can someone confirm whether this can be reproduced with Linux + Samba share?
(In case it matters: the protocol negotiated between the Mac and Samba server was
SMB_3.02
)Thank you.
The text was updated successfully, but these errors were encountered: