Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 33 for lockPath (0.16 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/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)
  7. 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)
  8. 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)
  9. src/cmd/go/internal/generate/generate.go

    		// intends to use the same 'go' as 'go generate' itself.
    		// Prefer to resolve the binary from GOROOT/bin, and for consistency
    		// prefer to resolve any other commands there too.
    		gorootBinPath, err := cfg.LookPath(filepath.Join(cfg.GOROOTbin, path))
    		if err == nil {
    			path = gorootBinPath
    		}
    	}
    	cmd := exec.Command(path, words[1:]...)
    	cmd.Args[0] = words[0] // Overwrite with the original in case it was rewritten above.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Jan 29 19:39:24 UTC 2024
    - 14.5K bytes
    - Viewed (0)
  10. src/cmd/go/internal/cfg/cfg.go

    		// This makes go builds work automatically on systems
    		// without a C compiler installed.
    		if ctxt.CgoEnabled {
    			if os.Getenv("CC") == "" {
    				cc := DefaultCC(ctxt.GOOS, ctxt.GOARCH)
    				if _, err := LookPath(cc); err != nil {
    					defaultCgoEnabled = false
    				}
    			}
    		}
    	}
    	ctxt.CgoEnabled = defaultCgoEnabled
    	if v := Getenv("CGO_ENABLED"); v == "0" || v == "1" {
    		ctxt.CgoEnabled = v[0] == '1'
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 24 17:13:51 UTC 2024
    - 19.3K bytes
    - Viewed (0)
Back to top