Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 5 of 5 for valName (0.09 sec)

  1. src/bytes/bytes_test.go

    			if p != 0 {
    				t.Errorf("TestCountByteNoMatch(%q, 0) = %d", b[i:i+window], p)
    			}
    			for j := 0; j < window; j++ {
    				b[i+j] = byte(0)
    			}
    		}
    	}
    }
    
    var bmbuf []byte
    
    func valName(x int) string {
    	if s := x >> 20; s<<20 == x {
    		return fmt.Sprintf("%dM", s)
    	}
    	if s := x >> 10; s<<10 == x {
    		return fmt.Sprintf("%dK", s)
    	}
    	return fmt.Sprint(x)
    }
    
    Registered: Tue Nov 05 11:13:11 UTC 2024
    - Last Modified: Mon Aug 19 19:09:04 UTC 2024
    - 61.2K bytes
    - Viewed (0)
  2. cmd/xl-storage_test.go

    	}
    
    	testCases := []struct {
    		volName     string
    		expectedErr error
    	}{
    		// TestXLStorage case - 1.
    		{
    			volName:     "success-vol",
    			expectedErr: nil,
    		},
    		// TestXLStorage case - 2.
    		{
    			volName:     "nonexistent-vol",
    			expectedErr: errVolumeNotFound,
    		},
    		// TestXLStorage case - 3.
    		{
    			volName:     "ab",
    			expectedErr: errVolumeNotFound,
    		},
    	}
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Wed Aug 14 17:11:51 UTC 2024
    - 66.7K bytes
    - Viewed (0)
  3. cmd/erasure-sets.go

    					return nil
    				}
    				return err
    			}
    			for _, volName := range volsInfo {
    				vi, err := storageDisks[index].StatVol(ctx, pathJoin(minioMetaBucket, bucketMetaPrefix, deletedBucketsPrefix, volName))
    				if err == nil {
    					vi.Name = strings.TrimSuffix(volName, SlashSeparator)
    					mu.Lock()
    					if _, ok := delBuckets[volName]; !ok {
    						delBuckets[volName] = vi
    					}
    					mu.Unlock()
    				}
    			}
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Fri Sep 27 10:41:37 UTC 2024
    - 37K bytes
    - Viewed (1)
  4. configure.py

        else:
          syslibs = ','.join(sorted(syslibs.split()))
        write_action_env_to_bazelrc('TF_SYSTEM_LIBS', syslibs)
    
      for varname in ('PREFIX', 'LIBDIR', 'INCLUDEDIR', 'PROTOBUF_INCLUDE_PATH'):
        if varname in environ_cp:
          write_to_bazelrc('build --define=%s=%s' % (varname, environ_cp[varname]))
    
    
    def set_windows_build_flags(environ_cp):
      """Set Windows specific build options."""
    
    Registered: Tue Nov 05 12:39:12 UTC 2024
    - Last Modified: Wed Oct 02 22:16:02 UTC 2024
    - 48.2K bytes
    - Viewed (0)
  5. cmd/xl-storage.go

    	_, _ = rand.Read(alignedBuf)
    }
    
    // isValidVolname verifies a volname name in accordance with object
    // layer requirements.
    func isValidVolname(volname string) bool {
    	if len(volname) < 3 {
    		return false
    	}
    
    	if runtime.GOOS == "windows" {
    		// Volname shouldn't have reserved characters in Windows.
    		return !strings.ContainsAny(volname, `\:*?\"<>|`)
    	}
    
    	return true
    }
    
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Sat Oct 26 09:58:27 UTC 2024
    - 91.3K bytes
    - Viewed (0)
Back to top