Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 35 for lockPath (0.26 sec)

  1. pkg/volume/fc/fc.go

    		deviceUtil: util.NewDeviceHandler(util.NewIOHandler()),
    	}
    
    	blockPath, err := mapper.GetGlobalMapPath(spec)
    	if err != nil {
    		return nil, fmt.Errorf("failed to get device path: %v", err)
    	}
    	mapper.MetricsProvider = volume.NewMetricsBlock(filepath.Join(blockPath, string(podUID)))
    
    	return mapper, nil
    }
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue May 14 06:17:25 UTC 2024
    - 17.4K bytes
    - Viewed (0)
  2. pkg/volume/local/local.go

    			globalPath: volumeSource.Path,
    			plugin:     plugin,
    		},
    		readOnly: readOnly,
    	}
    
    	blockPath, err := mapper.GetGlobalMapPath(spec)
    	if err != nil {
    		return nil, fmt.Errorf("failed to get device path: %v", err)
    	}
    	mapper.MetricsProvider = volume.NewMetricsBlock(filepath.Join(blockPath, string(pod.UID)))
    
    	return mapper, nil
    }
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue May 14 06:17:25 UTC 2024
    - 22.2K bytes
    - Viewed (0)
  3. src/cmd/compile/internal/ssa/debug_test.go

    	}
    
    	if *useGdb {
    		debugger = "gdb"
    		_, err := exec.LookPath(gdb)
    		if err != nil {
    			if runtime.GOOS != "darwin" {
    				skipReasons += "not run because gdb not on path; "
    			} else {
    				// On Darwin, MacPorts installs gdb as "ggdb".
    				_, err = exec.LookPath("ggdb")
    				if err != nil {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Apr 02 16:11:47 UTC 2024
    - 28.6K bytes
    - Viewed (0)
  4. pkg/volume/csi/csi_plugin.go

    	}
    	klog.V(4).Info(log("created path successfully [%s]", dataDir))
    
    	blockPath, err := mapper.GetGlobalMapPath(spec)
    	if err != nil {
    		return nil, errors.New(log("failed to get device path: %v", err))
    	}
    
    	mapper.MetricsProvider = NewMetricsCsi(pvSource.VolumeHandle, blockPath+"/"+string(podRef.UID), csiDriverName(pvSource.Driver))
    
    	// persist volume info data for teardown
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue May 14 06:17:25 UTC 2024
    - 29.2K bytes
    - Viewed (0)
  5. src/os/os_windows_test.go

    		t.Errorf("%q should not be a regular file (mode=0x%x)", pythonPath, uint32(m))
    	}
    
    	p, err := exec.LookPath(pythonPath)
    	if err != nil {
    		t.Errorf("exec.LookPath(%q): %v", pythonPath, err)
    	}
    	if p != pythonPath {
    		t.Errorf("exec.LookPath(%q) = %q; want %q", pythonPath, p, pythonPath)
    	}
    }
    
    func TestIllformedUTF16FileName(t *testing.T) {
    	dir := t.TempDir()
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:00:11 UTC 2024
    - 41.8K bytes
    - Viewed (0)
  6. src/debug/pe/file_test.go

    	t.Fatal("main.main not found")
    }
    
    func TestBSSHasZeros(t *testing.T) {
    	testenv.MustHaveExec(t)
    
    	if runtime.GOOS != "windows" {
    		t.Skip("skipping windows only test")
    	}
    	gccpath, err := exec.LookPath("gcc")
    	if err != nil {
    		t.Skip("skipping test: gcc is missing")
    	}
    
    	tmpdir := t.TempDir()
    
    	srcpath := filepath.Join(tmpdir, "a.c")
    	src := `
    #include <stdio.h>
    
    int zero = 0;
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon May 01 02:25:16 UTC 2023
    - 22.3K bytes
    - Viewed (0)
  7. src/cmd/link/elf_test.go

    // with the same name.
    func TestSectionsWithSameName(t *testing.T) {
    	testenv.MustHaveGoBuild(t)
    	testenv.MustHaveCGO(t)
    	t.Parallel()
    
    	objcopy, err := exec.LookPath("objcopy")
    	if err != nil {
    		t.Skipf("can't find objcopy: %v", err)
    	}
    
    	dir := t.TempDir()
    
    	gopath := filepath.Join(dir, "GOPATH")
    	env := append(os.Environ(), "GOPATH="+gopath)
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Sep 18 16:34:01 UTC 2023
    - 13.7K bytes
    - Viewed (0)
  8. src/cmd/link/internal/ld/elf_test.go

    	// succeeds and we get no output from strip, then run the resulting
    	// stripped binary.
    	for k, sprog := range stripExecs {
    		if _, err := os.Stat(sprog); err != nil {
    			sp1, err := exec.LookPath(sprog)
    			if err != nil || sp1 == "" {
    				continue
    			}
    			sprog = sp1
    		}
    		targ := fmt.Sprintf("p%d.exe", k)
    		scmd := testenv.Command(t, sprog, "-o", targ, binFile)
    		scmd.Dir = dir
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 10 13:44:07 UTC 2024
    - 16.6K bytes
    - Viewed (0)
  9. staging/src/k8s.io/apimachinery/pkg/api/apitesting/roundtrip/compatibility.go

    	g := gvk.Group
    	if g == "" {
    		g = "core"
    	}
    	return g + "." + gvk.Version + "." + gvk.Kind
    }
    
    func dumpProto(t *testing.T, data []byte) string {
    	t.Helper()
    	protoc, err := exec.LookPath("protoc")
    	if err != nil {
    		t.Log(err)
    		return ""
    	}
    	cmd := exec.Command(protoc, "--decode_raw")
    	cmd.Stdin = bytes.NewBuffer(data)
    	d, err := cmd.CombinedOutput()
    	if err != nil {
    		t.Log(err)
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Mar 08 16:38:32 UTC 2023
    - 17.8K bytes
    - Viewed (0)
  10. src/os/exec/exec_test.go

    	if os.Getenv("GO_EXEC_TEST_PID") == "" {
    		os.Setenv("GO_EXEC_TEST_PID", strconv.Itoa(pid))
    
    		if runtime.GOOS == "windows" {
    			// Normalize environment so that test behavior is consistent.
    			// (The behavior of LookPath varies depending on this variable.)
    			//
    			// Ideally we would test both with the variable set and with it cleared,
    			// but I (bcmills) am not sure that that's feasible: it may already be set
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Jun 07 20:13:53 UTC 2024
    - 48.4K bytes
    - Viewed (0)
Back to top