Currently, ksmbd's handling of shares on mount points has some rough edges:
- If a share path becomes a mount point after the ksmbd service starts, the share exhibits abnormal behavior. The root directory is visible, but files cannot be opened, subdirectories cannot be entered, and while new empty files can be created, they cannot be modified or deleted. Restarting the ksmbd service resolves this.
- If a share path is a mount point when the service starts, unmounting always returns
-EBUSY.
Ideally, in the first scenario, the share should either appear empty or function correctly. The current behavior is misleading, especially if the mount point was temporarily unavailable due to required manual intervention like running fsck.
For the second scenario, it'd be nice if the share can be successfully unmounted.
Currently, ksmbd's handling of shares on mount points has some rough edges:
-EBUSY.Ideally, in the first scenario, the share should either appear empty or function correctly. The current behavior is misleading, especially if the mount point was temporarily unavailable due to required manual intervention like running
fsck.For the second scenario, it'd be nice if the share can be successfully unmounted.