[feature] Add automatic cascade mounting for filesystems #52
Labels
No labels
Compat/Breaking
Kind/Bug
Kind/Documentation
Kind/Enhancement
Kind/Feature
Kind/Security
Kind/Testing
Priority
Critical
Priority
High
Priority
Low
Priority
Medium
Reviewed
Confirmed
Reviewed
Duplicate
Reviewed
Invalid
Reviewed
Won't Fix
Status
Abandoned
Status
Blocked
Status
Need More Info
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference: glenux/mfm#52
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Description
This feature request proposes adding support for automatic cascade mounting in MFM. This enhancement would enable MFM to identify and manage filesystem dependencies based on path hierarchy, removing the need for manually configured dependencies.
Use Case Example:
gocryptfs
encrypted filesystem needs to be mounted at/mnt/toto/whatever/vault
./mnt/toto/whatever
is itself a mount point for another filesystem, such assshfs
./mnt/toto/whatever
is a required prefix for/mnt/toto/whatever/vault
, and thus mountsshfs
first to ensure the directory structure is available before attempting thegocryptfs
mount.Steps to Reproduce
gocryptfs
mount nested within an existingsshfs
mount path.gocryptfs
filesystem without manually mountingsshfs
.gocryptfs
mount fails ifsshfs
is not mounted first.Expected Behavior
MFM should:
/mnt/toto/whatever
is a required prefix for/mnt/toto/whatever/vault
.sshfs
to make/mnt/toto/whatever
available.gocryptfs
once the dependency is resolved.Actual Behavior
Currently, MFM does not handle path-based dependencies. Mounting a dependent filesystem like
gocryptfs
fails if the parent mount (sshfs
) is not manually mounted beforehand.Proposed Solution / Implementation
Path-Based Dependency Detection:
/mnt/toto/whatever
is configured and used as a prefix in/mnt/toto/whatever/vault
, MFM should automatically recognize the dependency.Automatic Mount Sequencing:
Error Handling and Logging: