package pmem

import "github.com/Microsoft/opengcs/internal/storage/pmem"

Index

Functions

func Mount

func Mount(ctx context.Context, device uint32, target string) (err error)

Mount mounts the pmem device at `/dev/pmem<device>` to `target`.

`target` will be created. On mount failure the created `target` will be automatically cleaned up.

Note: For now the platform only supports readonly pmem that is assumed to be `ext4`.

Source Files

pmem.go

Version
v0.4.0 (latest)
Published
Dec 4, 2020
Platform
linux/amd64
Imports
7 packages
Last checked
12 hours ago

Tools for package owners.