Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 198 for Mounts (0.34 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. 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)
  3. 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)
  4. 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)
  5. 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)
  6. 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)
  7. pkg/kubelet/cm/container_manager_windows.go

    	if err != nil {
    		return nil, err
    	} else if devOpts == nil {
    		return opts, nil
    	}
    	opts.Devices = append(opts.Devices, devOpts.Devices...)
    	opts.Mounts = append(opts.Mounts, devOpts.Mounts...)
    	opts.Envs = append(opts.Envs, devOpts.Envs...)
    	opts.Annotations = append(opts.Annotations, devOpts.Annotations...)
    	return opts, nil
    }
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Jul 12 11:25:36 UTC 2023
    - 8.7K bytes
    - Viewed (0)
  8. src/internal/poll/fd_fsync_darwin.go

    	if err := fd.incref(); err != nil {
    		return err
    	}
    	defer fd.decref()
    	return ignoringEINTR(func() error {
    		_, err := unix.Fcntl(fd.Sysfd, syscall.F_FULLFSYNC, 0)
    
    		// There are scenarios such as SMB mounts where fcntl will fail
    		// with ENOTSUP. In those cases fallback to fsync.
    		// See #64215
    		if err != nil && errors.Is(err, syscall.ENOTSUP) {
    			err = syscall.Fsync(fd.Sysfd)
    		}
    		return err
    	})
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Mar 07 19:20:48 UTC 2024
    - 850 bytes
    - Viewed (0)
  9. docs/tr/docs/advanced/wsgi.md

    # WSGI - Flask, Django ve Daha Fazlasını FastAPI ile Kullanma
    
    WSGI uygulamalarını [Sub Applications - Mounts](sub-applications.md){.internal-link target=_blank}, [Behind a Proxy](behind-a-proxy.md){.internal-link target=_blank} bölümlerinde gördüğünüz gibi bağlayabilirsiniz.
    
    Bunun için `WSGIMiddleware` ile Flask, Django vb. WSGI uygulamanızı sarmalayabilir ve FastAPI'ya bağlayabilirsiniz.
    
    ## `WSGIMiddleware` Kullanımı
    
    `WSGIMiddleware`'ı projenize dahil edin.
    
    Registered: Mon Jun 17 08:32:26 UTC 2024
    - Last Modified: Sat May 18 00:49:03 UTC 2024
    - 1.3K bytes
    - Viewed (0)
  10. docs/en/docs/advanced/wsgi.md

    # Including WSGI - Flask, Django, others
    
    You can mount WSGI applications as you saw with [Sub Applications - Mounts](sub-applications.md){.internal-link target=_blank}, [Behind a Proxy](behind-a-proxy.md){.internal-link target=_blank}.
    
    For that, you can use the `WSGIMiddleware` and use it to wrap your WSGI application, for example, Flask, Django, etc.
    
    ## Using `WSGIMiddleware`
    
    You need to import `WSGIMiddleware`.
    
    Registered: Mon Jun 17 08:32:26 UTC 2024
    - Last Modified: Thu May 02 22:37:31 UTC 2024
    - 1.1K bytes
    - Viewed (0)
Back to top