From ad571b7569b94ba482a00b8e06f0f9bc72283f69 Mon Sep 17 00:00:00 2001 From: Dietmar Maurer Date: Thu, 3 Sep 2015 09:53:55 +0200 Subject: [PATCH] new helper: read_proc_mounts --- src/PVE/ProcFSTools.pm | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/PVE/ProcFSTools.pm b/src/PVE/ProcFSTools.pm index 2d3123b..fea539a 100644 --- a/src/PVE/ProcFSTools.pm +++ b/src/PVE/ProcFSTools.pm @@ -284,6 +284,10 @@ sub read_proc_net_route { return $res; } +sub read_proc_mounts { + return PVE::Tools::file_get_contents("/proc/mounts"); +} + sub read_proc_net_ipv6_route { my $filename = "/proc/net/ipv6_route"; -- 2.39.2