Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 27 for avail (0.69 sec)

  1. internal/ringbuffer/ring_buffer.go

    }
    
    func (r *RingBuffer) write(p []byte) (n int, err error) {
    	if r.isFull {
    		return 0, ErrIsFull
    	}
    
    	var avail int
    	if r.w >= r.r {
    		avail = r.size - r.w + r.r
    	} else {
    		avail = r.r - r.w
    	}
    
    	if len(p) > avail {
    		err = ErrTooMuchDataToWrite
    		p = p[:avail]
    	}
    	n = len(p)
    
    	if r.w >= r.r {
    		c1 := r.size - r.w
    		if c1 >= n {
    			copy(r.buf[r.w:], p)
    			r.w += n
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Wed May 15 00:11:04 UTC 2024
    - 13.3K bytes
    - Viewed (0)
  2. src/bufio/bufio.go

    	}
    
    	if n > len(b.buf) {
    		return b.buf[b.r:b.w], ErrBufferFull
    	}
    
    	// 0 <= n <= len(b.buf)
    	var err error
    	if avail := b.w - b.r; avail < n {
    		// not enough data in buffer
    		n = avail
    		err = b.readErr()
    		if err == nil {
    			err = ErrBufferFull
    		}
    	}
    	return b.buf[b.r : b.r+n], err
    }
    
    Registered: Tue Nov 05 11:13:11 UTC 2024
    - Last Modified: Thu Oct 12 14:39:08 UTC 2023
    - 21.8K bytes
    - Viewed (0)
  3. cmd/erasure-server-pool.go

    		if zinfo == nil {
    			serverPools[i] = poolAvailableSpace{Index: i}
    			continue
    		}
    		var available uint64
    		if !isMinioMetaBucketName(bucket) {
    			if avail, err := hasSpaceFor(zinfo, size); err != nil || !avail {
    				serverPools[i] = poolAvailableSpace{Index: i}
    				continue
    			}
    		}
    		var maxUsedPct int
    		for _, disk := range zinfo {
    			if disk == nil || disk.Total == 0 {
    				continue
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Sun Sep 29 22:40:36 UTC 2024
    - 89.8K bytes
    - Viewed (0)
  4. src/main/java/jcifs/smb/SmbTransportImpl.java

                    CommonServerMessageBlockRequest next = chain.getNext();
                    if ( log.isTraceEnabled() ) {
                        log.trace(
                            String.format("%s costs %d avail %d (%s)", chain.getClass().getName(), cost, this.credits.availablePermits(), this.name));
                    }
    Registered: Sun Nov 03 00:10:13 UTC 2024
    - Last Modified: Wed Jan 18 23:47:00 UTC 2023
    - 67K bytes
    - Viewed (0)
  5. src/main/resources/fess_indices/fess/fr/stopwords.txt

    fussiez
    fussent
    ayant
    eu
    eue
    eues
    eus
    ai
    as
    avons
    avez
    ont
    aurai
    auras
    aura
    aurons
    aurez
    auront
    aurais
    aurait
    aurions
    auriez
    auraient
    avais
    avait
    avions
    aviez
    avaient
    eut
    eûmes
    eûtes
    eurent
    aie
    aies
    ait
    ayons
    ayez
    aient
    eusse
    eusses
    eût
    eussions
    eussiez
    eussent
    ceci
    cela
    celà
    Registered: Thu Oct 31 13:40:30 UTC 2024
    - Last Modified: Mon Nov 27 12:59:36 UTC 2023
    - 977 bytes
    - Viewed (0)
  6. internal/disk/stat_bsd.go

    	s := syscall.Statfs_t{}
    	err = syscall.Statfs(path, &s)
    	if err != nil {
    		return Info{}, err
    	}
    	reservedBlocks := s.Bfree - s.Bavail
    	info = Info{
    		Total:  uint64(s.Bsize) * (s.Blocks - reservedBlocks),
    		Free:   uint64(s.Bsize) * s.Bavail,
    		Files:  s.Files,
    		Ffree:  s.Ffree,
    		FSType: getFSType(s.Fstypename[:]),
    	}
    	if info.Free > info.Total {
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Mon Feb 26 19:34:50 UTC 2024
    - 1.7K bytes
    - Viewed (0)
  7. internal/disk/stat_netbsd.go

    	s := unix.Statvfs_t{}
    	if err = unix.Statvfs(path, &s); err != nil {
    		return Info{}, err
    	}
    	reservedBlocks := uint64(s.Bfree) - uint64(s.Bavail)
    	info = Info{
    		Total:  uint64(s.Frsize) * (uint64(s.Blocks) - reservedBlocks),
    		Free:   uint64(s.Frsize) * uint64(s.Bavail),
    		Files:  uint64(s.Files),
    		Ffree:  uint64(s.Ffree),
    		FSType: string(s.Fstypename[:]),
    	}
    	if info.Free > info.Total {
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Mon Feb 26 19:34:50 UTC 2024
    - 1.8K bytes
    - Viewed (0)
  8. internal/disk/stat_linux_32bit.go

    	s := syscall.Statfs_t{}
    	err = syscall.Statfs(path, &s)
    	if err != nil {
    		return Info{}, err
    	}
    	reservedBlocks := s.Bfree - s.Bavail
    	info = Info{
    		Total:  uint64(s.Frsize) * (s.Blocks - reservedBlocks),
    		Free:   uint64(s.Frsize) * s.Bavail,
    		Files:  s.Files,
    		Ffree:  s.Ffree,
    		FSType: getFSType(s.Type),
    	}
    	// Check for overflows.
    	// https://github.com/minio/minio/issues/8035
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Mon Feb 26 19:34:50 UTC 2024
    - 2.6K bytes
    - Viewed (0)
  9. internal/disk/stat_freebsd.go

    	s := syscall.Statfs_t{}
    	err = syscall.Statfs(path, &s)
    	if err != nil {
    		return Info{}, err
    	}
    	reservedBlocks := s.Bfree - uint64(s.Bavail)
    	info = Info{
    		Total:  uint64(s.Bsize) * (s.Blocks - reservedBlocks),
    		Free:   uint64(s.Bsize) * uint64(s.Bavail),
    		Files:  s.Files,
    		Ffree:  uint64(s.Ffree),
    		FSType: getFSType(s.Fstypename[:]),
    	}
    	if info.Free > info.Total {
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Mon Feb 26 19:34:50 UTC 2024
    - 1.7K bytes
    - Viewed (0)
  10. internal/disk/stat_solaris.go

    	s := unix.Statvfs_t{}
    	if err = unix.Statvfs(path, &s); err != nil {
    		return Info{}, err
    	}
    	reservedBlocks := uint64(s.Bfree) - uint64(s.Bavail)
    	info = Info{
    		Total:  uint64(s.Frsize) * (uint64(s.Blocks) - reservedBlocks),
    		Free:   uint64(s.Frsize) * uint64(s.Bavail),
    		Files:  uint64(s.Files),
    		Ffree:  uint64(s.Ffree),
    		FSType: getFSType(s.Fstr[:]),
    	}
    	if info.Free > info.Total {
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Mon Feb 26 19:34:50 UTC 2024
    - 1.8K bytes
    - Viewed (0)
Back to top