On Tue, Jul 7, 2020 at 11:04 AM Per Jessen <per@computer.org> wrote:
Roger Oberholtzer wrote:
Otherwise one can wind up writing to the directory 'under' the mount point, if you know what I mean. If they only mount /array, I don't know how the clients will see if a disk under /array is really mounted, or if they are just writing to the directory on which the disk should have been mounted.
If it were me, I would probably not want to make my clients aware, but if you have to, maybe put some marker file on the filesystem for the client to check. if present => mounted.
As to CIFS, I have no idea. I will definitely try simply sharing /array and see what happens. I am just curious what happens when a disk is not in the array. What does the client see? What happens if they try to write to the directory where the disk would have been had it been inserted?
If a disk is not in the array, only the empty mount point is seen. The client will just write to that.
It sounds like you do need to make your clients aware of the mount-status.
Using automount actually solves this. If the directory can be mounted, you can access it. Otherwise you get an error when trying to access it. It is one of the things I really like about automount. At least this works on the Linux clients. Windows is a bit more problematic. As usual. -- Roger Oberholtzer -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org