Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 12 for mountRefs (0.12 sec)

  1. pkg/volume/util/hostutil/hostutil_test.go

    		},
    		"Matched ref": {
    			mountRefs:    []string{filepath.Join(path, "lish")},
    			expectedPath: "lish",
    		},
    	}
    
    	for name, tc := range testCases {
    		t.Run(name, func(t *testing.T) {
    			mounter := &fakeMounter{
    				mountRefs:  tc.mountRefs,
    				raiseError: tc.raiseError,
    			}
    
    			path, err := hu.GetDeviceNameFromMount(mounter, path, path)
    			if tc.expectedError != "" {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Jun 01 16:02:07 UTC 2023
    - 5.6K bytes
    - Viewed (0)
  2. pkg/volume/util/util_test.go

    			}
    		})
    	}
    }
    
    func TestHasMountRefs(t *testing.T) {
    	testCases := map[string]struct {
    		mountPath string
    		mountRefs []string
    		expected  bool
    	}{
    		"plugin mounts only": {
    			mountPath: "/var/lib/kubelet/plugins/kubernetes.io/some-plugin/mounts/volume-XXXX",
    			mountRefs: []string{
    				"/home/somewhere/var/lib/kubelet/plugins/kubernetes.io/some-plugin/mounts/volume-XXXX",
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri May 31 12:32:15 UTC 2024
    - 28.7K bytes
    - Viewed (0)
  3. pkg/volume/fc/fc_test.go

    		refs, err := fm.GetMountRefs(path)
    		if err != nil {
    			t.Errorf("couldn't get mountrefs. err: %v", err)
    		}
    		var globalPDPath string
    		for _, ref := range refs {
    			if strings.Contains(ref, "kubernetes.io/fc") {
    				globalPDPath = ref
    				break
    			}
    		}
    		if len(globalPDPath) == 0 {
    			t.Errorf("couldn't fetch mountrefs")
    		}
    		arr := strings.Split(globalPDPath, "/")
    		if len(arr) < 1 {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Aug 01 15:56:32 UTC 2022
    - 14.1K bytes
    - Viewed (0)
  4. pkg/volume/util/util.go

    			fsUser = nil
    			return false
    		}
    		if fsUser == nil {
    			fsUser = runAsUser
    		}
    		return true
    	})
    	return fsUser
    }
    
    // HasMountRefs checks if the given mountPath has mountRefs.
    // TODO: this is a workaround for the unmount device issue caused by gci mounter.
    // In GCI cluster, if gci mounter is used for mounting, the container started by mounter
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri May 31 12:32:15 UTC 2024
    - 28.8K bytes
    - Viewed (0)
  5. src/cmd/vendor/golang.org/x/sys/unix/zerrors_openbsd_arm.go

    	MNT_WANTRDWR                      = 0x2000000
    	MNT_WXALLOWED                     = 0x800
    	MOUNT_AFS                         = "afs"
    	MOUNT_CD9660                      = "cd9660"
    	MOUNT_EXT2FS                      = "ext2fs"
    	MOUNT_FFS                         = "ffs"
    	MOUNT_FUSEFS                      = "fuse"
    	MOUNT_MFS                         = "mfs"
    	MOUNT_MSDOS                       = "msdos"
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Oct 19 23:33:33 UTC 2023
    - 78.5K bytes
    - Viewed (0)
  6. src/cmd/vendor/golang.org/x/sys/unix/zerrors_openbsd_riscv64.go

    	MNT_WANTRDWR                      = 0x2000000
    	MNT_WXALLOWED                     = 0x800
    	MOUNT_AFS                         = "afs"
    	MOUNT_CD9660                      = "cd9660"
    	MOUNT_EXT2FS                      = "ext2fs"
    	MOUNT_FFS                         = "ffs"
    	MOUNT_FUSEFS                      = "fuse"
    	MOUNT_MFS                         = "mfs"
    	MOUNT_MSDOS                       = "msdos"
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Oct 19 23:33:33 UTC 2023
    - 78.5K bytes
    - Viewed (0)
  7. src/cmd/vendor/golang.org/x/sys/unix/zerrors_openbsd_amd64.go

    	MNT_WANTRDWR                      = 0x2000000
    	MNT_WXALLOWED                     = 0x800
    	MOUNT_AFS                         = "afs"
    	MOUNT_CD9660                      = "cd9660"
    	MOUNT_EXT2FS                      = "ext2fs"
    	MOUNT_FFS                         = "ffs"
    	MOUNT_FUSEFS                      = "fuse"
    	MOUNT_MFS                         = "mfs"
    	MOUNT_MSDOS                       = "msdos"
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Oct 19 23:33:33 UTC 2023
    - 78.6K bytes
    - Viewed (0)
  8. src/cmd/vendor/golang.org/x/sys/unix/zerrors_openbsd_mips64.go

    	MNT_WANTRDWR                      = 0x2000000
    	MNT_WXALLOWED                     = 0x800
    	MOUNT_AFS                         = "afs"
    	MOUNT_CD9660                      = "cd9660"
    	MOUNT_EXT2FS                      = "ext2fs"
    	MOUNT_FFS                         = "ffs"
    	MOUNT_FUSEFS                      = "fuse"
    	MOUNT_MFS                         = "mfs"
    	MOUNT_MSDOS                       = "msdos"
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Oct 19 23:33:33 UTC 2023
    - 78.5K bytes
    - Viewed (0)
  9. src/cmd/vendor/golang.org/x/sys/unix/zerrors_openbsd_386.go

    	MNT_WANTRDWR                      = 0x2000000
    	MNT_WXALLOWED                     = 0x800
    	MOUNT_AFS                         = "afs"
    	MOUNT_CD9660                      = "cd9660"
    	MOUNT_EXT2FS                      = "ext2fs"
    	MOUNT_FFS                         = "ffs"
    	MOUNT_FUSEFS                      = "fuse"
    	MOUNT_MFS                         = "mfs"
    	MOUNT_MSDOS                       = "msdos"
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Oct 19 23:33:33 UTC 2023
    - 78.5K bytes
    - Viewed (0)
  10. src/cmd/vendor/golang.org/x/sys/unix/zerrors_openbsd_arm64.go

    	MNT_WANTRDWR                      = 0x2000000
    	MNT_WXALLOWED                     = 0x800
    	MOUNT_AFS                         = "afs"
    	MOUNT_CD9660                      = "cd9660"
    	MOUNT_EXT2FS                      = "ext2fs"
    	MOUNT_FFS                         = "ffs"
    	MOUNT_FUSEFS                      = "fuse"
    	MOUNT_MFS                         = "mfs"
    	MOUNT_MSDOS                       = "msdos"
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Oct 19 23:33:33 UTC 2023
    - 78.6K bytes
    - Viewed (0)
Back to top