Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 5 of 5 for lockType (0.12 sec)

  1. internal/lock/lock_solaris.go

    func lockedOpenFile(path string, flag int, perm os.FileMode, rlockType int) (*LockedFile, error) {
    	var lockType int16
    	switch flag {
    	case syscall.O_RDONLY:
    		lockType = syscall.F_RDLCK
    	case syscall.O_WRONLY:
    		fallthrough
    	case syscall.O_RDWR:
    		fallthrough
    	case syscall.O_WRONLY | syscall.O_CREAT:
    		fallthrough
    	case syscall.O_RDWR | syscall.O_CREAT:
    		lockType = syscall.F_WRLCK
    	default:
    		return nil, &os.PathError{
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Sun Jan 02 17:15:06 UTC 2022
    - 2.8K bytes
    - Viewed (0)
  2. internal/lock/lock_windows.go

    	var lockType uint32 = lockFileFailImmediately | lockFileExclusiveLock
    	if flag == syscall.O_RDONLY {
    		// https://docs.microsoft.com/en-us/windows/desktop/api/fileapi/nf-fileapi-lockfileex
    		//lint:ignore SA4016 Reasons
    		lockType = lockFileFailImmediately // Set this to enable shared lock and fail immediately.
    	}
    	return lockedOpenFile(path, flag, perm, lockType)
    }
    
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Wed Oct 18 18:08:15 UTC 2023
    - 7.9K bytes
    - Viewed (0)
  3. cmd/admin-handlers_test.go

    			Locks: locksHeld,
    		})
    	}
    	var exp madmin.LockEntries
    	for _, lri := range lris {
    		lockType := func(lri lockRequesterInfo) string {
    			if lri.Writer {
    				return "WRITE"
    			}
    			return "READ"
    		}
    		exp = append(exp, madmin.LockEntry{
    			Resource:   lri.Name,
    			Type:       lockType(lri),
    			ServerList: owners,
    			Owner:      lri.Owner,
    			ID:         lri.UID,
    			Quorum:     lri.Quorum,
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Wed Jul 24 10:24:01 UTC 2024
    - 13.9K bytes
    - Viewed (0)
  4. internal/dsync/drwmutex.go

    		// quorum + 1 when tolerance is exactly half of the
    		// total locker clients.
    		if quorum == tolerance {
    			quorum++
    		}
    	}
    
    	log("lockBlocking %s/%s for %#v: lockType readLock(%t), additional opts: %#v, quorum: %d, tolerance: %d, lockClients: %d\n", id, source, dm.Names, isReadLock, opts, quorum, tolerance, len(restClnts))
    
    	tolerance = len(restClnts) - quorum
    	attempt := uint(0)
    
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Mon Sep 09 15:49:49 UTC 2024
    - 20.4K bytes
    - Viewed (0)
  5. api/go1.1.txt

    pkg syscall (windows-386), type AddrinfoW struct, Next *AddrinfoW
    pkg syscall (windows-386), type AddrinfoW struct, Protocol int32
    pkg syscall (windows-386), type AddrinfoW struct, Socktype int32
    pkg syscall (windows-386), type GUID struct
    pkg syscall (windows-386), type GUID struct, Data1 uint32
    pkg syscall (windows-386), type GUID struct, Data2 uint16
    Registered: Tue Nov 05 11:13:11 UTC 2024
    - Last Modified: Thu Mar 31 20:37:15 UTC 2022
    - 2.6M bytes
    - Viewed (0)
Back to top