mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-07-28 11:49:44 +00:00
Kernel: Use u64 instead of size_t for BlockBasedFileSystem::read_block
This ensures offsets will not be truncated on large filesystems on i686
This commit is contained in:
parent
0b2e93cf43
commit
2065a73727
Notes:
sideshowbarker
2024-07-17 20:14:13 +09:00
Author: https://github.com/IdanHo
Commit: 2065a73727
Pull-request: https://github.com/SerenityOS/serenity/pull/12132
Reviewed-by: https://github.com/bgianfo ✅
Reviewed-by: https://github.com/tomuta ✅
2 changed files with 3 additions and 3 deletions
|
@ -26,7 +26,7 @@ public:
|
|||
protected:
|
||||
explicit BlockBasedFileSystem(OpenFileDescription&);
|
||||
|
||||
ErrorOr<void> read_block(BlockIndex, UserOrKernelBuffer*, size_t count, size_t offset = 0, bool allow_cache = true) const;
|
||||
ErrorOr<void> read_block(BlockIndex, UserOrKernelBuffer*, size_t count, u64 offset = 0, bool allow_cache = true) const;
|
||||
ErrorOr<void> read_blocks(BlockIndex, unsigned count, UserOrKernelBuffer&, bool allow_cache = true) const;
|
||||
|
||||
ErrorOr<void> raw_read(BlockIndex, UserOrKernelBuffer&);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue