Re: Re: Hidden flag set on SMB server
Greg Michael <[email protected]>
| Newsgroups | gmane.network.unison.general |
|---|---|
| Message-ID | <CALX7XFbDKHeaMdJVvfuTHNurdPFh7O=-nrNbY9PANjKzPKD1cw@mail.gmail.com> |
I'm curious - why does it only affect the top level files? Unison creates temporary dot-files at all levels, doesn't it? On Wed, 20 Mar 2024 at 13:41, Tõivo Leedjärv <[email protected]> wrote: > It's intended to be a feature, I agree. It does not work smoothly for > Windows clients and for files created by Windows clients. The bug here, in > my view, is that the hidden flag is set on the file automatically, yet not > cleared automatically on rename. Don't you think this is just wrong, even > with no Unison in the picture? > > As for syncing the attributes, I did write "cross-platform". I suspect > this is the main reason the attribute is not synced. (Also, there doesn't > seem to be much demand for syncing DOS attributes but I might be wrong.) > > On Wed, 20 Mar 2024 at 01:10, fnordware <[email protected]> wrote: > >> Thanks for the link. I don't think I'd call that a bug so much as a Samba >> feature that is interacting poorly with Unison. >> >> And I think there is something Unison can do. Part of the sync >> (optionally) includes syncing the file attributes, but in this case the >> file attributes are left out of sync. After renaming the file from its dot >> name to its regular name Unison turn off the hidden flag. If not by >> default, seems like a good option to add. >> >> On Monday, March 18, 2024 at 11:10:53 PM UTC-7 Tõivo Leedjärv wrote: >> >>> Thank you for testing. >>> >>> I think this is a bug in Samba. I found this old ticket. >>> https://urldefense.com/v3/__https://github.com/bcpierce00/unison/issues/573__;!!IBzWLUs!TR2mNQuC86iSOrJ3g8I4xnF7l3thEb6WFuWV0j9VA6mLq9jF1opPYRlD8q-RN_UUGEIV4Vyz8I62r6S7Nrg4rvzOeQ$ >>> <https://urldefense.com/v3/__https://github.com/bcpierce00/unison/issues/573__;!!IBzWLUs!Ri1TGDegVcsod-3Xz0Y628TG2I8SD-amTuqduHadxPXYIYz302p3Lrjt-EgmY0JFQSQbqv3arf3Z8qClvkPRzQ$> >>> There is a workaround for Samba described in that ticket. >>> >>> Unison can't do much else here, being cross-platform. When building from >>> sources, one can easily replace the leading dot in the temp prefix by >>> something else, like an underscore. The temp prefix is currently fixed in >>> the source. I don't think it is worth making it configurable but I'd hope >>> the wider audience can weigh in here in case there is interest. >>> >>> On Mon, 18 Mar 2024 at 23:55, fnordware <[email protected]> wrote: >>> >>>> Thanks for the response, Tõivo. To answer your questions: >>>> >>>> 1) This does not seem to happen with any other software, including >>>> Windows Explorer. >>>> 2) I tried the earliest Unison version on GitHub, 2.48.3, and it does >>>> the same thing. >>>> >>>> Our server is a TrueNAS running Samba, so I tried sharing a folder from >>>> another Windows machine and in that case did not get the issue. So there is >>>> some difference with our server that is contributing to this happening, but >>>> it hardly seems like an unusual server situation. >>>> >>>> On Friday, March 15, 2024 at 2:53:01 AM UTC-7 Tõivo Leedjärv wrote: >>>> >>>>> This points to the SMB server being at least partially to blame. >>>>> >>>>> Can you clarify the following: >>>>> 1) Does this happen only with Unison, not with other software or with >>>>> File Explorer? >>>>> 2) Have you used Unison versions prior to 2.53.3 where you did not see >>>>> this issue? >>>>> >>>>> If the answer to 2) is No, then perhaps you can try some older >>>>> releases (even 2.52.x series) to see if the issue is a regression in a >>>>> recent version or not. >>>>> >>>>> >>>>> On Tue, 12 Mar 2024 at 01:52, fnordware <[email protected]> wrote: >>>>> >>>>>> Just noticed that 2.53.4 was released…tried it with the same result. >>>>>> >>>>>> On Monday, March 11, 2024 at 1:55:18 PM UTC-7 fnordware wrote: >>>>>> >>>>>>> I'm using Unison 2.53.3 on Windows 10, trying to sync a local folder >>>>>>> to our SMB server, which is mounted as the X: drive. When I do this, any >>>>>>> files and folders that are newly created at the top level of the sync have >>>>>>> the Hidden flag turned on (no, the originals were not hidden). I've tried >>>>>>> messing with the xattrs and xattrignore options, but they don't seem to >>>>>>> help. >>>>>>> >>>>>>> Log is attached. >>>>>>> >>>>>>> Thanks! >>>>>>> >>>>>>> >>>>>>> -- >>>>>> To unsubscribe from this group and stop receiving emails from it, >>>>>> send an email to [email protected]. >>>>>> >>>>> -- >> To unsubscribe from this group and stop receiving emails from it, send an >> email to [email protected]. >> > -- > To unsubscribe from this group and stop receiving emails from it, send an > email to [email protected]. > -- To unsubscribe from this group and stop receiving emails from it, send an email to [email protected].