mirror of
https://github.com/containers/podman.git
synced 2025-12-06 13:56:22 +08:00
Update common, image, and storage deps
Signed-off-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
This commit is contained in:
committed by
Paul Holzinger
parent
32d96f40c3
commit
444f19cb2a
7
vendor/github.com/containers/storage/drivers/driver_solaris.go
generated
vendored
7
vendor/github.com/containers/storage/drivers/driver_solaris.go
generated
vendored
@@ -16,6 +16,7 @@ static inline struct statvfs *getstatfs(char *s) {
|
||||
}
|
||||
*/
|
||||
import "C"
|
||||
|
||||
import (
|
||||
"path/filepath"
|
||||
"unsafe"
|
||||
@@ -31,7 +32,7 @@ const (
|
||||
|
||||
var (
|
||||
// Slice of drivers that should be used in an order
|
||||
priority = []string{
|
||||
Priority = []string{
|
||||
"zfs",
|
||||
}
|
||||
|
||||
@@ -69,8 +70,7 @@ func NewDefaultChecker() Checker {
|
||||
return &defaultChecker{}
|
||||
}
|
||||
|
||||
type defaultChecker struct {
|
||||
}
|
||||
type defaultChecker struct{}
|
||||
|
||||
func (c *defaultChecker) IsMounted(path string) bool {
|
||||
m, _ := mount.Mounted(path)
|
||||
@@ -80,7 +80,6 @@ func (c *defaultChecker) IsMounted(path string) bool {
|
||||
// Mounted checks if the given path is mounted as the fs type
|
||||
// Solaris supports only ZFS for now
|
||||
func Mounted(fsType FsMagic, mountPath string) (bool, error) {
|
||||
|
||||
cs := C.CString(filepath.Dir(mountPath))
|
||||
defer C.free(unsafe.Pointer(cs))
|
||||
buf := C.getstatfs(cs)
|
||||
|
||||
Reference in New Issue
Block a user