Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 6 of 6 for absPaths (0.17 sec)

  1. internal/mountinfo/mountinfo_linux_test.go

    	if err = os.WriteFile(mountsPath, []byte(successCase), 0o666); err != nil {
    		t.Fatal(err)
    	}
    	// Failure case where we detected successfully cross device mounts.
    	{
    		absPaths := []string{"/path/to/1"}
    		if err = checkCrossDevice(absPaths, mountsPath); err == nil {
    			t.Fatal("Expected to fail, but found success")
    		}
    
    		mp := []mountInfo{
    			{"/dev/2", "/path/to/1/2", "type2", []string{"flags"}, "2", "2"},
    		}
    Go
    - Registered: Sun Apr 21 19:28:08 GMT 2024
    - Last Modified: Thu Jan 18 07:03:17 GMT 2024
    - 7.3K bytes
    - Viewed (0)
  2. internal/mountinfo/mountinfo_linux.go

    func CheckCrossDevice(absPaths []string) error {
    	return checkCrossDevice(absPaths, procMountsPath)
    }
    
    // Check cross device is an internal function.
    func checkCrossDevice(absPaths []string, mountsPath string) error {
    	mounts, err := readProcMounts(mountsPath)
    	if err != nil {
    		return err
    	}
    	for _, path := range absPaths {
    		if err := mounts.checkCrossMounts(path); err != nil {
    Go
    - Registered: Sun Apr 21 19:28:08 GMT 2024
    - Last Modified: Sun Jan 02 17:15:06 GMT 2022
    - 4.7K bytes
    - Viewed (0)
  3. cmd/endpoint.go

    func checkCrossDeviceMounts(endpoints Endpoints) (err error) {
    	var absPaths []string
    	for _, endpoint := range endpoints {
    		if endpoint.IsLocal {
    			var absPath string
    			absPath, err = filepath.Abs(endpoint.Path)
    			if err != nil {
    				return err
    			}
    			absPaths = append(absPaths, absPath)
    		}
    	}
    	return mountinfo.CheckCrossDevice(absPaths)
    }
    
    Go
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Sun Apr 21 11:43:18 GMT 2024
    - 34.1K bytes
    - Viewed (0)
  4. src/cmd/cgo/ast.go

    				}
    				if cg != nil {
    					if strings.ContainsAny(abspath, "\r\n") {
    						// This should have been checked when the file path was first resolved,
    						// but we double check here just to be sure.
    						fatalf("internal error: ParseGo: abspath contains unexpected newline character: %q", abspath)
    					}
    					f.Preamble += fmt.Sprintf("#line %d %q\n", sourceLine(cg), abspath)
    					f.Preamble += commentText(cg) + "\n"
    Go
    - Registered: Tue Apr 23 11:13:09 GMT 2024
    - Last Modified: Wed Jun 07 16:54:27 GMT 2023
    - 14.3K bytes
    - Viewed (0)
  5. cmd/update.go

    	// Convert to absolute path
    	absPath, err := filepath.Abs(path)
    	if err != nil {
    		return t, fmt.Errorf("Unable to get absolute path of %s. %w", path, err)
    	}
    
    	// Version is minio non-standard, we will use minio binary's
    	// ModTime as release time.
    	fi, err := Stat(absPath)
    	if err != nil {
    		return t, fmt.Errorf("Unable to get ModTime of %s. %w", absPath, err)
    	}
    
    	// Return the ModTime
    Go
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Wed Apr 24 04:08:47 GMT 2024
    - 18.7K bytes
    - Viewed (0)
  6. configure.py

      else:
        output = subprocess.check_output(cmd, stderr=stderr)
      return output.decode('UTF-8').strip()
    
    
    def cygpath(path):
      """Convert path from posix to windows."""
      return os.path.abspath(path).replace('\\', '/')
    
    
    def get_python_path(environ_cp, python_bin_path):
      """Get the python site package paths."""
      python_paths = []
      if environ_cp.get('PYTHONPATH'):
    Python
    - Registered: Tue Apr 23 12:39:09 GMT 2024
    - Last Modified: Mon Apr 15 18:25:36 GMT 2024
    - 53.8K bytes
    - Viewed (0)
Back to top