Skip to content
GitLab
Explore
Projects
Groups
Topics
Snippets
Projects
Groups
Topics
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
educg-net-28665-2608131
oskernel2024-9-2160
Commits
6bb1daae
Commit
6bb1daae
authored
3 months ago
by
只敲代码不玩耍,聪明baka也变傻ᗜˬᗜ
Browse files
Options
Download
Patches
Plain Diff
refactor: rename readall_at to readall and introduce readrest_at for clarity
parent
e4f759c6
submit
feat/docs
feat/docs-vendored
feat/ext4-filesystem
feat/ext4-filesystem-vendored
feat/lazy-symbol-table-build
feat/lazy-symbol-table-build-vendored
feat/paging-virtual-memory
feat/paging-virtual-memory-vendored
feat/setup-trap-control-flow
feat/setup-trap-control-flow-vendored
feat/test-final
feat/test-final-vendored
master
master-vendored
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
crates/filesystem-abstractions/src/lib.rs
+5
-1
crates/filesystem-abstractions/src/lib.rs
with
5 additions
and
1 deletion
+5
-1
crates/filesystem-abstractions/src/lib.rs
+
5
−
1
View file @
6bb1daae
...
...
@@ -90,7 +90,11 @@ pub trait IInode: DowncastSync + Send + Sync {
Err
(
FileSystemError
::
Unimplemented
)
}
fn
readall_at
(
&
self
,
offset
:
usize
)
->
FileSystemResult
<
Vec
<
u8
>>
{
fn
readall
(
&
self
)
->
FileSystemResult
<
Vec
<
u8
>>
{
self
.readrest_at
(
0
)
}
fn
readrest_at
(
&
self
,
offset
:
usize
)
->
FileSystemResult
<
Vec
<
u8
>>
{
self
.readvec_at
(
offset
,
usize
::
MAX
)
}
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment
Menu
Explore
Projects
Groups
Topics
Snippets