diff options
author | Andreas Kling <kling@serenityos.org> | 2021-01-11 23:00:07 +0100 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2021-01-11 23:00:07 +0100 |
commit | 6412e7e8e3572c0314f5fa02bc46d7981c62bd4d (patch) | |
tree | cd7a5b4e972101ce43abbe4e5563901f711cd9b5 | |
parent | 9b907e27ce487583411197fcd38be8f41073161c (diff) | |
download | serenity-6412e7e8e3572c0314f5fa02bc46d7981c62bd4d.zip |
Kernel: Remove /proc/mounts
Everyone was already using /proc/df which has all the info anyway.
-rw-r--r-- | Kernel/FileSystem/ProcFS.cpp | 20 |
1 files changed, 0 insertions, 20 deletions
diff --git a/Kernel/FileSystem/ProcFS.cpp b/Kernel/FileSystem/ProcFS.cpp index e911d0c104..a1772e59ff 100644 --- a/Kernel/FileSystem/ProcFS.cpp +++ b/Kernel/FileSystem/ProcFS.cpp @@ -82,7 +82,6 @@ enum ProcFileType { __FI_Root_Start, FI_Root_mm, - FI_Root_mounts, FI_Root_df, FI_Root_all, FI_Root_memstat, @@ -698,24 +697,6 @@ static bool procfs$dmesg(InodeIdentifier, KBufferBuilder& builder) return true; } -static bool procfs$mounts(InodeIdentifier, KBufferBuilder& builder) -{ - // FIXME: This is obviously racy against the VFS mounts changing. - VFS::the().for_each_mount([&builder](auto& mount) { - auto& fs = mount.guest_fs(); - builder.appendf("%s @ ", fs.class_name()); - if (mount.host() == nullptr) - builder.appendf("/"); - else { - builder.appendf("%u:%u", mount.host()->fsid(), mount.host()->index()); - builder.append(' '); - builder.append(mount.absolute_path()); - } - builder.append('\n'); - }); - return true; -} - static bool procfs$df(InodeIdentifier, KBufferBuilder& builder) { // FIXME: This is obviously racy against the VFS mounts changing. @@ -1706,7 +1687,6 @@ ProcFS::ProcFS() m_root_inode = adopt(*new ProcFSInode(*this, 1)); m_entries.resize(FI_MaxStaticFileIndex); m_entries[FI_Root_mm] = { "mm", FI_Root_mm, true, procfs$mm }; - m_entries[FI_Root_mounts] = { "mounts", FI_Root_mounts, false, procfs$mounts }; m_entries[FI_Root_df] = { "df", FI_Root_df, false, procfs$df }; m_entries[FI_Root_all] = { "all", FI_Root_all, false, procfs$all }; m_entries[FI_Root_memstat] = { "memstat", FI_Root_memstat, false, procfs$memstat }; |