Skip to content

Conversation

@nankeen
Copy link
Contributor

@nankeen nankeen commented Dec 9, 2025

Describe your changes

This PR adds the ability to optionally read from the sparse file instead of the padded file when using VFSGetBuffer.

  • Add padding parameter to api.proto
  • Make in.Padding default to true in VFSGetBuffer gRPC handler
  • Require padding to be true in order to use ranged reader
  • Generate *.pb.go files using make_proto.sh
  • Add tests to read padded and unpadded sparse file

It would be easier to just review the following files

  • api/api.go
  • api/events_test.go
  • api/download.go
  • api/proto/api.proto

The rest of the changes were generated automatically from protobuf.

Issue ticket number and link

#4580

Checklist

  • I have performed a self-review of my code
  • I have added thorough tests

@CLAassistant
Copy link

CLAassistant commented Dec 9, 2025

CLA assistant check
All committers have signed the CLA.

@scudette scudette merged commit 5da8b51 into Velocidex:master Dec 10, 2025
5 checks passed
scudette added a commit that referenced this pull request Dec 23, 2025
## Describe your changes

This PR adds the ability to optionally read from the sparse file instead
of the padded file when using `VFSGetBuffer`.

- Add `padding` parameter to `api.proto`
- Make `in.Padding` default to `true` in `VFSGetBuffer` gRPC handler
- Require `padding` to be `true` in order to use ranged reader
- Generate `*.pb.go` files using `make_proto.sh`
- Add tests to read padded and unpadded sparse file

It would be easier to just review the following files

- api/api.go
- api/events_test.go
- api/download.go
- api/proto/api.proto

The rest of the changes were generated automatically from protobuf.

## Issue ticket number and link

#4580 

## Checklist

- [x] I have performed a self-review of my code
- [x] I have added thorough tests

---------

Co-authored-by: Kai <[email protected]>
Co-authored-by: Mike Cohen <[email protected]>
scudette added a commit that referenced this pull request Dec 23, 2025
## Describe your changes

This PR adds the ability to optionally read from the sparse file instead
of the padded file when using `VFSGetBuffer`.

- Add `padding` parameter to `api.proto`
- Make `in.Padding` default to `true` in `VFSGetBuffer` gRPC handler
- Require `padding` to be `true` in order to use ranged reader
- Generate `*.pb.go` files using `make_proto.sh`
- Add tests to read padded and unpadded sparse file

It would be easier to just review the following files

- api/api.go
- api/events_test.go
- api/download.go
- api/proto/api.proto

The rest of the changes were generated automatically from protobuf.

## Issue ticket number and link

#4580 

## Checklist

- [x] I have performed a self-review of my code
- [x] I have added thorough tests

---------

Co-authored-by: Kai <[email protected]>
Co-authored-by: Mike Cohen <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants