Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 245 for selain (0.2 sec)

  1. pkg/controller/statefulset/stateful_set_utils.go

    	policy := getPersistentVolumeClaimRetentionPolicy(set)
    	const retain = apps.RetainPersistentVolumeClaimRetentionPolicyType
    	if policy.WhenScaled == retain && policy.WhenDeleted == retain {
    		// On a retain policy, it's not a problem for different controller to be managing the claims.
    		return false
    	}
    	for _, ownerRef := range claim.GetOwnerReferences() {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Jun 05 19:06:41 UTC 2024
    - 26.7K bytes
    - Viewed (0)
  2. src/internal/poll/sendfile_linux.go

    	if err := dstFD.pd.prepareWrite(dstFD.isFile); err != nil {
    		return 0, err, false
    	}
    
    	dst := dstFD.Sysfd
    	for remain > 0 {
    		n := maxSendfileSize
    		if int64(n) > remain {
    			n = int(remain)
    		}
    		n, err = syscall.Sendfile(dst, src, nil, n)
    		if n > 0 {
    			written += int64(n)
    			remain -= int64(n)
    			continue
    		} else if err != syscall.EAGAIN && err != syscall.EINTR {
    			// This includes syscall.ENOSYS (no kernel
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Apr 26 18:12:56 UTC 2024
    - 1.4K bytes
    - Viewed (0)
  3. src/os/zero_copy_linux.go

    	}
    
    	written, handled, err = pollSplice(&f.pfd, pfd, remain)
    
    	if lr != nil {
    		lr.N = remain - written
    	}
    
    	return written, handled, wrapSyscallError("splice", err)
    }
    
    func (f *File) copyFileRange(r io.Reader) (written int64, handled bool, err error) {
    	var (
    		remain int64
    		lr     *io.LimitedReader
    	)
    	if lr, r, remain = tryLimitedReader(r); remain <= 0 {
    		return 0, true, nil
    	}
    
    	var src *File
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Apr 26 18:12:56 UTC 2024
    - 4.6K bytes
    - Viewed (0)
  4. src/net/sendfile_linux.go

    //
    // if handled == false, sendFile performed no work.
    func sendFile(c *netFD, r io.Reader) (written int64, err error, handled bool) {
    	var remain int64 = 1<<63 - 1 // by default, copy until EOF
    
    	lr, ok := r.(*io.LimitedReader)
    	if ok {
    		remain, r = lr.N, lr.R
    		if remain <= 0 {
    			return 0, nil, true
    		}
    	}
    	f, ok := r.(*os.File)
    	if !ok {
    		return 0, nil, false
    	}
    
    	sc, err := f.SyscallConn()
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Apr 26 18:12:56 UTC 2024
    - 1.2K bytes
    - Viewed (0)
  5. src/net/sendfile_unix_alt.go

    	// loop back to the beginning ad nauseam until it's sent
    	// exactly the number of bytes told to. As such, we need to
    	// know exactly how many bytes to send.
    	var remain int64 = 0
    
    	lr, ok := r.(*io.LimitedReader)
    	if ok {
    		remain, r = lr.N, lr.R
    		if remain <= 0 {
    			return 0, nil, true
    		}
    	}
    	// r might be an *os.File or an os.fileWithoutWriteTo.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Apr 26 18:12:56 UTC 2024
    - 2.3K bytes
    - Viewed (0)
  6. src/internal/poll/sendfile_bsd.go

    		return 0, err, false
    	}
    
    	dst := dstFD.Sysfd
    	for remain > 0 {
    		n := maxSendfileSize
    		if int64(n) > remain {
    			n = int(remain)
    		}
    		pos1 := pos
    		n, err = syscall.Sendfile(dst, src, &pos1, n)
    		if n > 0 {
    			pos += int64(n)
    			written += int64(n)
    			remain -= int64(n)
    		}
    		if err == syscall.EINTR {
    			continue
    		}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Apr 26 18:12:56 UTC 2024
    - 1.5K bytes
    - Viewed (0)
  7. src/internal/poll/sendfile_solaris.go

    	}
    
    	dst := dstFD.Sysfd
    	for remain > 0 {
    		n := maxSendfileSize
    		if int64(n) > remain {
    			n = int(remain)
    		}
    		pos1 := pos
    		n, err = syscall.Sendfile(dst, src, &pos1, n)
    		if err == syscall.EAGAIN || err == syscall.EINTR {
    			// partial write may have occurred
    			n = int(pos1 - pos)
    		}
    		if n > 0 {
    			pos += int64(n)
    			written += int64(n)
    			remain -= int64(n)
    			continue
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Apr 26 18:12:56 UTC 2024
    - 1.8K bytes
    - Viewed (0)
  8. platforms/core-runtime/wrapper-main/src/executable/resources/META-INF/LICENSE

          editorial revisions, annotations, elaborations, or other modifications
          represent, as a whole, an original work of authorship. For the purposes
          of this License, Derivative Works shall not include works that remain
          separable from, or merely link (or bind by name) to the interfaces of,
          the Work and Derivative Works thereof.
    
          "Contribution" shall mean any work of authorship, including
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu May 23 05:54:32 UTC 2024
    - 9.9K bytes
    - Viewed (0)
  9. src/encoding/binary/binary_test.go

    			})
    			if allocs != 0 {
    				t.Fatalf("Expected no allocations, got %v", allocs)
    			}
    		})
    	}
    }
    
    type byteSliceReader struct {
    	remain []byte
    }
    
    func (br *byteSliceReader) Read(p []byte) (int, error) {
    	n := copy(p, br.remain)
    	br.remain = br.remain[n:]
    	return n, nil
    }
    
    func BenchmarkReadSlice1000Int32s(b *testing.B) {
    	bsr := &byteSliceReader{}
    	slice := make([]int32, 1000)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon May 20 19:16:18 UTC 2024
    - 25.4K bytes
    - Viewed (0)
  10. internal/ioutil/ioutil.go

    		}
    
    		buf = buf[:nr]
    		var (
    			n  int
    			un int
    			nw int64
    		)
    
    		remain := len(buf) % DirectioAlignSize
    		if remain == 0 {
    			// buf is aligned for directio write()
    			n, err = w.Write(buf)
    			nw = int64(n)
    		} else {
    			if remain < len(buf) {
    				n, err = w.Write(buf[:len(buf)-remain])
    				if err != nil {
    					return written, err
    				}
    				nw = int64(n)
    			}
    
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Wed May 22 23:07:14 UTC 2024
    - 10.2K bytes
    - Viewed (0)
Back to top