Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 35 for position (0.18 sec)

  1. cmd/os_unix.go

    			}
    			return osErrToFileErr(err)
    		}
    
    	}
    	defer syscall.Close(fd)
    
    	bufp := direntPool.Get().(*[]byte)
    	defer direntPool.Put(bufp)
    	buf := *bufp
    
    	boff := 0 // starting read position in buf
    	nbuf := 0 // end valid data in buf
    
    	for {
    		if boff >= nbuf {
    			boff = 0
    			stop := globalOSMetrics.time(osMetricReadDirent)
    			nbuf, err = syscall.ReadDirent(fd, buf)
    			stop()
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Thu Jan 18 07:03:17 GMT 2024
    - 9.3K bytes
    - Viewed (0)
  2. cmd/namespace-lock_test.go

    import (
    	"context"
    	"runtime"
    	"testing"
    	"time"
    )
    
    // WARNING:
    //
    // Expected source line number is hard coded, 35, in the
    // following test. Adding new code before this test or changing its
    // position will cause the line number to change and the test to FAIL
    // Tests getSource().
    func TestGetSource(t *testing.T) {
    	currentSource := func() string { return getSource(2) }
    	gotSource := currentSource()
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Fri Apr 23 18:58:53 GMT 2021
    - 3.1K bytes
    - Viewed (0)
  3. cmd/erasure-server-pool-decom.go

    			return false, fmt.Errorf("pool(%s) = %s is decommissioned, please remove from server command line", humanize.Ordinal(pi.position+1), k)
    		}
    	}
    
    	if len(specifiedPools) == len(rememberedPools) {
    		for k, pi := range rememberedPools {
    			pos, ok := specifiedPools[k]
    			if ok && pos != pi.position {
    				update = true // pool order is changing, its okay to allow it.
    			}
    		}
    	}
    
    	if !update {
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Wed May 01 15:18:21 GMT 2024
    - 41.5K bytes
    - Viewed (1)
  4. internal/s3select/csv/record.go

    		// Check if index.
    		if strings.HasPrefix(name, "_") {
    			idx, err := strconv.Atoi(strings.TrimPrefix(name, "_"))
    			if err != nil {
    				return nil, fmt.Errorf("column %v not found", name)
    			}
    			// The position count starts at 1.
    			idx--
    			if idx >= len(r.csvRecord) || idx < 0 {
    				// If field index > number of columns, return null
    				return sql.FromNull(), nil
    			}
    			return sql.FromBytes([]byte(r.csvRecord[idx])), nil
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Tue Sep 13 00:00:59 GMT 2022
    - 4.1K bytes
    - Viewed (0)
  5. cmd/storage-datatypes.go

    	NumVersions      int       `msg:"nv"`
    	SuccessorModTime time.Time `msg:"smt"`
    
    	Fresh bool `msg:"fr"` // indicates this is a first time call to write FileInfo.
    
    	// Position of this version or object in a multi-object delete call,
    	// no other caller must set this value other than multi-object delete call.
    	// usage in other calls in undefined please avoid.
    	Idx int `msg:"i"`
    
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Tue Apr 23 17:15:52 GMT 2024
    - 15.3K bytes
    - Viewed (0)
  6. cmd/common-main.go

    		return nil, err
    	}
    	return ekvs, nil
    }
    
    func readFromSecret(sp string) (string, error) {
    	// Supports reading path from docker secrets, filename is
    	// relative to /run/secrets/ position.
    	if isFile(pathJoin("/run/secrets/", sp)) {
    		sp = pathJoin("/run/secrets/", sp)
    	}
    	credBuf, err := os.ReadFile(sp)
    	if err != nil {
    		if os.IsNotExist(err) { // ignore if file doesn't exist.
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Sat May 04 00:17:57 GMT 2024
    - 35.8K bytes
    - Viewed (2)
  7. code_of_conduct.md

    nationality, personal appearance, race, religion, or sexual identity and
    orientation.
    
    ## Our Standards
    
    Examples of behavior that contributes to creating a positive environment
    include:
    
    * Using welcoming and inclusive language
    * Being respectful of differing viewpoints and experiences
    * Gracefully accepting constructive criticism
    * Focusing on what is best for the community
    Plain Text
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Mon Jan 20 18:38:58 GMT 2020
    - 3.5K bytes
    - Viewed (0)
  8. internal/dsync/dsync-server_test.go

    		nodes[i] = httptest.NewServer(router)
    	}
    }
    
    const WriteLock = -1
    
    type lockServer struct {
    	mutex sync.Mutex
    	// Map of locks, with negative value indicating (exclusive) write lock
    	// and positive values indicating number of read locks
    	lockMap map[string]int64
    
    	// Refresh returns lock not found if set to true
    	lockNotFound bool
    
    	// Set to true if you want peers servers to do not respond
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Mon Jan 23 16:46:37 GMT 2023
    - 8.3K bytes
    - Viewed (0)
  9. internal/lock/lock_windows.go

    	}
    
    	err := lockFileEx(fd, flags, 1, 0, &syscall.Overlapped{})
    	if err == nil || err == errLockViolation {
    		return nil
    	}
    	if err.Error() == "The process cannot access the file because another process has locked a portion of the file." {
    		return ErrAlreadyLocked
    	}
    	return err
    }
    
    func lockFileEx(h syscall.Handle, flags, locklow, lockhigh uint32, ol *syscall.Overlapped) (err error) {
    	reserved := uint32(0)
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Wed Oct 18 18:08:15 GMT 2023
    - 7.9K bytes
    - Viewed (0)
  10. cmd/format-erasure.go

    				len(reference.Erasure.Sets[i]), len(format.Erasure.Sets[i]))
    		}
    		for j := range reference.Erasure.Sets[i] {
    			if reference.Erasure.Sets[i][j] != format.Erasure.Sets[i][j] {
    				return fmt.Errorf("UUID on positions %d:%d do not match with, expected %s got %s: (%w)",
    					i, j, reference.Erasure.Sets[i][j], format.Erasure.Sets[i][j], errInconsistentDisk)
    			}
    		}
    	}
    
    	// Make sure that the diskID is found in the set.
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Fri May 03 15:54:03 GMT 2024
    - 23.2K bytes
    - Viewed (0)
Back to top