mirror of
https://github.com/edgelesssys/constellation.git
synced 2024-12-11 17:04:22 -05:00
23 lines
487 B
Go
23 lines
487 B
Go
//go:build linux
|
|
|
|
/*
|
|
Copyright (c) Edgeless Systems GmbH
|
|
|
|
SPDX-License-Identifier: AGPL-3.0-only
|
|
*/
|
|
package setup
|
|
|
|
import (
|
|
"syscall"
|
|
)
|
|
|
|
// Mount performs a mount syscall.
|
|
func (m DiskMounter) Mount(source string, target string, fstype string, flags uintptr, data string) error {
|
|
return syscall.Mount(source, target, fstype, flags, data)
|
|
}
|
|
|
|
// Unmount performs an unmount syscall.
|
|
func (m DiskMounter) Unmount(target string, flags int) error {
|
|
return syscall.Unmount(target, flags)
|
|
}
|