pub struct PassthroughFs<S: BitmapSlice + Send + Sync = ()> { /* private fields */ }
Expand description

A file system that simply “passes through” all requests it receives to the underlying file system.

To keep the implementation simple it servers the contents of its root directory. Users that wish to serve only a specific directory should set up the environment so that that directory ends up as the root of the file system process. One way to accomplish this is via a combination of mount namespaces and the pivot_root system call.

Implementations§

Create a Passthrough file system instance.

Initialize the Passthrough file system.

Get the list of file descriptors which should be reserved across live upgrade.

Get the file pathname corresponding to the Inode This function is used by Nydus blobfs

Trait Implementations§

Look up a directory entry by name and get its attributes. Read more
Get attributes for a file / directory. Read more
Set attributes for a file / directory. Read more
Open a file. Read more
Create and open a file. Read more
Read data from a file. Read more
Write data to a file. Read more
Synchronize file contents. Read more
Allocate requested space for file data. Read more
Synchronize the contents of a directory. Read more
mount returns the backend file system root inode entry and the largest inode number it has.
Provides a reference to the Any trait. This is useful to let the caller have access to the underlying type behind the trait.
Represents a location in the filesystem tree and can be used to perform operations that act on the metadata of a file/directory (e.g., getattr and setattr). Can also be used as the starting point for looking up paths in the filesystem tree. An Inode may support operating directly on the content of the path that to which it points. FileSystem implementations that support this should set the FsOptions::ZERO_MESSAGE_OPEN option in the return value of the init function. On linux based systems, an Inode is equivalent to opening a file or directory with the libc::O_PATH flag. Read more
Represents a file or directory that is open for reading/writing.
Initialize the file system. Read more
Clean up the file system. Read more
Get information about the file system.
Look up a directory entry by name and get its attributes. Read more
Forget about an inode. Read more
Forget about multiple inodes. Read more
Open a directory for reading. Read more
Release an open directory. Read more
Create a directory. Read more
Remove a directory. Read more
Read a directory. Read more
Read a directory with entry attributes. Read more
Open a file. Read more
Release an open file. Read more
Create and open a file. Read more
Remove a file. Read more
Setup a mapping so that guest can access files in DAX style. Read more
Teardown a mapping which was setup for guest DAX style access.
Read data from a file. Read more
Write data to a file. Read more
Get attributes for a file / directory. Read more
Set attributes for a file / directory. Read more
Rename a file / directory. Read more
Create a file node. Read more
Create a hard link. Read more
Create a symbolic link. Read more
Read a symbolic link.
Flush the contents of a file. Read more
Synchronize file contents. Read more
Synchronize the contents of a directory. Read more
Check file access permissions. Read more
Set an extended attribute. Read more
Get an extended attribute. Read more
List extended attribute names. Read more
Remove an extended attribute. Read more
Allocate requested space for file data. Read more
Reposition read/write file offset.
Query file lock status
Grab a file read lock
Grab a file write lock
send ioctl to the file
Query a file’s block mapping info
Poll a file’s events
TODO: support this

Auto Trait Implementations§

Blanket Implementations§

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.