Kernel: Report source of synthetic filesystems as "none"

As opposed to the fs name.

This matches the new convention we have for specifying it in mount(8).
This commit is contained in:
Sergey Bugaev 2020-05-28 17:27:30 +03:00 committed by Andreas Kling
commit 2d412c5ad1
Notes: sideshowbarker 2024-07-19 06:01:24 +09:00

View file

@ -749,7 +749,7 @@ Optional<KBuffer> procfs$df(InodeIdentifier)
if (fs.is_file_backed())
fs_object.add("source", static_cast<const FileBackedFS&>(fs).file_description().absolute_path());
else
fs_object.add("source", fs.class_name());
fs_object.add("source", "none");
});
array.finish();
return builder.build();