This PR adds a new SPI to the package: MountProvider
Mounting a filesystem into the the OS and make it accessible for other applications over the "OS way" is, well, an integration. Therefore we decided to shift this resposibility from API consumers to API implementors.
In a first step this API only fullfills the needs of FUSE implementors completely, an extension will follow soon (seperate PR).
The mount service consists of:
MountFeatures - Enum of features that the provider is capabable of;
MountProvider - SPI with the method forFilesystem(Path root), which creates a
MountBuilder - Builder to finally mount your filesystem into the OS. Calling mount() returns
Mount - Mounted, accessible filesytem in the OS. Most important method is unmount().
Note: This PR is for documentation. Review already done.
This PR adds a new SPI to the package:
MountProvider
Mounting a filesystem into the the OS and make it accessible for other applications over the "OS way" is, well, an integration. Therefore we decided to shift this resposibility from API consumers to API implementors.
In a first step this API only fullfills the needs of FUSE implementors completely, an extension will follow soon (seperate PR).
The mount service consists of:
MountFeatures
- Enum of features that the provider is capabable of;MountProvider
- SPI with the methodforFilesystem(Path root)
, which creates aMountBuilder
- Builder to finally mount your filesystem into the OS. Callingmount()
returnsMount
- Mounted, accessible filesytem in the OS. Most important method isunmount()
.Note: This PR is for documentation. Review already done.