I am still fighting with this issue.
I did the following: I connected to the NAS with a read-only account called
kodi. I traversed various folders and I finally opened an image.
Everything went fine.
Looking at the logs, the get_entry mask file only shows the final folder:
smbd_dirptr_get_entry mask=[Anhelina Viber] found
Users/luca/Pictures/Canon/Alessandro/Amici/Anhelina Viber fname=Anhelina Viber
(Anhelina Viber)
smbd_dirptr_get_entry mask=[Ginevra TikTok] found
Users/luca/Pictures/Canon/Alessandro/Amici/Ginevra TikTok fname=Ginevra TikTok
(Ginevra TikTok)
smbd_dirptr_get_entry mask=[Ginevra Whatsapp] found
Users/luca/Pictures/Canon/Alessandro/Amici/Ginevra Whatsapp fname=Ginevra
Whatsapp (Ginevra Whatsapp)
smbd_dirptr_get_entry mask=[*] found
Users/luca/Pictures/Canon/Alessandro/Amici/Ginevra Whatsapp/. fname=. (.)
smbd_dirptr_get_entry mask=[*] found
Users/luca/Pictures/Canon/Alessandro/Amici/Ginevra Whatsapp/.. fname=.. (..)
smbd_dirptr_get_entry mask=[*] found
Users/luca/Pictures/Canon/Alessandro/Amici/Ginevra Whatsapp/.picasa.ini
fname=.picasa.ini (.picasa.ini)
smbd_dirptr_get_entry mask=[*] found
Users/luca/Pictures/Canon/Alessandro/Amici/Ginevra
Whatsapp/01-Instagram201708.jpg fname=01-Instagram201708.jpg
(01-Instagram201708.jpg)
smbd_dirptr_get_entry mask=[*] found
Users/luca/Pictures/Canon/Alessandro/Amici/Ginevra
Whatsapp/02-Instagram201708.jpg fname=02-Instagram201708.jpg
(02-Instagram201708.jpg)
smbd_dirptr_get_entry mask=[*] found
Users/luca/Pictures/Canon/Alessandro/Amici/Ginevra
Whatsapp/03-Instagram201708.jpg fname=03-Instagram201708.jpg
(03-Instagram201708.jpg)
smbd_dirptr_get_entry mask=[*] found
Users/luca/Pictures/Canon/Alessandro/Amici/Ginevra
Whatsapp/04-Instagram201708.jpg fname=04-Instagram201708.jpg
(04-Instagram201708.jpg)
smbd_dirptr_get_entry mask=[*] found
Users/luca/Pictures/Canon/Alessandro/Amici/Ginevra Whatsapp/IMG_0292.JPG
fname=IMG_0292.JPG (IMG_0292.JPG)
smbd_dirptr_get_entry mask=[*] found
Users/luca/Pictures/Canon/Alessandro/Amici/Ginevra Whatsapp/IMG_0295.JPG
fname=IMG_0295.JPG (IMG_0295.JPG)
smbd_dirptr_get_entry mask=[*] found
Users/luca/Pictures/Canon/Alessandro/Amici/Ginevra Whatsapp/IMG_0401.JPG
fname=IMG_0401.JPG (IMG_0401.JPG)
smbd_dirptr_get_entry mask=[*] found
Users/luca/Pictures/Canon/Alessandro/Amici/Ginevra Whatsapp/IMG_0427 - Sveva.MP4
fname=IMG_0427 - Sveva.MP4 (IMG_0427 - Sveva.MP4)
smbd_dirptr_get_entry mask=[*] found
Users/luca/Pictures/Canon/Alessandro/Amici/Ginevra Whatsapp/IMG_0428 - Giada.MP4
fname=IMG_0428 - Giada.MP4 (IMG_0428 - Giada.MP4)
smbd_dirptr_get_entry mask=[*] found
Users/luca/Pictures/Canon/Alessandro/Amici/Ginevra Whatsapp/IMG_0446.JPG
fname=IMG_0446.JPG (IMG_0446.JPG)
smbd_dirptr_get_entry mask=[*] found
Users/luca/Pictures/Canon/Alessandro/Amici/Ginevra Whatsapp/IMG_0447.JPG
fname=IMG_0447.JPG (IMG_0447.JPG)
smbd_dirptr_get_entry mask=[*] found
Users/luca/Pictures/Canon/Alessandro/Amici/Ginevra Whatsapp/IMG_3207.JPG
fname=IMG_3207.JPG (IMG_3207.JPG)
smbd_dirptr_get_entry mask=[*] found
Users/luca/Pictures/Canon/Alessandro/Amici/Ginevra Whatsapp/IMG_3209.JPG
fname=IMG_3209.JPG (IMG_3209.JPG)
smbd_dirptr_get_entry mask=[*] found
Users/luca/Pictures/Canon/Alessandro/Amici/Ginevra Whatsapp/IMG_3472.JPG
fname=IMG_3472.JPG (IMG_3472.JPG)
smbd_dirptr_get_entry mask=[*] found
Users/luca/Pictures/Canon/Alessandro/Amici/Ginevra Whatsapp/IMG_4508.JPG
fname=IMG_4508.JPG (IMG_4508.JPG)
smbd_dirptr_get_entry mask=[*] found
Users/luca/Pictures/Canon/Alessandro/Amici/Ginevra Whatsapp/IMG_6556.JPG
fname=IMG_6556.JPG (IMG_6556.JPG)
smbd_dirptr_get_entry mask=[*] found
Users/luca/Pictures/Canon/Alessandro/Amici/Ginevra Whatsapp/IMG_8906.JPG
fname=IMG_8906.JPG (IMG_8906.JPG)
smbd_dirptr_get_entry mask=[01-Instagram201708.jpg] found
Users/luca/Pictures/Canon/Alessandro/Amici/Ginevra
Whatsapp/01-Instagram201708.jpg fname=01-Instagram201708.jpg
(01-Instagram201708.jpg)
smbd_dirptr_get_entry mask=[02-Instagram201708.jpg] found
Users/luca/Pictures/Canon/Alessandro/Amici/Ginevra
Whatsapp/02-Instagram201708.jpg fname=02-Instagram201708.jpg
(02-Instagram201708.jpg)
smbd_dirptr_get_entry mask=[03-Instagram201708.jpg] found
Users/luca/Pictures/Canon/Alessandro/Amici/Ginevra
Whatsapp/03-Instagram201708.jpg fname=03-Instagram201708.jpg
(03-Instagram201708.jpg)
smbd_dirptr_get_entry mask=[04-Instagram201708.jpg] found
Users/luca/Pictures/Canon/Alessandro/Amici/Ginevra
Whatsapp/04-Instagram201708.jpg fname=04-Instagram201708.jpg
(04-Instagram201708.jpg)
smbd_dirptr_get_entry mask=[IMG_0292.JPG] found
Users/luca/Pictures/Canon/Alessandro/Amici/Ginevra Whatsapp/IMG_0292.JPG
fname=IMG_0292.JPG (IMG_0292.JPG)
smbd_dirptr_get_entry mask=[IMG_0295.JPG] found
Users/luca/Pictures/Canon/Alessandro/Amici/Ginevra Whatsapp/IMG_0295.JPG
fname=IMG_0295.JPG (IMG_0295.JPG)
smbd_dirptr_get_entry mask=[IMG_0401.JPG] found
Users/luca/Pictures/Canon/Alessandro/Amici/Ginevra Whatsapp/IMG_0401.JPG
fname=IMG_0401.JPG (IMG_0401.JPG)
smbd_dirptr_get_entry mask=[IMG_0427 - Sveva.MP4] found
Users/luca/Pictures/Canon/Alessandro/Amici/Ginevra Whatsapp/IMG_0427 - Sveva.MP4
fname=IMG_0427 - Sveva.MP4 (IMG_0427 - Sveva.MP4)
smbd_dirptr_get_entry mask=[IMG_0428 - Giada.MP4] found
Users/luca/Pictures/Canon/Alessandro/Amici/Ginevra Whatsapp/IMG_0428 - Giada.MP4
fname=IMG_0428 - Giada.MP4 (IMG_0428 - Giada.MP4)
smbd_dirptr_get_entry mask=[IMG_0446.JPG] found
Users/luca/Pictures/Canon/Alessandro/Amici/Ginevra Whatsapp/IMG_0446.JPG
fname=IMG_0446.JPG (IMG_0446.JPG)
smbd_dirptr_get_entry mask=[IMG_0447.JPG] found
Users/luca/Pictures/Canon/Alessandro/Amici/Ginevra Whatsapp/IMG_0447.JPG
fname=IMG_0447.JPG (IMG_0447.JPG)
smbd_dirptr_get_entry mask=[IMG_3207.JPG] found
Users/luca/Pictures/Canon/Alessandro/Amici/Ginevra Whatsapp/IMG_3207.JPG
fname=IMG_3207.JPG (IMG_3207.JPG)
smbd_dirptr_get_entry mask=[IMG_3209.JPG] found
Users/luca/Pictures/Canon/Alessandro/Amici/Ginevra Whatsapp/IMG_3209.JPG
fname=IMG_3209.JPG (IMG_3209.JPG)
smbd_dirptr_get_entry mask=[IMG_3472.JPG] found
Users/luca/Pictures/Canon/Alessandro/Amici/Ginevra Whatsapp/IMG_3472.JPG
fname=IMG_3472.JPG (IMG_3472.JPG)
smbd_dirptr_get_entry mask=[IMG_4508.JPG] found
Users/luca/Pictures/Canon/Alessandro/Amici/Ginevra Whatsapp/IMG_4508.JPG
fname=IMG_4508.JPG (IMG_4508.JPG)
smbd_dirptr_get_entry mask=[IMG_6556.JPG] found
Users/luca/Pictures/Canon/Alessandro/Amici/Ginevra Whatsapp/IMG_6556.JPG
fname=IMG_6556.JPG (IMG_6556.JPG)
smbd_dirptr_get_entry mask=[IMG_8906.JPG] found
Users/luca/Pictures/Canon/Alessandro/Amici/Ginevra Whatsapp/IMG_8906.JPG
fname=IMG_8906.JPG (IMG_8906.JPG)
and I see only one notification request, for the folder where I opened the
image:
[2020/05/24 18:08:01.807305, 3]
../source3/smbd/smb2_notify.c:253(smbd_smb2_notify_send)
smbd_smb2_notify_send: notify change called on
Users/luca/Pictures/Canon/Alessandro/Amici/Ginevra Whatsapp, filter =
FILE_NAME|DIR_NAME|ATTRIBUTES|CREATION|SECURITY|STREAM_SIZE|STREAM_WRITE,
recursive = 0
If instead I log in to the same share with luca, which has a read-write access,
and try to traverse the same structure to open the same image, the get_entry
mask starts almost immediately and keeps repeating (here you see it twice but
the log goes on and on). Actually, after some seconds, I cannot traverse the
folders anymore (I can click on them but Files will not do anything: the app
hangs)
smbd_dirptr_get_entry mask=[*] found . fname=. (.)
smbd_dirptr_get_entry mask=[*] found .. fname=.. (..)
smbd_dirptr_get_entry mask=[*] found @Recycle fname=@Recycle (@Recycle)
smbd_dirptr_get_entry mask=[*] found @Recently-Snapshot
fname=@Recently-Snapshot (@Recently-Snapshot)
smbd_dirptr_get_entry mask=[*] found .DS_Store fname=.DS_Store (.DS_Store)
smbd_dirptr_get_entry mask=[*] found Users fname=Users (Users)
smbd_dirptr_get_entry mask=[*] found .streams fname=.streams (.streams)
smbd_dirptr_get_entry mask=[*] found Users/. fname=. (.)
smbd_dirptr_get_entry mask=[*] found Users/.. fname=.. (..)
smbd_dirptr_get_entry mask=[*] found Users/.DS_Store fname=.DS_Store
(.DS_Store)
smbd_dirptr_get_entry mask=[*] found Users/luca fname=luca (luca)
smbd_dirptr_get_entry mask=[*] found Users/jenny fname=jenny (jenny)
smbd_dirptr_get_entry mask=[*] found Users/luca/. fname=. (.)
smbd_dirptr_get_entry mask=[*] found Users/luca/.. fname=.. (..)
smbd_dirptr_get_entry mask=[*] found Users/luca/.DS_Store fname=.DS_Store
(.DS_Store)
smbd_dirptr_get_entry mask=[*] found Users/luca/aMule Downloads fname=aMule
Downloads (aMule Downloads)
smbd_dirptr_get_entry mask=[*] found Users/luca/Documents fname=Documents
(Documents)
smbd_dirptr_get_entry mask=[*] found Users/luca/Incoming fname=Incoming
(Incoming)
smbd_dirptr_get_entry mask=[*] found Users/luca/Library fname=Library
(Library)
smbd_dirptr_get_entry mask=[*] found Users/luca/Pictures fname=Pictures
(Pictures)
smbd_dirptr_get_entry mask=[*] found Users/luca/Music fname=Music (Music)
smbd_dirptr_get_entry mask=[*] found Users/luca/Samsung fname=Samsung
(Samsung)
smbd_dirptr_get_entry mask=[*] found Users/luca/VideoEditing
fname=VideoEditing (VideoEditing)
smbd_dirptr_get_entry mask=[*] found Users/luca/Public fname=Public (Public)
smbd_dirptr_get_entry mask=[*] found Users/luca/Websites fname=Websites
(Websites)
smbd_dirptr_get_entry mask=[*] found Users/luca/scripts fname=scripts
(scripts)
smbd_dirptr_get_entry mask=[*] found Users/luca/QNAP Backup fname=QNAP Backup
(QNAP Backup)
smbd_dirptr_get_entry mask=[*] found Users/luca/Desktop fname=Desktop
(Desktop)
smbd_dirptr_get_entry mask=[*] found Users/luca/Movies fname=Movies (Movies)
smbd_dirptr_get_entry mask=[*] found . fname=. (.)
smbd_dirptr_get_entry mask=[*] found .. fname=.. (..)
smbd_dirptr_get_entry mask=[*] found @Recycle fname=@Recycle (@Recycle)
smbd_dirptr_get_entry mask=[*] found @Recently-Snapshot
fname=@Recently-Snapshot (@Recently-Snapshot)
smbd_dirptr_get_entry mask=[*] found .DS_Store fname=.DS_Store (.DS_Store)
smbd_dirptr_get_entry mask=[*] found Users fname=Users (Users)
smbd_dirptr_get_entry mask=[*] found .streams fname=.streams (.streams)
smbd_dirptr_get_entry mask=[*] found Users/. fname=. (.)
smbd_dirptr_get_entry mask=[*] found Users/.. fname=.. (..)
smbd_dirptr_get_entry mask=[*] found Users/.DS_Store fname=.DS_Store
(.DS_Store)
smbd_dirptr_get_entry mask=[*] found Users/luca fname=luca (luca)
smbd_dirptr_get_entry mask=[*] found Users/jenny fname=jenny (jenny)
smbd_dirptr_get_entry mask=[*] found Users/luca/. fname=. (.)
smbd_dirptr_get_entry mask=[*] found Users/luca/.. fname=.. (..)
smbd_dirptr_get_entry mask=[*] found Users/luca/.DS_Store fname=.DS_Store
(.DS_Store)
smbd_dirptr_get_entry mask=[*] found Users/luca/aMule Downloads fname=aMule
Downloads (aMule Downloads)
smbd_dirptr_get_entry mask=[*] found Users/luca/Documents fname=Documents
(Documents)
smbd_dirptr_get_entry mask=[*] found Users/luca/Incoming fname=Incoming
(Incoming)
smbd_dirptr_get_entry mask=[*] found Users/luca/Library fname=Library
(Library)
smbd_dirptr_get_entry mask=[*] found Users/luca/Pictures fname=Pictures
(Pictures)
smbd_dirptr_get_entry mask=[*] found Users/luca/Music fname=Music (Music)
smbd_dirptr_get_entry mask=[*] found Users/luca/Samsung fname=Samsung
(Samsung)
smbd_dirptr_get_entry mask=[*] found Users/luca/VideoEditing
fname=VideoEditing (VideoEditing)
smbd_dirptr_get_entry mask=[*] found Users/luca/Public fname=Public (Public)
smbd_dirptr_get_entry mask=[*] found Users/luca/Websites fname=Websites
(Websites)
smbd_dirptr_get_entry mask=[*] found Users/luca/scripts fname=scripts
(scripts)
smbd_dirptr_get_entry mask=[*] found Users/luca/QNAP Backup fname=QNAP Backup
(QNAP Backup)
smbd_dirptr_get_entry mask=[*] found Users/luca/Desktop fname=Desktop
(Desktop)
smbd_dirptr_get_entry mask=[*] found Users/luca/Movies fname=Movies (Movies)
smbd_dirptr_get_entry mask=[*] found . fname=. (.)
smbd_dirptr_get_entry mask=[*] found .. fname=.. (..)
smbd_dirptr_get_entry mask=[*] found @Recycle fname=@Recycle (@Recycle)
I get tons of notification requests for ?.?, ?..?, ?Users? and ?Users/luca?, in
this format
[2020/05/24 18:11:30.766709, 3]
../source3/smbd/smb2_notify.c:253(smbd_smb2_notify_send)
smbd_smb2_notify_send: notify change called on ., filter =
FILE_NAME|DIR_NAME|ATTRIBUTES|CREATION|SECURITY|STREAM_SIZE|STREAM_WRITE,
recursive = 0
in particular, I get the following amount, in just one second (between
18:11:30.541520 and 18:11:31.446935)
cat mobile.old.log | grep notify_send | grep 'Users/luca' | wc -l
33
cat mobile.old.log | grep notify_send | grep 'Users,' | wc -l
55
cat mobile.old.log | grep notify_send | grep '..,' | wc -l
322
cat mobile.old.log | grep notify_send | grep '.,' | wc -l
322
Where should I look at? The client is the same but the behaviour is different so
I really don?t know how to fix it and where to dig.
I really hope someone can help me.
Thanks
> On 13 May 2020, at 14:45, Luca Marceglia <luca at pianetaluca.com>
wrote:
>
> I have found something interesting:
> I have a username called luca (and I connect to the samba share with that
> username).
> If I configure the share with read-only access for luca, then everything is
> fine; if I configure the share with read-write access for luca, then
> file.app starts continuously refreshing the folders (as they appear and
> disappear continuously).
>
> Since I am using NFS and need to play with access priorities, I created two
> accounts on my NAS with the same name of the accounts I have on my Mac. But
> since uid and gid were different, I changed them on the NAS.
>
> Now, I did not know that smbpasswd has its uid as well and I did not change
> them.
> So luca had a different uid in the smbpasswd file.
>
> I have edited it and now luca has the same uid, but probably I need to
> delete some chaches? I see a lot of .tdb files in cache/ and locks/ folders
> but I do not know if I am safe to delete them
> Maybe this can out you on the right way to understand where my issue is?
>
> I did the above months ago and did not notice anything, but maybe after
> rebooting the NAS it got applied to Samba as well? Dunno
>
> -----Original Message-----
> From: samba <samba-bounces at lists.samba.org> On Behalf Of torch via
samba
> Sent: marted? 12 maggio 2020 00:08
> To: Samba List <samba at lists.samba.org>
> Subject: Re: [Samba] Clients send tons of Notiftication requests
>
> I have been trying to help Luca on the QNAP forum since I have the same
NAS.
> It reports smbd version 4.7.12. I have not had any issues, but I am in a
> Mac/Linux environment only.
> In Luca?s case, he is using NFS (not sure what version) on his Mac and I
> initially thought that maybe it was initiating change notifications
somehow.
> Possible?
> --
> To unsubscribe from this list go to the following URL and read the
> instructions: https://lists.samba.org/mailman/options/samba