Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 294 for Mounts (0.2 sec)

  1. internal/mountinfo/mountinfo_linux_test.go

    	mountsPath := filepath.Join(dir, "mounts")
    	if err = os.WriteFile(mountsPath, []byte(successCase), 0o666); err != nil {
    		t.Fatal(err)
    	}
    	// Verifies if reading each line worked properly.
    	{
    		var mounts mountInfos
    		mounts, err = readProcMounts(mountsPath)
    		if err != nil {
    			t.Fatal(err)
    		}
    		if len(mounts) != 3 {
    			t.Fatalf("expected 3 mounts, got %d", len(mounts))
    		}
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Thu Jan 18 07:03:17 UTC 2024
    - 7.3K bytes
    - Viewed (0)
  2. internal/mountinfo/mountinfo_linux.go

    			// At this point if the mount point has a common prefix two conditions can happen.
    			// - mount.Path matches exact with `path` means we can proceed no error here.
    			// - mount.Path doesn't match (means cross-device mount), should error out.
    			if mount.Path != path {
    				crossMounts = append(crossMounts, mount)
    			}
    		}
    	}
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Sun Jan 02 17:15:06 UTC 2022
    - 4.7K bytes
    - Viewed (0)
  3. cmd/kubeadm/app/cmd/phases/reset/unmount_linux.go

    	raw, err := os.ReadFile("/proc/mounts")
    	if err != nil {
    		return err
    	}
    
    	if !strings.HasSuffix(kubeletRunDirectory, "/") {
    		// trailing "/" is needed to ensure that possibly mounted /var/lib/kubelet is skipped
    		kubeletRunDirectory += "/"
    	}
    
    	var errList []error
    	mounts := strings.Split(string(raw), "\n")
    	flagsInt := flagsToInt(flags)
    	for _, mount := range mounts {
    		m := strings.Split(mount, " ")
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Jan 05 10:58:44 UTC 2024
    - 2.2K bytes
    - Viewed (0)
  4. internal/mountinfo/mountinfo.go

    package mountinfo
    
    // mountInfo - This represents a single line in /proc/mounts.
    type mountInfo struct {
    	Device  string
    	Path    string
    	FSType  string
    	Options []string
    	Freq    string
    	Pass    string
    }
    
    func (m mountInfo) String() string {
    	return m.Path
    }
    
    // mountInfos - This represents the entire /proc/mounts.
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Thu Aug 19 01:35:22 UTC 2021
    - 1.1K bytes
    - Viewed (0)
  5. pkg/volume/util/fsquota/common/quota_common_linux_impl.go

    	tmpMounts, err := os.CreateTemp("", "mounts")
    	if err != nil {
    		return "", fmt.Errorf("cannot create temporary mount file: %v", err)
    	}
    	tmpMountsFileName := tmpMounts.Name()
    	defer tmpMounts.Close()
    	defer os.Remove(tmpMountsFileName)
    
    	mounts, err := os.Open(MountsFile)
    	if err != nil {
    		return "", fmt.Errorf("cannot open mounts file %s: %v", MountsFile, err)
    	}
    	defer mounts.Close()
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Jun 20 14:49:03 UTC 2023
    - 9.1K bytes
    - Viewed (0)
  6. pkg/kubelet/kubelet_pods_windows_test.go

    			ContainerPath:  `C:\Windows\System32\drivers\etc\hosts`,
    			HostPath:       filepath.Join(podDir, "etc-hosts"),
    			ReadOnly:       false,
    			SELinuxRelabel: true,
    		},
    	}
    	assert.Equal(t, expectedMounts, mounts, "mounts of container %+v", container)
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Apr 25 14:24:16 UTC 2024
    - 4.1K bytes
    - Viewed (0)
  7. releasenotes/notes/configmap-mount.yaml

    apiVersion: release-notes/v2
    kind: feature
    area: installation
    issue:
    - 31410
    releaseNotes:
    - |
      **Improved** configmaps to be read directly rather than from volume mounts. This improves the speed
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu Mar 25 15:46:51 UTC 2021
    - 311 bytes
    - Viewed (0)
  8. releasenotes/notes/fsgroup.yaml

    apiVersion: release-notes/v2
    kind: feature
    area: installation
    issue:
    - 26882
    releaseNotes:
    - |
      **Improved** sidecar injection to not modify the pod `securityPolicy.fsGroup` which could conflict with existing settings and secret mounts.
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Wed Sep 23 01:09:13 UTC 2020
    - 338 bytes
    - Viewed (0)
  9. cni/pkg/constants/constants.go

    )
    
    // Exposed for testing "constants"
    var (
    	CNIBinDir     = "/opt/cni/bin"
    	HostCNIBinDir = "/host/opt/cni/bin"
    	// Well-known subpath we will mount any needed host-mounts under,
    	// to preclude shadowing or breaking any pod-internal mounts
    	HostMountsPath = "/host"
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Tue May 21 18:32:01 UTC 2024
    - 2.8K bytes
    - Viewed (0)
  10. pkg/volume/util/fsquota/common/quota_common_linux.go

    // FirstQuota is the quota ID we start with.
    // XXXXXXX Need a better way of doing this...
    var FirstQuota QuotaID = 1048577
    
    // MountsFile is the location of the system mount data
    var MountsFile = "/proc/self/mounts"
    
    // MountParseRegexp parses out /proc/sys/self/mounts
    var MountParseRegexp = regexp.MustCompilePOSIX("^([^ ]*)[ \t]*([^ ]*)[ \t]*([^ ]*)") // Ignore options etc.
    
    // LinuxVolumeQuotaProvider returns an appropriate quota applier
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sat Jan 28 06:09:31 UTC 2023
    - 3.2K bytes
    - Viewed (0)
Back to top