Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 4 of 4 for diskPaths (0.45 sec)

  1. cmd/erasure_test.go

    	dataBlocks   int
    	parityBlocks int
    	blockSize    int64
    	diskPaths    []string
    	disks        []StorageAPI
    }
    
    // Returns an initialized setup for erasure tests.
    func newErasureTestSetup(tb testing.TB, dataBlocks int, parityBlocks int, blockSize int64) (*erasureTestSetup, error) {
    	diskPaths := make([]string, dataBlocks+parityBlocks)
    	disks := make([]StorageAPI, len(diskPaths))
    	var err error
    	for i := range diskPaths {
    Registered: Sun Dec 28 19:28:13 UTC 2025
    - Last Modified: Wed Apr 09 14:28:39 UTC 2025
    - 4.8K bytes
    - Viewed (0)
  2. cmd/prepare-storage.go

    	tmpID := mustGetUUID()
    	tmpOld := pathJoin(diskPath, minioMetaTmpBucket+"-old", tmpID)
    	if err := renameAll(pathJoin(diskPath, minioMetaTmpBucket),
    		tmpOld, diskPath); err != nil && !errors.Is(err, errFileNotFound) {
    		storageLogIf(GlobalContext, fmt.Errorf("unable to rename (%s -> %s) %w, drive may be faulty, please investigate",
    			pathJoin(diskPath, minioMetaTmpBucket),
    			tmpOld,
    			osErrToFileErr(err)))
    	}
    
    Registered: Sun Dec 28 19:28:13 UTC 2025
    - Last Modified: Fri Jul 12 20:51:54 UTC 2024
    - 11.1K bytes
    - Viewed (1)
  3. internal/disk/root_disk.go

    package disk
    
    import "runtime"
    
    // IsRootDisk returns if diskPath belongs to root-disk, i.e the disk mounted at "/"
    func IsRootDisk(diskPath string, rootDisk string) (bool, error) {
    	if runtime.GOOS == "windows" {
    		// On windows this function is not implemented.
    		return false, nil
    	}
    	return SameDisk(diskPath, rootDisk)
    Registered: Sun Dec 28 19:28:13 UTC 2025
    - Last Modified: Tue Jun 01 21:59:40 UTC 2021
    - 1.1K bytes
    - Viewed (0)
  4. cmd/xl-storage_test.go

    		}
    	}
    
    	// create xlStorage test setup
    	xlStorageDeletedStorage, diskPath, err := newXLStorageTestSetup(t)
    	if err != nil {
    		t.Fatalf("Unable to create xlStorage test setup, %s", err)
    	}
    	// removing the disk, used to recreate disk not found error.
    	err = os.RemoveAll(diskPath)
    	if err != nil {
    		t.Fatalf("Unable to remoe xlStorage diskpath, %s", err)
    	}
    
    	// TestXLStorage for delete on an removed disk.
    Registered: Sun Dec 28 19:28:13 UTC 2025
    - Last Modified: Fri Aug 29 02:39:48 UTC 2025
    - 66K bytes
    - Viewed (0)
Back to top