blockstoragedevice: switch parameter for set_fpos to uint64_t.

This commit is contained in:
Maxim Poliakovski
2026-02-15 18:40:11 +01:00
parent 25a5f193ba
commit 2ea8fee204
2 changed files with 3 additions and 3 deletions
+2 -2
View File
@@ -75,8 +75,8 @@ int BlockStorageDevice::set_block_size(const int blk_size) {
return 0;
}
int BlockStorageDevice::set_fpos(const uint32_t lba) {
this->cur_fpos = (uint64_t)lba * (uint64_t)this->raw_blk_size;
int BlockStorageDevice::set_fpos(const uint64_t lba) {
this->cur_fpos = lba * this->raw_blk_size;
return 0;
}
+1 -1
View File
@@ -39,7 +39,7 @@ public:
int set_host_file(std::string file_path);
int set_block_size(const int blk_size);
int set_fpos(const uint32_t lba);
int set_fpos(const uint64_t lba);
int read_begin(int nblocks, uint32_t max_len = UINT32_MAX);
int data_left() { return this->remain_size; }
int read_more();