Dolphin shows incorrect diskspace (samba-share)

On my server (Ubuntu-server 24.10) I have bind-mounted a directory from another mounted partition. When I access this directory via samba with dolphin (plasma), dolphin (but also nautilus on Ubunu) shows the free and used disk-space of the original directory(partition), not the bind-mounted. So although there is enough free space I cannot copy huge files to the directory via samba, because the original partition has not much space left. I have also bind-mounted directories on my PC where the free space is shown correctly, so the problem has to do with samba!(?)

I now retried it with nautilus, and recognized that nautilus, beside writing that there is not enough space, offers a button “copy anyway”, which worked. Can I also get dolphin to open up such a possibility?

I just tried “dfree” as recommended in the samba documentation.
dfree.sh:
#!/bin/sh
/bin/df “$1” | /bin/tail -1 | /bin/awk ‘{print $(NF-4),$(NF-2)}’

then made the script executable: sudo chmod a+x dfree.sh

I tested it manually and it showed the correct free space of the bind mounted directory:
micha@userv:/etc/samba$ ./dfree.sh /home/micha/Dokumente
479493808 311774104

I then added the following to smb.conf:
[global]
dfree command = /etc/samba/dfree.sh
dfree cache time = 10

and rebootet the server, but no success, dolphin is still showing incorrect free space!

I now added the partition with the directory (“/mnt/home_all/Dokumente”) that is bind mounted to “/home/micha/Dokumente” to the shares, but still no luck, but I now can access the regarding directory directly via samba!