Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 9 of 9 for verifyRole (0.17 sec)

  1. cmd/storage-rest-common.go

    // along with this program.  If not, see <http://www.gnu.org/licenses/>.
    
    package cmd
    
    //go:generate msgp -file $GOFILE -unexported
    
    const (
    	storageRESTVersion       = "v58" // Change VerifyFile signature
    	storageRESTVersionPrefix = SlashSeparator + storageRESTVersion
    	storageRESTPrefix        = minioReservedBucketPath + "/storage"
    )
    
    const (
    	storageRESTMethodHealth = "/health"
    
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Mon Jun 10 15:51:27 UTC 2024
    - 2.9K bytes
    - Viewed (0)
  2. 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 Jun 16 00:44:34 UTC 2024
    - Last Modified: Mon Jun 10 15:51:27 UTC 2024
    - 9.4K bytes
    - Viewed (0)
  3. cmd/storage-interface.go

    	CheckParts(ctx context.Context, volume string, path string, fi FileInfo) (*CheckPartsResp, error)
    	Delete(ctx context.Context, volume string, path string, opts DeleteOptions) (err error)
    	VerifyFile(ctx context.Context, volume, path string, fi FileInfo) (*CheckPartsResp, error)
    	StatInfoFile(ctx context.Context, volume, path string, glob bool) (stat []StatInfo, err error)
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Mon Jun 10 15:51:27 UTC 2024
    - 5K bytes
    - Viewed (0)
  4. 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 Jun 16 00:44:34 UTC 2024
    - Last Modified: Mon Jun 10 15:51:27 UTC 2024
    - 12.5K bytes
    - Viewed (0)
  5. 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
    }
    
    // LocalDiskIDs - GetLocalIDs response.
    type LocalDiskIDs struct {
    	IDs []string
    }
    
    // ListDirResult - ListDir()'s response.
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Mon Jun 10 15:51:27 UTC 2024
    - 15.7K bytes
    - Viewed (0)
  6. 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 Jun 16 00:44:34 UTC 2024
    - Last Modified: Mon Jun 10 15:51:27 UTC 2024
    - 33.4K bytes
    - Viewed (0)
  7. 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 Jun 16 00:44:34 UTC 2024
    - Last Modified: Mon Jun 10 15:51:27 UTC 2024
    - 27.4K bytes
    - Viewed (0)
  8. cmd/storage-rest-server.go

    		s.writeErrorResponse(w, err)
    		return
    	}
    
    	setEventStreamHeaders(w)
    	encoder := gob.NewEncoder(w)
    	done := keepHTTPResponseAlive(w)
    	resp, err := s.getStorage().VerifyFile(r.Context(), volume, filePath, fi)
    	done(nil)
    
    	if err != nil {
    		s.writeErrorResponse(w, err)
    		return
    	}
    
    	encoder.Encode(resp)
    }
    
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Mon Jun 10 15:51:27 UTC 2024
    - 44.8K bytes
    - Viewed (0)
  9. cmd/xl-storage.go

    		// for healing code to fix this file.
    		return err
    	}
    	return bitrotVerify(diskHealthReader(ctx, file), fi.Size(), partSize, algo, sum, shardSize)
    }
    
    func (s *xlStorage) VerifyFile(ctx context.Context, volume, path string, fi FileInfo) (*CheckPartsResp, error) {
    	volumeDir, err := s.getVolDir(volume)
    	if err != nil {
    		return nil, err
    	}
    
    	if !skipAccessChecks(volume) {
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Mon Jun 10 15:51:27 UTC 2024
    - 85.3K bytes
    - Viewed (0)
Back to top