Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 6 of 6 for VerifyFile (0.06 sec)

  1. cmd/naughty-disk_test.go

    		return rf, err
    	}
    	return d.disk.ReadXL(ctx, volume, path, readData)
    }
    
    func (d *naughtyDisk) VerifyFile(ctx context.Context, volume, path string, fi FileInfo) (*CheckPartsResp, error) {
    	if err := d.calcError(); err != nil {
    		return nil, err
    	}
    	return d.disk.VerifyFile(ctx, volume, path, fi)
    }
    
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Mon Aug 12 08:38:15 UTC 2024
    - 10.1K bytes
    - Viewed (0)
  2. cmd/erasure-healing-common.go

    		case madmin.HealDeepScan:
    			// disk has a valid xl.meta but may not have all the
    			// parts. This is considered an outdated disk, since
    			// it needs healing too.
    			verifyResp, verifyErr = onlineDisk.VerifyFile(ctx, bucket, object, meta)
    		default:
    			verifyResp, verifyErr = onlineDisk.CheckParts(ctx, bucket, object, meta)
    		}
    
    		for p := range latestMeta.Parts {
    			if verifyErr != nil {
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Thu Oct 31 22:10:24 UTC 2024
    - 12.7K bytes
    - Viewed (0)
  3. cmd/xl-storage-disk-id-check.go

    			break
    		}
    	}
    
    	return errs
    }
    
    func (p *xlStorageDiskIDCheck) VerifyFile(ctx context.Context, volume, path string, fi FileInfo) (*CheckPartsResp, error) {
    	ctx, done, err := p.TrackDiskHealth(ctx, storageMetricVerifyFile, volume, path)
    	if err != nil {
    		return nil, err
    	}
    	defer done(0, &err)
    
    	return p.storage.VerifyFile(ctx, volume, path, fi)
    }
    
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Sat Oct 26 09:56:26 UTC 2024
    - 34.5K bytes
    - Viewed (0)
  4. cmd/storage-datatypes.go

    	checkPartSuccess
    	checkPartDiskNotFound
    	checkPartVolumeNotFound
    	checkPartFileNotFound
    	checkPartFileCorrupt
    )
    
    // CheckPartsResp is a response of the storage CheckParts and VerifyFile APIs
    type CheckPartsResp struct {
    	Results []int `msg:"r"`
    }
    
    // LocalDiskIDs - GetLocalIDs response.
    type LocalDiskIDs struct {
    	IDs []string `msg:"i"`
    }
    
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Tue Oct 22 15:30:50 UTC 2024
    - 17.3K bytes
    - Viewed (0)
  5. cmd/storage-rest-client.go

    		SrcVolume:   srcVolume,
    		SrcFilePath: srcPath,
    		DstVolume:   dstVolume,
    		DstFilePath: dstPath,
    	})
    	return toStorageErr(err)
    }
    
    func (client *storageRESTClient) VerifyFile(ctx context.Context, volume, path string, fi FileInfo) (*CheckPartsResp, error) {
    	values := make(url.Values)
    	values.Set(storageRESTVolume, volume)
    	values.Set(storageRESTFilePath, path)
    
    	var reader bytes.Buffer
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Sun Oct 13 13:07:21 UTC 2024
    - 30.2K bytes
    - Viewed (0)
  6. cmd/storage-rest-server.go

    	}
    
    	var fi FileInfo
    	if err := msgp.Decode(r.Body, &fi); err != nil {
    		s.writeErrorResponse(w, err)
    		return
    	}
    
    	done := keepHTTPResponseAlive(w)
    	resp, err := s.getStorage().VerifyFile(r.Context(), volume, filePath, fi)
    	done(err)
    	if err != nil {
    		return
    	}
    
    	buf, _ := resp.MarshalMsg(nil)
    	w.Write(buf)
    }
    
    func checkDiskFatalErrs(errs []error) error {
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Wed Aug 14 17:11:51 UTC 2024
    - 45.7K bytes
    - Viewed (0)
Back to top