spiegel_podman/libpod/util_freebsd.go
nXtCyberNet f76d9de01a added errorlint
Fixes: #29488
Signed-off-by: nXtCyberNet <rohantech2005@gmail.com>
2026-08-14 01:35:03 +05:30

27 lines
513 B
Go

//go:build !remote
package libpod
import (
"errors"
"syscall"
"github.com/sirupsen/logrus"
"golang.org/x/sys/unix"
)
// No equivalent on FreeBSD?
func LabelVolumePath(_, _ string) error {
return nil
}
// Unmount umounts a target directory
func Unmount(mount string) {
if err := unix.Unmount(mount, unix.MNT_FORCE); err != nil {
if !errors.Is(err, syscall.EINVAL) {
logrus.Warnf("Failed to unmount %s : %v", mount, err)
} else {
logrus.Debugf("failed to unmount %s : %v", mount, err)
}
}
}