Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 487 for volume (2.06 sec)

  1. cmd/naughty-disk_test.go

    func (d *naughtyDisk) StatVol(ctx context.Context, volume string) (vol VolInfo, err error) {
    	if err := d.calcError(); err != nil {
    		return VolInfo{}, err
    	}
    	return d.disk.StatVol(ctx, volume)
    }
    
    func (d *naughtyDisk) DeleteVol(ctx context.Context, volume string, forceDelete bool) (err error) {
    	if err := d.calcError(); err != nil {
    		return err
    	}
    	return d.disk.DeleteVol(ctx, volume, forceDelete)
    }
    
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Tue Apr 23 17:15:52 GMT 2024
    - 9.3K bytes
    - Viewed (0)
  2. cmd/xl-storage-disk-id-check.go

    	ctx, done, err := p.TrackDiskHealth(ctx, storageMetricDeleteVol, volume)
    	if err != nil {
    		return err
    	}
    	defer done(&err)
    
    	w := xioutil.NewDeadlineWorker(globalDriveConfig.GetMaxTimeout())
    	return w.Run(func() error { return p.storage.DeleteVol(ctx, volume, forceDelete) })
    }
    
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Sun Apr 28 17:53:50 GMT 2024
    - 33K bytes
    - Viewed (0)
  3. cmd/storage-rest-client.go

    	_, err := storageUpdateMetadataRPC.Call(ctx, client.gridConn, &MetadataHandlerParams{
    		DiskID:     *client.diskID.Load(),
    		Volume:     volume,
    		FilePath:   path,
    		UpdateOpts: opts,
    		FI:         fi,
    	})
    	return toStorageErr(err)
    }
    
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Sun Apr 28 17:53:50 GMT 2024
    - 26.1K bytes
    - Viewed (0)
  4. cmd/bitrot-whole.go

    }
    
    // Returns whole-file bitrot writer.
    func newWholeBitrotWriter(disk StorageAPI, volume, filePath string, algo BitrotAlgorithm, shardSize int64) io.WriteCloser {
    	return &wholeBitrotWriter{disk, volume, filePath, shardSize, algo.New()}
    }
    
    // Implementation to verify bitrot for the whole file.
    type wholeBitrotReader struct {
    	disk       StorageAPI
    	volume     string
    	filePath   string
    	verifier   *BitrotVerifier // Holds the bit-rot info
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Wed Jan 31 02:11:45 GMT 2024
    - 2.7K bytes
    - Viewed (0)
  5. cmd/xl-storage.go

    	return info, err
    }
    
    // getVolDir - will convert incoming volume names to
    // corresponding valid volume names on the backend in a platform
    // compatible way for all operating systems. If volume is not found
    // an error is generated.
    func (s *xlStorage) getVolDir(volume string) (string, error) {
    	if volume == "" || volume == "." || volume == ".." {
    		return "", errVolumeNotFound
    	}
    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)
  6. cmd/storage-errors.go

    // errVolumeNotEmpty - volume not empty.
    var errVolumeNotEmpty = StorageErr("volume is not empty")
    
    // errVolumeAccessDenied - cannot access volume, insufficient permissions.
    var errVolumeAccessDenied = StorageErr("volume access denied")
    
    // errFileAccessDenied - cannot access file, insufficient permissions.
    var errFileAccessDenied = StorageErr("file access denied")
    
    // errFileCorrupt - file has an unexpected size, or is not readable
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Thu Apr 04 12:04:40 GMT 2024
    - 6.4K bytes
    - Viewed (0)
  7. cmd/storage-rest-server.go

    		return grid.NewNPErr(errDiskNotFound)
    	}
    	volume := p.Volume
    	filePath := p.FilePath
    	return grid.NewNPErr(s.getStorage().CheckParts(context.Background(), volume, filePath, p.FI))
    }
    
    func (s *storageRESTServer) WriteAllHandler(p *WriteAllHandlerParams) (grid.NoPayload, *grid.RemoteErr) {
    	if !s.checkID(p.DiskID) {
    		return grid.NewNPErr(errDiskNotFound)
    	}
    
    	volume := p.Volume
    	filePath := p.FilePath
    
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Sun Apr 28 17:53:50 GMT 2024
    - 44.8K bytes
    - Viewed (0)
  8. cmd/storage-datatypes.go

    }
    
    // VolsInfo is a collection of volume(bucket) information
    type VolsInfo []VolInfo
    
    // VolInfo - represents volume stat information.
    // The above means that any added/deleted fields are incompatible.
    //
    // The above means that any added/deleted fields are incompatible.
    //
    //msgp:tuple VolInfo
    type VolInfo struct {
    	// Name of the volume.
    	Name string
    
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Tue Apr 23 17:15:52 GMT 2024
    - 15.3K bytes
    - Viewed (0)
  9. cmd/bitrot_test.go

    )
    
    func testBitrotReaderWriterAlgo(t *testing.T, bitrotAlgo BitrotAlgorithm) {
    	tmpDir := t.TempDir()
    
    	volume := "testvol"
    	filePath := "testfile"
    
    	disk, err := newLocalXLStorage(tmpDir)
    	if err != nil {
    		t.Fatal(err)
    	}
    
    	disk.MakeVol(context.Background(), volume)
    
    	writer := newBitrotWriter(disk, "", volume, filePath, 35, bitrotAlgo, 10)
    
    	_, err = writer.Write([]byte("aaaaaaaaaa"))
    	if err != nil {
    		t.Fatal(err)
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Tue Jan 30 20:43:25 GMT 2024
    - 2.1K bytes
    - Viewed (0)
  10. internal/disk/disk.go

    // along with this program.  If not, see <http://www.gnu.org/licenses/>.
    
    package disk
    
    // Info stat fs struct is container which holds following values
    // Total - total size of the volume / disk
    // Free - free size of the volume / disk
    // Files - total inodes available
    // Ffree - free inodes available
    // FSType - file system type
    // Major - major dev id
    // Minor - minor dev id
    // Devname - device name
    type Info struct {
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Mon Feb 26 19:34:50 GMT 2024
    - 1.7K bytes
    - Viewed (0)
Back to top