Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 166 for newsize (0.48 sec)

  1. android/guava/src/com/google/common/collect/CompactHashMap.java

        int newSize = newEntryIndex + 1;
        int hash = smearedHash(key);
        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
    - 35.8K bytes
    - Viewed (0)
  2. pkg/volume/util/operationexecutor/node_expander_test.go

    				pv:                 pv,
    				volumePlugin:       fakePlugin,
    				vmt:                vmt,
    				actualStateOfWorld: nil,
    				pluginResizeOpts: volume.NodeResizeOptions{
    					VolumeSpec: vmt.VolumeSpec,
    					NewSize:    *desiredSize,
    					OldSize:    *actualSize,
    				},
    			}
    			ogInstance, _ := og.(*operationGenerator)
    			nodeExpander := newNodeExpander(resizeOp, ogInstance.kubeClient, ogInstance.recorder)
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Apr 24 18:25:29 UTC 2024
    - 5.7K bytes
    - Viewed (0)
  3. src/runtime/iface.go

    	newN = 1 << sys.Len64(uint64(newN-1)) // round up to a power of 2
    
    	// Allocate the new table.
    	newSize := unsafe.Sizeof(abi.TypeAssertCache{}) + uintptr(newN-1)*unsafe.Sizeof(abi.TypeAssertCacheEntry{})
    	newC := (*abi.TypeAssertCache)(mallocgc(newSize, nil, true))
    	newC.Mask = uintptr(newN - 1)
    	newEntries := unsafe.Slice(&newC.Entries[0], newN)
    
    	// Fill the new table.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 29 17:58:53 UTC 2024
    - 22.5K bytes
    - Viewed (0)
  4. pkg/kubelet/volumemanager/populator/desired_state_of_world_populator_test.go

    	dsw cache.DesiredStateOfWorld, asw cache.ActualStateOfWorld, newSize resource.Quantity) []v1.UniqueVolumeName {
    	dswp.ReprocessPod(uniquePodName)
    	dswp.findAndAddNewPods()
    	return getResizeRequiredVolumes(dsw, asw, newSize)
    }
    
    func getResizeRequiredVolumes(dsw cache.DesiredStateOfWorld, asw cache.ActualStateOfWorld, newSize resource.Quantity) []v1.UniqueVolumeName {
    	resizeRequiredVolumes := []v1.UniqueVolumeName{}
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Apr 24 18:25:29 UTC 2024
    - 51.4K bytes
    - Viewed (0)
  5. pkg/kubelet/volumemanager/reconciler/reconciler_test.go

    			pvWithSize.Spec.Capacity[v1.ResourceStorage] = tc.newPVSize
    			volumeSpec = &volume.Spec{PersistentVolume: pvWithSize}
    			dsw.AddPodToVolume(podName, pod, volumeSpec, volumeSpec.Name(), "" /* volumeGidValue */, nil /* seLinuxContexts */)
    
    			t.Logf("Changing size of the volume to %s", tc.newPVSize.String())
    			newSize := tc.newPVSize.DeepCopy()
    			dsw.UpdatePersistentVolumeSize(volumeName, &newSize)
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Apr 09 07:34:33 UTC 2024
    - 75.4K bytes
    - Viewed (0)
  6. pkg/volume/util/operationexecutor/operation_generator_test.go

    			}
    			actualSize := test.actualSize
    			if actualSize == nil {
    				actualSize = pvc.Status.Capacity.Storage()
    			}
    			pluginResizeOpts := volume.NodeResizeOptions{
    				VolumeSpec: vmt.VolumeSpec,
    				NewSize:    *desiredSize,
    				OldSize:    *actualSize,
    			}
    
    			ogInstance, _ := og.(*operationGenerator)
    			_, err := ogInstance.nodeExpandVolume(vmt, nil, pluginResizeOpts)
    
    			if !test.expectError && err != nil {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Apr 24 18:25:29 UTC 2024
    - 16.2K bytes
    - Viewed (0)
  7. pkg/volume/plugins.go

    	// it would be location where volume was mounted for the pod
    	DeviceMountPath string
    
    	// DeviceStagingPath stores location where the volume is staged
    	DeviceStagePath string
    
    	NewSize resource.Quantity
    	OldSize resource.Quantity
    }
    
    type DynamicPluginProber interface {
    	Init() error
    
    	// aggregates events for successful drivers and errors for failed drivers
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Jun 06 16:13:15 UTC 2024
    - 38.2K bytes
    - Viewed (0)
  8. pkg/volume/testing/testing.go

    func (plugin *FakeVolumePlugin) GetDeviceMountRefs(deviceMountPath string) ([]string, error) {
    	return []string{}, nil
    }
    
    // Expandable volume support
    func (plugin *FakeVolumePlugin) ExpandVolumeDevice(spec *volume.Spec, newSize resource.Quantity, oldSize resource.Quantity) (resource.Quantity, error) {
    	return resource.Quantity{}, nil
    }
    
    func (plugin *FakeVolumePlugin) RequiresFSResize() bool {
    	return !plugin.DisableNodeExpansion
    }
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri May 31 12:32:15 UTC 2024
    - 53.3K bytes
    - Viewed (0)
  9. pkg/apis/core/validation/validation.go

    	newPvcClone.Spec.VolumeAttributesClassName = oldPvcClone.Spec.VolumeAttributesClassName // +k8s:verify-mutation:reason=clone
    
    	oldSize := oldPvc.Spec.Resources.Requests["storage"]
    	newSize := newPvc.Spec.Resources.Requests["storage"]
    	statusSize := oldPvc.Status.Capacity["storage"]
    
    	if !apiequality.Semantic.DeepEqual(newPvcClone.Spec, oldPvcClone.Spec) {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed May 29 22:40:29 UTC 2024
    - 349.5K bytes
    - Viewed (0)
  10. src/cmd/fix/main.go

    	newSrc, err := gofmtFile(file)
    	if err != nil {
    		return err
    	}
    	if !bytes.Equal(newSrc, src) {
    		newFile, err := parser.ParseFile(fset, filename, newSrc, parserMode)
    		if err != nil {
    			return err
    		}
    		file = newFile
    		fmt.Fprintf(&fixlog, " fmt")
    	}
    
    	// Apply all fixes to file.
    	newFile := file
    	fixed := false
    	for _, fix := range fixes {
    		if allowed != nil && !allowed[fix.name] {
    			continue
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue May 14 19:41:17 UTC 2024
    - 5.4K bytes
    - Viewed (0)
Back to top