Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 4 of 4 for Merino (0.2 sec)

  1. cmd/xl-storage_test.go

    						if pathErr, ok := err.(*os.PathError); ok {
    							if errno, pok := pathErr.Err.(syscall.Errno); pok {
    								resultErrno = uintptr(errno)
    							}
    						}
    						if pathErr, ok := testCase.expectedErr.(*os.PathError); ok {
    							if errno, pok := pathErr.Err.(syscall.Errno); pok {
    								expectErrno = uintptr(errno)
    							}
    						}
    Go
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Thu Apr 11 17:45:28 GMT 2024
    - 66.7K bytes
    - Viewed (0)
  2. cmd/xl-storage-errors.go

    	if runtime.GOOS != globalWindowsOSName {
    		return false
    	}
    	// Check if err contains ERROR_INVALID_HANDLE errno
    	var pathErr *os.PathError
    	if errors.As(err, &pathErr) {
    		var errno syscall.Errno
    		if errors.As(pathErr.Err, &errno) {
    			// ERROR_PATH_NOT_FOUND
    			return errno == 0x6
    		}
    	}
    	return false
    }
    
    func isSysErrCrossDevice(err error) bool {
    	return errors.Is(err, syscall.EXDEV)
    }
    
    Go
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Mon Mar 06 16:56:29 GMT 2023
    - 3.8K bytes
    - Viewed (0)
  3. cmd/xl-storage-errors_test.go

    			t.Fatalf("Unexpected error expecting %s", syscall.ENOTEMPTY)
    		}
    	} else {
    		pathErr = &os.PathError{Err: syscall.Errno(0x91)}
    		ok = isSysErrNotEmpty(pathErr)
    		if !ok {
    			t.Fatal("Unexpected error expecting 0x91")
    		}
    	}
    	if runtime.GOOS == globalWindowsOSName {
    		pathErr = &os.PathError{Err: syscall.Errno(0x03)}
    		ok = isSysErrPathNotFound(pathErr)
    		if !ok {
    			t.Fatal("Unexpected error expecting 0x03")
    		}
    	}
    Go
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Fri Apr 23 18:58:53 GMT 2021
    - 1.7K bytes
    - Viewed (0)
  4. internal/lock/lock_windows.go

    	lockFileExclusiveLock   = 2
    	lockFileFailImmediately = 1
    
    	// see https://msdn.microsoft.com/en-us/library/windows/desktop/ms681382(v=vs.85).aspx
    	errLockViolation syscall.Errno = 0x21
    )
    
    // lockedOpenFile is an internal function.
    func lockedOpenFile(path string, flag int, perm os.FileMode, lockType uint32) (*LockedFile, error) {
    	f, err := Open(path, flag, perm)
    	if err != nil {
    Go
    - Registered: Sun Apr 21 19:28:08 GMT 2024
    - Last Modified: Wed Oct 18 18:08:15 GMT 2023
    - 7.9K bytes
    - Viewed (0)
Back to top