Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 3 of 3 for removeAll (0.15 sec)

  1. cmd/test-utils_test.go

    func (testServer TestServer) Stop() {
    	testServer.cancel()
    	testServer.Server.Close()
    	testServer.Obj.Shutdown(context.Background())
    	os.RemoveAll(testServer.Root)
    	for _, ep := range testServer.Disks {
    		for _, disk := range ep.Endpoints {
    			os.RemoveAll(disk.Path)
    		}
    	}
    }
    
    // Truncate request to simulate unexpected EOF for a request signed using streaming signature v4.
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Fri May 03 17:26:51 GMT 2024
    - 76.2K bytes
    - Viewed (0)
  2. cmd/xl-storage.go

    	return errs
    }
    
    func (s *xlStorage) cleanupTrashImmediateCallers(ctx context.Context) {
    	for {
    		select {
    		case <-ctx.Done():
    			return
    		case entry := <-s.immediatePurge:
    			removeAll(entry)
    		}
    	}
    }
    
    const almostFilledPercent = 0.05
    
    func (s *xlStorage) diskAlmostFilled() bool {
    	info, err := s.diskInfoCache.Get()
    	if err != nil {
    		return false
    	}
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Sun Apr 28 17:53:50 GMT 2024
    - 84.7K bytes
    - Viewed (0)
  3. cmd/xl-storage_test.go

    	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.
    	os.RemoveAll(diskPath)
    
    	// TestXLStorage for delete on an removed disk.
    	// should fail with disk not found.
    	err = xlStorageDeletedStorage.DeleteVol(context.Background(), "Del-Vol", false)
    	if err != errDiskNotFound {
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Thu Apr 11 17:45:28 GMT 2024
    - 66.7K bytes
    - Viewed (0)
Back to top