Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 11 for readData (0.09 sec)

  1. cmd/naughty-disk_test.go

    	}
    	return d.disk.ReadAll(ctx, volume, path)
    }
    
    func (d *naughtyDisk) ReadXL(ctx context.Context, volume string, path string, readData bool) (rf RawFileInfo, err error) {
    	if err := d.calcError(); err != nil {
    		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) {
    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-metadata-utils.go

    func readAllFileInfo(ctx context.Context, disks []StorageAPI, origbucket string, bucket, object, versionID string, readData, healing bool) ([]FileInfo, []error) {
    	metadataArray := make([]FileInfo, len(disks))
    
    	opts := ReadOptions{
    		ReadData: readData,
    		Healing:  healing,
    	}
    
    	g := errgroup.WithNErrs(len(disks))
    	// Read `xl.meta` in parallel across disks.
    	for index := range disks {
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Fri May 24 23:05:23 UTC 2024
    - 11.7K bytes
    - Viewed (0)
  3. cmd/storage-rest-client.go

    func (client *storageRESTClient) ReadXL(ctx context.Context, volume string, path string, readData bool) (rf RawFileInfo, err error) {
    	ctx, cancel := context.WithTimeout(ctx, globalDriveConfig.GetMaxTimeout())
    	defer cancel()
    
    	// Use websocket when not reading data.
    	if !readData {
    		resp, err := storageReadXLRPC.Call(ctx, client.gridConn, grid.NewMSSWith(map[string]string{
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Sun Oct 13 13:07:21 UTC 2024
    - 30.2K bytes
    - Viewed (0)
  4. okhttp/src/main/kotlin/okhttp3/internal/http2/Http2Reader.kt

        }
    
        if (requireSettings && type != TYPE_SETTINGS) {
          throw IOException("Expected a SETTINGS frame but was ${formattedType(type)}")
        }
    
        when (type) {
          TYPE_DATA -> readData(handler, length, flags, streamId)
          TYPE_HEADERS -> readHeaders(handler, length, flags, streamId)
          TYPE_PRIORITY -> readPriority(handler, length, flags, streamId)
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Mon Jan 08 01:13:22 UTC 2024
    - 19.9K bytes
    - Viewed (0)
  5. cmd/xl-storage-disk-id-check.go

    		return p.storage.ReadAll(ctx, volume, path)
    	})
    }
    
    func (p *xlStorageDiskIDCheck) ReadXL(ctx context.Context, volume string, path string, readData bool) (rf RawFileInfo, err error) {
    	ctx, done, err := p.TrackDiskHealth(ctx, storageMetricReadXL, volume, path)
    	if err != nil {
    		return RawFileInfo{}, err
    	}
    	defer func() {
    		done(int64(len(rf.Buf)), &err)
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Sat Oct 26 09:56:26 UTC 2024
    - 34.5K bytes
    - Viewed (0)
  6. cmd/storage-rest-server.go

    	if err != nil {
    		return nil, grid.NewRemoteErr(err)
    	}
    
    	fi, err := s.getStorage().ReadVersion(context.Background(), origvolume, volume, filePath, versionID, ReadOptions{
    		InclFreeVersions: inclFreeVersions,
    		ReadData:         false,
    		Healing:          healing,
    	})
    	if err != nil {
    		return nil, grid.NewRemoteErr(err)
    	}
    	return &fi, nil
    }
    
    // ReadVersionHandler read metadata of versionID
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Wed Aug 14 17:11:51 UTC 2024
    - 45.7K bytes
    - Viewed (0)
  7. internal/grid/connection.go

    	c.inStream.Range(func(key uint64, client *muxServer) bool {
    		client.cancel()
    		return true
    	})
    	c.inStream.Clear()
    }
    
    func (c *Connection) receive(conn net.Conn, r receiver) error {
    	b, op, err := wsutil.ReadData(conn, c.side)
    	if err != nil {
    		return err
    	}
    	if op != ws.OpBinary {
    		return fmt.Errorf("unexpected connect response type %v", op)
    	}
    	if c.incomingBytes != nil {
    		c.incomingBytes(int64(len(b)))
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Mon Jul 29 18:10:04 UTC 2024
    - 46.7K bytes
    - Viewed (0)
  8. src/archive/zip/zip_test.go

    	for i := 0; i < len(all); i++ {
    		for j := 0; j < len(all)-i; j++ {
    			buf := make([]byte, j)
    			n, err := b.ReadAt(buf, int64(i))
    			if err != nil || n != len(buf) {
    				t.Errorf("ReadAt(%d, %d) = %d, %v; want %d, nil", i, j, n, err, len(buf))
    			}
    			if !bytes.Equal(buf, all[i:i+j]) {
    				t.Errorf("ReadAt(%d, %d) = %q; want %q", i, j, buf, all[i:i+j])
    			}
    		}
    	}
    }
    
    Registered: Tue Nov 05 11:13:11 UTC 2024
    - Last Modified: Thu May 23 01:00:11 UTC 2024
    - 19.6K bytes
    - Viewed (0)
  9. src/main/java/jcifs/http/NetworkExplorer.java

                String qs = req.getQueryString();
                DfsReferralData refdata = dr.getData();
                redir = new StringBuffer(redir.substring(0, redir.length() - req.getPathInfo().length()));
                redir.append('/');
                redir.append(refdata.getServer());
                redir.append('/');
                redir.append(refdata.getShare());
                redir.append('/');
                if ( qs != null ) {
    Registered: Sun Nov 03 00:10:13 UTC 2024
    - Last Modified: Sun Jul 01 13:12:10 UTC 2018
    - 21.3K bytes
    - Viewed (0)
  10. src/archive/zip/reader.go

    // findBodyOffset does the minimum work to verify the file has a header
    // and returns the file body offset.
    func (f *File) findBodyOffset() (int64, error) {
    	var buf [fileHeaderLen]byte
    	if _, err := f.zipr.ReadAt(buf[:], f.headerOffset); err != nil {
    		return 0, err
    	}
    	b := readBuf(buf[:])
    	if sig := b.uint32(); sig != fileHeaderSignature {
    		return 0, ErrFormat
    	}
    	b = b[22:] // skip over most of the header
    Registered: Tue Nov 05 11:13:11 UTC 2024
    - Last Modified: Sat Aug 03 01:05:29 UTC 2024
    - 28.1K bytes
    - Viewed (0)
Back to top