Utilities: Use new global variables at /sys/kernel/ directory

This commit is contained in:
Liav A 2022-10-14 21:56:19 +03:00 committed by Andrew Kaster
commit 9d1ba0e6ad
Notes: sideshowbarker 2024-07-17 05:06:11 +09:00
21 changed files with 30 additions and 29 deletions

View file

@ -153,7 +153,7 @@ static ErrorOr<void> mount_all()
static ErrorOr<void> print_mounts()
{
// Output info about currently mounted filesystems.
auto df = TRY(Core::File::open("/proc/df", Core::OpenMode::ReadOnly));
auto df = TRY(Core::File::open("/sys/kernel/df", Core::OpenMode::ReadOnly));
auto content = df->read_all();
auto json = TRY(JsonValue::from_string(content));