mount

package
v0.1.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 13, 2025 License: MIT Imports: 5 Imported by: 0

Documentation

Overview

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

Index

Constants

View Source
const MountType = "fuse.debloated_fs"

Variables

This section is empty.

Functions

func IsMountedWithType

func IsMountedWithType(path, mountType string) bool

IsMountedWithType returns true if the given path is a mount point using the specified mount type.

Types

type Mount

type Mount struct {
	// contains filtered or unexported fields
}

A Mount represents a BAFFS mount.

func NewMount

func NewMount(exePath string, mountPoint string, kvArgs map[string]string, flagArgs []string) Mount

func (Mount) Mount

func (m Mount) Mount()

Mounts a BAFFS mount. A mount is skipped if the mount point is already mounted with the same mount type.

func (Mount) Unmount

func (m Mount) Unmount()

Unmounts a BAFFS mount.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL