Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 316 for newsize (0.21 sec)

  1. pkg/volume/flexvolume/expander.go

    func (plugin *flexVolumePlugin) ExpandVolumeDevice(spec *volume.Spec, newSize resource.Quantity, oldSize resource.Quantity) (resource.Quantity, error) {
    	call := plugin.NewDriverCall(expandVolumeCmd)
    	call.AppendSpec(spec, plugin.host, nil)
    
    	devicePath, err := plugin.getDeviceMountPath(spec)
    	if err != nil {
    		return newSize, err
    	}
    	call.Append(devicePath)
    	call.Append(strconv.FormatInt(newSize.Value(), 10))
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Mar 08 14:21:44 UTC 2019
    - 2.2K bytes
    - Viewed (0)
  2. pkg/volume/csi/expander_test.go

    					Name:      tc.secret.Name,
    					Namespace: tc.secret.Namespace,
    				}
    			}
    
    			newSize, _ := resource.ParseQuantity("20Gi")
    
    			resizeOptions := volume.NodeResizeOptions{
    				VolumeSpec:      spec,
    				NewSize:         newSize,
    				DeviceMountPath: "/foo/bar",
    				DeviceStagePath: "/foo/bar",
    				DevicePath:      "/mnt/foobar",
    			}
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Nov 01 03:58:36 UTC 2023
    - 6.6K bytes
    - Viewed (0)
  3. pkg/volume/flexvolume/expander-defaults.go

    }
    
    func (e *expanderDefaults) ExpandVolumeDevice(spec *volume.Spec, newSize resource.Quantity, oldSize resource.Quantity) (resource.Quantity, error) {
    	klog.Warning(logPrefix(e.plugin), "using default expand for volume ", spec.Name(), ", to size ", newSize, " from ", oldSize)
    	return newSize, nil
    }
    
    // the defaults for NodeExpand return a generic resize indicator that will trigger the operation executor to go ahead with
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sat May 16 11:54:27 UTC 2020
    - 2K bytes
    - Viewed (0)
  4. okhttp/src/main/kotlin/okhttp3/internal/ws/MessageDeflater.kt

        deflaterSink.write(buffer, buffer.size)
        deflaterSink.flush()
    
        if (deflatedBytes.endsWith(EMPTY_DEFLATE_BLOCK)) {
          val newSize = deflatedBytes.size - LAST_OCTETS_COUNT_TO_REMOVE_AFTER_DEFLATION
          deflatedBytes.readAndWriteUnsafe().use { cursor ->
            cursor.resizeBuffer(newSize)
          }
        } else {
          // Same as adding EMPTY_DEFLATE_BLOCK and then removing 4 bytes.
          deflatedBytes.writeByte(0x00)
        }
    
    Registered: Sun Jun 16 04:42:17 UTC 2024
    - Last Modified: Mon Jan 08 01:13:22 UTC 2024
    - 2.1K bytes
    - Viewed (0)
  5. staging/src/k8s.io/apiserver/pkg/storage/value/encrypt/envelope/kmsv2/cache_test.go

    		}
    		if _, loaded := record.LoadOrStore(size, nil); loaded {
    			t.Errorf("detected duplicated cache size metric for %d", size)
    		}
    		newSize := uint64(size)
    		oldSize := cacheSize.Swap(newSize)
    		if oldSize > newSize {
    			t.Errorf("cache size decreased from %d to %d", oldSize, newSize)
    		}
    	}
    	transformer := &envelopeTransformer{}
    
    	want := sets.NewInt()
    	startCh := make(chan struct{})
    	wg := sync.WaitGroup{}
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Aug 31 20:26:58 UTC 2023
    - 4.9K bytes
    - Viewed (0)
  6. pkg/volume/noop_expandable_plugin.go

    	spec *Spec
    }
    
    var _ ExpandableVolumePlugin = &noopExpandableVolumePluginInstance{}
    
    func (n *noopExpandableVolumePluginInstance) ExpandVolumeDevice(spec *Spec, newSize resource.Quantity, oldSize resource.Quantity) (resource.Quantity, error) {
    	return newSize, nil
    }
    
    func (n *noopExpandableVolumePluginInstance) Init(host VolumeHost) error {
    	return nil
    }
    
    func (n *noopExpandableVolumePluginInstance) GetPluginName() string {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue May 14 06:17:25 UTC 2024
    - 2.2K bytes
    - Viewed (0)
  7. platforms/core-runtime/serialization/src/test/groovy/org/gradle/internal/serialize/HierarchicalNameSerializerTest.groovy

            names.each {
                result << deserializer.read(decoder)
            }
    
            then:
            result == names
            int originalSize = names.sum {it.length() } as int
            int newSize = bytes.length
            newSize < originalSize / 2
    
            where:
            names = [
                "com/foo/bar/FooBarTest.java",
                "com.foo.bar.FooBarTest",
                "com/foo/bar/FooBarBazTest.java",
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Apr 15 16:06:56 UTC 2024
    - 2.6K bytes
    - Viewed (0)
  8. 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)
  9. 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)
  10. 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)
Back to top