Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 4 of 4 for writeMetadata (0.09 sec)

  1. cmd/xl-storage-disk-id-check.go

    }
    
    func (p *xlStorageDiskIDCheck) WriteMetadata(ctx context.Context, origvolume, volume, path string, fi FileInfo) (err error) {
    	ctx, done, err := p.TrackDiskHealth(ctx, storageMetricWriteMetadata, volume, path)
    	if err != nil {
    		return err
    	}
    	defer done(0, &err)
    
    	w := xioutil.NewDeadlineWorker(globalDriveConfig.GetMaxTimeout())
    	return w.Run(func() error { return p.storage.WriteMetadata(ctx, origvolume, 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)
  2. cmd/storage-rest-client.go

    	defer xhttp.DrainBody(respBody)
    	if err != nil {
    		return err
    	}
    	_, err = waitForHTTPResponse(respBody)
    	return toStorageErr(err)
    }
    
    func (client *storageRESTClient) WriteMetadata(ctx context.Context, origvolume, volume, path string, fi FileInfo) error {
    	ctx, cancel := context.WithTimeout(ctx, globalDriveConfig.GetMaxTimeout())
    	defer cancel()
    
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Sun Oct 13 13:07:21 UTC 2024
    - 30.2K bytes
    - Viewed (0)
  3. cmd/erasure-metadata.go

    			if disks[index] == nil {
    				return errDiskNotFound
    			}
    			// Pick one FileInfo for a disk at index.
    			fi := files[index]
    			fi.Erasure.Index = index + 1
    			if fi.IsValid() {
    				return disks[index].WriteMetadata(ctx, origbucket, bucket, prefix, fi)
    			}
    			return errFileCorrupt
    		}, index)
    	}
    
    	// Wait for all the routines.
    	mErrs := g.Wait()
    
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Thu Oct 31 22:10:24 UTC 2024
    - 21.3K bytes
    - Viewed (0)
  4. cmd/xl-storage.go

    		return err
    	}
    	defer metaDataPoolPut(wbuf)
    
    	return s.writeAllMeta(ctx, volume, pathJoin(path, xlStorageFormatFile), wbuf, !opts.NoPersistence)
    }
    
    // WriteMetadata - writes FileInfo metadata for path at `xl.meta`
    func (s *xlStorage) WriteMetadata(ctx context.Context, origvolume, volume, path string, fi FileInfo) (err error) {
    	if fi.Fresh {
    		if origvolume != "" {
    			origvolumeDir, err := s.getVolDir(origvolume)
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Sat Oct 26 09:58:27 UTC 2024
    - 91.3K bytes
    - Viewed (0)
Back to top