diff options
author | Tim Schumacher <timschumi@gmx.de> | 2022-12-11 17:49:00 +0100 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2022-12-12 14:16:42 +0100 |
commit | ed4c2f2f8ea59295edceca77bf308df5de6872d6 (patch) | |
tree | c28004c0fcfe0146d40549c74ec256eb50f3eb44 /Userland/Utilities/mount.cpp | |
parent | 5061a905ff561743c7de9c7a413845b714ab4ee2 (diff) | |
download | serenity-ed4c2f2f8ea59295edceca77bf308df5de6872d6.zip |
LibCore: Rename `Stream::read_all` to `read_until_eof`
This generally seems like a better name, especially if we somehow also
need a better name for "read the entire buffer, but not the entire file"
somewhere down the line.
Diffstat (limited to 'Userland/Utilities/mount.cpp')
-rw-r--r-- | Userland/Utilities/mount.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Userland/Utilities/mount.cpp b/Userland/Utilities/mount.cpp index bee21b39a0..21e731f58b 100644 --- a/Userland/Utilities/mount.cpp +++ b/Userland/Utilities/mount.cpp @@ -150,7 +150,7 @@ static ErrorOr<void> print_mounts() // Output info about currently mounted filesystems. auto df = TRY(Core::Stream::File::open("/sys/kernel/df"sv, Core::Stream::OpenMode::Read)); - auto content = TRY(df->read_all()); + auto content = TRY(df->read_until_eof()); auto json = TRY(JsonValue::from_string(content)); json.as_array().for_each([](auto& value) { |