Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 644 for newsize (0.27 sec)

  1. src/os/user/cgo_lookup_unix.go

    			// not ERANGE, on buffer overflow.
    		} else if errno != syscall.ERANGE {
    			return errno
    		}
    		newSize := len(buf) * 2
    		if !isSizeReasonable(int64(newSize)) {
    			return fmt.Errorf("internal buffer exceeds %d bytes", maxBufferSize)
    		}
    		buf = make([]byte, newSize)
    	}
    }
    
    const maxBufferSize = 1 << 20
    
    func isSizeReasonable(sz int64) bool {
    	return sz > 0 && sz <= maxBufferSize
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Jun 11 17:08:14 UTC 2024
    - 5.2K bytes
    - Viewed (0)
  2. plugin/pkg/admission/storage/persistentvolume/resize/admission.go

    		return nil
    	}
    	oldPvc, ok := a.GetOldObject().(*api.PersistentVolumeClaim)
    	if !ok {
    		return nil
    	}
    
    	oldSize := oldPvc.Spec.Resources.Requests[api.ResourceStorage]
    	newSize := pvc.Spec.Resources.Requests[api.ResourceStorage]
    
    	if newSize.Cmp(oldSize) <= 0 {
    		return nil
    	}
    
    	if oldPvc.Status.Phase != api.ClaimBound {
    		return admission.NewForbidden(a, fmt.Errorf("Only bound persistent volume claims can be expanded"))
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Aug 20 15:11:00 UTC 2019
    - 3.9K bytes
    - Viewed (0)
  3. pkg/volume/csi/csi_client_test.go

    		volID      string
    		volumePath string
    		newSize    resource.Quantity
    		mustFail   bool
    		err        error
    	}{
    		{
    			name:       "with all correct values",
    			volID:      "vol-abcde",
    			volumePath: "/foo/bar",
    			newSize:    resource.MustParse("10Gi"),
    			mustFail:   false,
    		},
    		{
    			name:       "with missing volume-id",
    			volumePath: "/foo/bar",
    			newSize:    resource.MustParse("10Gi"),
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Apr 24 18:25:29 UTC 2024
    - 33.9K bytes
    - Viewed (0)
  4. src/runtime/stack.go

    		used := gp.stack.hi - gp.sched.sp
    		for newsize-used < needed {
    			newsize *= 2
    		}
    	}
    
    	if stackguard0 == stackForceMove {
    		// Forced stack movement used for debugging.
    		// Don't double the stack (or we may quickly run out
    		// if this is done repeatedly).
    		newsize = oldsize
    	}
    
    	if newsize > maxstacksize || newsize > maxstackceiling {
    		if maxstacksize < maxstackceiling {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 22 22:31:00 UTC 2024
    - 41.1K bytes
    - Viewed (0)
  5. android/guava/src/com/google/common/collect/ObjectCountHashMap.java

        if (newEntryIndex == Integer.MAX_VALUE) {
          throw new IllegalStateException("Cannot contain more than Integer.MAX_VALUE elements!");
        }
        int newSize = newEntryIndex + 1;
        resizeMeMaybe(newSize);
        insertEntry(newEntryIndex, key, value, hash);
        this.size = newSize;
        if (newEntryIndex >= threshold) {
          resizeTable(2 * table.length);
        }
        modCount++;
        return 0;
      }
    
      /**
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Tue Jun 01 22:07:10 UTC 2021
    - 15K bytes
    - Viewed (0)
  6. android/guava/src/com/google/common/collect/CompactHashSet.java

        int newSize = newEntryIndex + 1;
        int hash = smearedHash(object);
        int mask = hashTableMask();
        int tableIndex = hash & mask;
        int next = CompactHashing.tableGet(requireTable(), tableIndex);
        if (next == UNSET) { // uninitialized bucket
          if (newSize > mask) {
            // Resize and add new entry
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Tue May 28 18:11:09 UTC 2024
    - 24K bytes
    - Viewed (0)
  7. pkg/volume/csi/expander.go

    		}
    	}
    
    	opts := csiResizeOptions{
    		volumePath:        resizeOptions.DeviceMountPath,
    		stagingTargetPath: resizeOptions.DeviceStagePath,
    		volumeID:          csiSource.VolumeHandle,
    		newSize:           resizeOptions.NewSize,
    		fsType:            csiSource.FSType,
    		accessMode:        api.ReadWriteOnce,
    		mountOptions:      pv.Spec.MountOptions,
    		secrets:           nodeExpandSecrets,
    	}
    
    	if !fsVolume {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Jan 31 17:23:56 UTC 2024
    - 4.6K bytes
    - Viewed (0)
  8. src/sync/poolqueue.go

    		return
    	}
    
    	// The current dequeue is full. Allocate a new one of twice
    	// the size.
    	newSize := len(d.vals) * 2
    	if newSize >= dequeueLimit {
    		// Can't make it any bigger.
    		newSize = dequeueLimit
    	}
    
    	d2 := &poolChainElt{}
    	d2.prev.Store(d)
    	d2.vals = make([]eface, newSize)
    	c.head = d2
    	d.next.Store(d2)
    	d2.pushHead(val)
    }
    
    func (c *poolChain) popHead() (any, bool) {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Feb 26 18:12:29 UTC 2024
    - 8.3K bytes
    - Viewed (0)
  9. guava/src/com/google/common/collect/CompactHashSet.java

        int newSize = newEntryIndex + 1;
        int hash = smearedHash(object);
        int mask = hashTableMask();
        int tableIndex = hash & mask;
        int next = CompactHashing.tableGet(requireTable(), tableIndex);
        if (next == UNSET) { // uninitialized bucket
          if (newSize > mask) {
            // Resize and add new entry
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Tue May 28 18:11:09 UTC 2024
    - 24.9K bytes
    - Viewed (0)
  10. pkg/volume/util/operationexecutor/node_expander.go

    // testResponseData is merely used for doing sanity checks in unit tests
    type testResponseData struct {
    	// indicates that resize operation was called on underlying volume driver
    	// mainly useful for testing.
    	resizeCalledOnPlugin bool
    
    	// Indicates whether kubelet should assume resize operation as finished.
    	// For kubelet - resize operation could be assumed as finished even if
    	// actual resizing is *not* finished. This can happen, because certain prechecks
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Jul 17 19:30:35 UTC 2023
    - 5.9K bytes
    - Viewed (0)
Back to top