Crate nydus_service

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
Blob cache manager to cache RAFS meta/data blob objects.
daemon
Infrastructure to define and manage Nydus service daemons.
upgrade
Online upgrade manager for Nydus daemons and filesystems.

Structs§

FsBackendCollection
List of FsBackendDescriptor, providing filesystem metrics and statistics information.
FsBackendDescriptor
Backend filesystem descriptor.
FsBackendMountCmd
Request structure to mount a filesystem instance.
FsBackendUmountCmd
Request structure to unmount a filesystem instance.
FsCacheHandler
Handler to cooperate with Linux fscache driver to manage cached blob objects.
FusedevDaemon
Nydus daemon to implement FUSE servers by accessing /dev/fuse.

Enums§

Error
Error code related to Nydus library.
FsBackendType
Type of supported backend filesystems.
FuseNotifyError

Traits§

FsService
Abstract interfaces for filesystem service provider.
ServiceArgs
Trait to get configuration options for services.

Functions§

create_daemon
Create and start a Nydus daemon to host fscache and fusedev services.
create_fuse_daemon
Create and start a FusedevDaemon instance.
create_vfs_backend
validate_threads_configuration
Validate thread number configuration, valid range is [1-1024].

Type Aliases§

Result
Specialized Result for Nydus library.