Skip to content

Potential improvements to the handling of shares on mount points #620

Description

@database64128

Currently, ksmbd's handling of shares on mount points has some rough edges:

  1. 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.
  2. 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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions