mirror of
https://github.com/containers/skopeo.git
synced 2025-09-27 21:16:23 +00:00
Update module github.com/containers/storage to v1.47.0
Signed-off-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
This commit is contained in:
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