Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 58 for mountPoint (0.14 sec)

  1. pkg/volume/util/fsquota/common/quota_common_linux_impl.go

    // can be applied to directories?
    func (*VolumeProvider) GetQuotaApplier(mountpoint string, backingDev string) LinuxVolumeQuotaApplier {
    	for _, fsType := range linuxSupportedFilesystems {
    		if isFilesystemOfType(mountpoint, backingDev, fsType.typeMagic) {
    			return linuxVolumeQuotaApplier{mountpoint: mountpoint,
    				maxQuota:         fsType.maxQuota,
    				allowEmptyOutput: fsType.allowEmptyOutput,
    			}
    		}
    	}
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Jun 20 14:49:03 UTC 2023
    - 9.1K bytes
    - Viewed (0)
  2. pkg/kubelet/container/container_gc_test.go

    			writeableSeparateFromReadOnly: false,
    		},
    		{
    			name:                          "images and containers",
    			imageFs:                       []*runtimeapi.FilesystemUsage{{FsId: &runtimeapi.FilesystemIdentifier{Mountpoint: "image"}}},
    			containerFs:                   []*runtimeapi.FilesystemUsage{{FsId: &runtimeapi.FilesystemIdentifier{Mountpoint: "container"}}},
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Nov 01 18:46:33 UTC 2023
    - 3.5K bytes
    - Viewed (0)
  3. pkg/volume/emptydir/empty_dir_linux.go

    	// Get mount point data for the path
    	mountPoints, err := mounter.List()
    	if err != nil {
    		return nil, fmt.Errorf("error listing mount points: %v", err)
    	}
    	// Find mount point for the path
    	mountPoint, err := func(mps []mount.MountPoint, mpPath string) (*mount.MountPoint, error) {
    		for _, mp := range mps {
    			if mp.Path == mpPath {
    				return &mp, nil
    			}
    		}
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Aug 24 19:47:49 UTC 2021
    - 3.6K bytes
    - Viewed (0)
  4. cmd/kube-proxy/app/conntrack.go

    	m := mount.New("" /* default mount path */)
    	mountPoints, err := m.List()
    	if err != nil {
    		logger.Error(err, "Failed to list mount points")
    		return false, err
    	}
    
    	for _, mountPoint := range mountPoints {
    		if mountPoint.Type != sysfsDevice {
    			continue
    		}
    		// Check whether sysfs is 'rw'
    		if len(mountPoint.Opts) > 0 && mountPoint.Opts[0] == permWritable {
    			return true, nil
    		}
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Apr 22 05:08:41 UTC 2024
    - 5.6K bytes
    - Viewed (0)
  5. pkg/volume/util/fsquota/quota_linux.go

    			device := match[1]
    			mount := match[2]
    			if mount == mountpoint {
    				return device, nil
    			}
    		}
    	}
    	return "", fmt.Errorf("couldn't find backing device for %s", mountpoint)
    }
    
    // detectBackingDev assumes that the mount point provided is valid
    func detectBackingDev(_ mount.Interface, mountpoint string) (string, error) {
    	return detectBackingDevInternal(mountpoint, common.MountsFile)
    }
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Apr 07 08:07:51 UTC 2023
    - 14.1K bytes
    - Viewed (0)
  6. pkg/kubelet/cm/container_manager_linux_test.go

    			},
    		})
    	_, err := validateSystemRequirements(mountInt)
    	assert.Error(t, err)
    }
    
    func TestCgroupMountValidationMultipleSubsystem(t *testing.T) {
    	if cgroups.IsCgroup2UnifiedMode() {
    		t.Skip("skipping cgroup v1 test on a cgroup v2 system")
    	}
    	mountInt := mount.NewFakeMounter(
    		[]mount.MountPoint{
    			{
    				Device: "cgroup",
    				Type:   "cgroup",
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Mar 07 08:12:16 UTC 2024
    - 9.7K bytes
    - Viewed (0)
  7. platforms/core-execution/file-watching/src/test/groovy/org/gradle/internal/watch/vfs/impl/DefaultWatchableFileSystemDetectorTest.groovy

            detector.detectUnsupportedFileSystems()
                .collect(Collectors.toList())
        }
    
        private static FileSystemInfo fs(String deviceName, String mountPoint, String type, boolean remote = false) {
            return new DefaultFileSystemInfo(Paths.get(mountPoint).toFile(), type, deviceName, remote, null)
        }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Sep 22 09:38:01 UTC 2023
    - 2.3K bytes
    - Viewed (0)
  8. pkg/volume/util/fsquota/quota_linux_test.go

    		},
    	}
    	for name, testcase := range testcasesMount {
    		mountpoint, err := detectMountpointInternal(testcase.mounter, testcase.path)
    		if err == nil && testcase.expectFailure {
    			t.Errorf("Case %s expected failure, but succeeded, returning mountpoint %s", name, mountpoint)
    		} else if err != nil {
    			t.Errorf("Case %s failed: %s", name, err.Error())
    		} else if mountpoint != testcase.expectedResult {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Apr 24 18:25:29 UTC 2024
    - 20.7K bytes
    - Viewed (0)
  9. pkg/volume/util/subpath/subpath_linux_test.go

    	testContainer = "container0"
    	testSubpath   = 1
    )
    
    func setupFakeMounter(testMounts []string) *mount.FakeMounter {
    	mounts := []mount.MountPoint{}
    	for _, mountPoint := range testMounts {
    		mounts = append(mounts, mount.MountPoint{Device: "/foo", Path: mountPoint})
    	}
    	return mount.NewFakeMounter(mounts)
    }
    
    func getTestPaths(base string) (string, string) {
    	return filepath.Join(base, testVol),
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Nov 10 16:52:55 UTC 2021
    - 37.3K bytes
    - Viewed (0)
  10. internal/mountinfo/mountinfo_linux.go

    	expectedNumFieldsPerLine = 6
    	// Location of the mount file to use
    	procMountsPath = "/proc/mounts"
    )
    
    // IsLikelyMountPoint determines if a directory is a mountpoint.
    func IsLikelyMountPoint(path string) bool {
    	s1, err := os.Lstat(path)
    	if err != nil {
    		return false
    	}
    
    	// A symlink can never be a mount point
    	if s1.Mode()&os.ModeSymlink != 0 {
    		return false
    	}
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Sun Jan 02 17:15:06 UTC 2022
    - 4.7K bytes
    - Viewed (0)
Back to top