Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 644 for newsize (0.13 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/util/resize_util.go

    func MarkResizeFinished(
    	pvc *v1.PersistentVolumeClaim,
    	newSize resource.Quantity,
    	kubeClient clientset.Interface) (*v1.PersistentVolumeClaim, error) {
    	return MarkFSResizeFinished(pvc, newSize, kubeClient)
    }
    
    // MarkFSResizeFinished marks file system resizing as done
    func MarkFSResizeFinished(
    	pvc *v1.PersistentVolumeClaim,
    	newSize resource.Quantity,
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Jul 17 19:30:35 UTC 2023
    - 14.8K bytes
    - Viewed (0)
  7. pkg/volume/csi/csi_client.go

    	if c.nodeV1ClientCreator == nil {
    		return opts.newSize, fmt.Errorf("version of CSI driver does not support volume expansion")
    	}
    
    	if opts.volumeID == "" {
    		return opts.newSize, errors.New("missing volume id")
    	}
    	if opts.volumePath == "" {
    		return opts.newSize, errors.New("missing volume path")
    	}
    
    	if opts.newSize.Value() < 0 {
    		return opts.newSize, errors.New("size can not be less than 0")
    	}
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Sep 20 10:15:36 UTC 2022
    - 22.1K bytes
    - Viewed (0)
  8. 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)
  9. 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)
  10. pkg/volume/portworx/portworx.go

    	spec *volume.Spec,
    	newSize resource.Quantity,
    	oldSize resource.Quantity) (resource.Quantity, error) {
    	klog.V(4).Infof("Expanding: %s from %v to %v", spec.Name(), oldSize, newSize)
    	err := plugin.util.ResizeVolume(spec, newSize, plugin.host)
    	if err != nil {
    		return oldSize, err
    	}
    
    	klog.V(4).Infof("Successfully resized %s to %v", spec.Name(), newSize)
    	return newSize, nil
    }
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue May 14 06:17:25 UTC 2024
    - 13.6K bytes
    - Viewed (0)
Back to top