Quantcast
Channel: Raspberry Pi Forums
Viewing all articles
Browse latest Browse all 8365

Raspberry Pi OS • Re: Samba problem with mounted directory

$
0
0
I should add that it should be pretty clear what is going on here. On startup, Samba must be getting some kind of a "handle" to the directory (which is unmounted at that point - i.e., a regular, normal directory). Then when you mount something to it, Samba isn't aware of the change. It continues to use the old handle.

It is kind of analogous to the situation where in Unix, you can create a file, have another process open it, then you remove the file, but the process continues to work with the open file descriptor as if the file was still there. You can even create a new file with the same name and there will be no relationship between the old file (held open by the process) and the new file. I wonder if there is something similar for directories (Essentially, mounting something to a directory is like making a new directory - it is completely different from what it used to be).

Statistics: Posted by BigRedMailbox — Mon Dec 16, 2024 1:32 pm



Viewing all articles
Browse latest Browse all 8365

Trending Articles