[Denali] Update the read many request to take a sector count as well.

This greatly reduces the size of the message (we had surpassed the 1
page - 4KiB message limit with the previous method).
This commit is contained in:
Drew Galbraith 2023-11-22 12:17:56 -08:00
parent 9f0e87b51d
commit 41bf78cf98
5 changed files with 71 additions and 22 deletions

View file

@ -47,10 +47,13 @@ class ReadManyRequest {
void set_device_id(const uint64_t& value) { device_id_ = value; }
const glcr::Vector<uint64_t>& lba() const { return lba_; }
void add_lba(const uint64_t& value) { lba_.PushBack(value); }
const glcr::Vector<uint64_t>& sector_cnt() const { return sector_cnt_; }
void add_sector_cnt(const uint64_t& value) { sector_cnt_.PushBack(value); }
private:
uint64_t device_id_;
glcr::Vector<uint64_t> lba_;
glcr::Vector<uint64_t> sector_cnt_;
// Parses everything except for caps.
void ParseFromBytesInternal(const glcr::ByteBuffer&, uint64_t offset);