Crate nydus_service
source ·Expand description
Nydus Image Service Management Framework
The nydus-service
crate provides facilities to manage Nydus services, such as:
blobfs
: share processed RAFS metadata/data blobs to guest by virtio-fs, so the RAFS filesystem can be mounted by EROFS inside guest.blockdev
: compose processed RAFS metadata/data as a block device, so it can be used as backend for virtio-blk.fscache
: cooperate Linux fscache subsystem to mount RAFS filesystems by EROFS.fuse
: mount RAFS filesystems as FUSE filesystems.
Re-exports
pub use blob_cache::BlobCacheMgr;
Modules
- Blob cache manager to cache RAFS meta/data blob objects.
- Infrastructure to define and manage Nydus service daemons.
- Online upgrade manager for Nydus daemons and filesystems.
Structs
- List of FsBackendDescriptor, providing filesystem metrics and statistics information.
- Backend filesystem descriptor.
- Request structure to mount a filesystem instance.
- Request structure to unmount a filesystem instance.
- Handler to cooperate with Linux fscache driver to manage cached blob objects.
- Nydus daemon to implement FUSE servers by accessing
/dev/fuse
.
Enums
- Error code related to Nydus library.
- Type of supported backend filesystems.
Traits
- Abstract interfaces for filesystem service provider.
- Trait to get configuration options for services.
Functions
- Create and start a Nydus daemon to host fscache and fusedev services.
- Create and start a FusedevDaemon instance.
- Create vfs backend with rafs or passthrough as the fuse filesystem driver
- Validate thread number configuration, valid range is
[1-1024]
.
Type Definitions
- Specialized
Result
for Nydus library.