Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 121 for Wiles (4.11 sec)

  1. cni/test/install_cni.go

    			}
    		}
    	}
    
    	return fmt.Errorf("no files, or unrecognized op")
    }
    
    // checkTempFilesCleaned verifies that all temporary files have been cleaned up
    func checkTempFilesCleaned(tempCNIConfDir string, t *testing.T) {
    	t.Helper()
    	files, err := os.ReadDir(tempCNIConfDir)
    	if err != nil {
    		t.Fatalf("Failed to list files, err: %v", err)
    	}
    	for _, f := range files {
    		if strings.Contains(f.Name(), ".tmp") {
    Go
    - Registered: Wed May 01 22:53:12 GMT 2024
    - Last Modified: Fri Jan 26 20:34:28 GMT 2024
    - 12.5K bytes
    - Viewed (0)
  2. internal/disk/disk.go

    // Total - total size of the volume / disk
    // Free - free size of the volume / disk
    // Files - total inodes available
    // Ffree - free inodes available
    // FSType - file system type
    // Major - major dev id
    // Minor - minor dev id
    // Devname - device name
    type Info struct {
    	Total      uint64
    	Free       uint64
    	Used       uint64
    	Files      uint64
    	Ffree      uint64
    	FSType     string
    	Major      uint32
    	Minor      uint32
    Go
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Mon Feb 26 19:34:50 GMT 2024
    - 1.7K bytes
    - Viewed (0)
  3. internal/disk/stat_solaris.go

    		return Info{}, err
    	}
    	reservedBlocks := uint64(s.Bfree) - uint64(s.Bavail)
    	info = Info{
    		Total:  uint64(s.Frsize) * (uint64(s.Blocks) - reservedBlocks),
    		Free:   uint64(s.Frsize) * uint64(s.Bavail),
    		Files:  uint64(s.Files),
    		Ffree:  uint64(s.Ffree),
    		FSType: getFSType(s.Fstr[:]),
    	}
    	if info.Free > info.Total {
    Go
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Mon Feb 26 19:34:50 GMT 2024
    - 1.8K bytes
    - Viewed (0)
  4. cni/pkg/install/cniconfig.go

    func getDefaultCNINetwork(confDir string) (string, error) {
    	files, err := libcni.ConfFiles(confDir, []string{".conf", ".conflist"})
    	switch {
    	case err != nil:
    		return "", err
    	case len(files) == 0:
    		return "", fmt.Errorf("no networks found in %s", confDir)
    	}
    
    	sort.Strings(files)
    	for _, confFile := range files {
    		var confList *libcni.NetworkConfigList
    Go
    - Registered: Wed May 01 22:53:12 GMT 2024
    - Last Modified: Fri Jan 26 20:34:28 GMT 2024
    - 10.4K bytes
    - Viewed (0)
  5. cmd/storage-datatypes.go

    	}
    	return fi
    }
    
    // ReadMultipleReq contains information of multiple files to read from disk.
    type ReadMultipleReq struct {
    	Bucket       string   // Bucket. Can be empty if multiple buckets.
    	Prefix       string   // Shared prefix of all files. Can be empty. Will be joined to filename without modification.
    	Files        []string // Individual files to read.
    	MaxSize      int64    // Return error if size is exceed.
    Go
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Tue Apr 23 17:15:52 GMT 2024
    - 15.3K bytes
    - Viewed (0)
  6. cmd/os_unix.go

    		typ = 0
    	case syscall.DT_DIR:
    		typ = os.ModeDir
    	case syscall.DT_LNK:
    		typ = os.ModeSymlink
    	default:
    		// Skip all other file types. Revisit if/when this code needs
    		// to handle such files, MinIO is only interested in
    		// files and directories.
    		typ = unexpectedFileMode
    	}
    
    	nameBuf := (*[unsafe.Sizeof(dirent.Name)]byte)(unsafe.Pointer(&dirent.Name[0]))
    	nameLen, err := direntNamlen(dirent)
    	if err != nil {
    Go
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Thu Jan 18 07:03:17 GMT 2024
    - 9.3K bytes
    - Viewed (0)
  7. internal/logger/target/testlogger/testlogger.go

    // Package testlogger contains an autoregistering logger that can be used to capture logging events
    // for individual tests.
    // This package should only be included by test files.
    // To enable logging for a test, use:
    //
    //	func TestSomething(t *testing.T) {
    //		defer testlogger.T.SetLogTB(t)()
    //
    // This cannot be used for parallel tests.
    package testlogger
    
    import (
    	"context"
    Go
    - Registered: Sun Apr 21 19:28:08 GMT 2024
    - Last Modified: Tue Nov 21 01:09:35 GMT 2023
    - 4K bytes
    - Viewed (0)
  8. src/cmd/asm/internal/lex/lex.go

    func NewLexer(name string) TokenReader {
    	input := NewInput(name)
    	fd, err := os.Open(name)
    	if err != nil {
    		log.Fatalf("%s\n", err)
    	}
    	input.Push(NewTokenizer(name, fd, fd))
    	return input
    }
    
    // The other files in this directory each contain an implementation of TokenReader.
    
    // A TokenReader is like a reader, but returns lex tokens of type Token. It also can tell you what
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Tue Aug 29 18:31:05 GMT 2023
    - 4.1K bytes
    - Viewed (0)
  9. cni/pkg/install/kubeconfig_test.go

    			k8sServiceHost: k8sServiceHost,
    			k8sServicePort: k8sServicePort,
    			kubeCAFilepath: kubeCAFilepath,
    		},
    	}
    
    	for _, c := range cases {
    		t.Run(c.name, func(t *testing.T) {
    			// Create temp directory for files
    			tempDir := t.TempDir()
    
    			cfg := &config.InstallConfig{
    				MountedCNINetDir:   tempDir,
    				KubeCAFile:         c.kubeCAFilepath,
    				K8sServiceProtocol: c.k8sServiceProtocol,
    Go
    - Registered: Wed May 01 22:53:12 GMT 2024
    - Last Modified: Thu Feb 08 03:52:24 GMT 2024
    - 5.1K bytes
    - Viewed (0)
  10. src/cmd/cgo/internal/test/cgo_test.go

    // Use of this source code is governed by a BSD-style
    // license that can be found in the LICENSE file.
    
    //go:build cgo
    
    package cgotest
    
    import "testing"
    
    // The actual test functions are in non-_test.go files
    // so that they can use cgo (import "C").
    // These wrappers are here for gotest to find.
    
    func Test1328(t *testing.T)                  { test1328(t) }
    func Test1560(t *testing.T)                  { test1560(t) }
    Go
    - Registered: Tue Apr 23 11:13:09 GMT 2024
    - Last Modified: Wed May 17 21:53:11 GMT 2023
    - 6.4K bytes
    - Viewed (0)
Back to top