]> git.proxmox.com Git - pve-common.git/commitdiff
new helper: read_proc_mounts
authorDietmar Maurer <dietmar@proxmox.com>
Thu, 3 Sep 2015 07:53:55 +0000 (09:53 +0200)
committerDietmar Maurer <dietmar@proxmox.com>
Thu, 3 Sep 2015 08:03:39 +0000 (10:03 +0200)
src/PVE/ProcFSTools.pm

index 2d3123bbbce07c33fa03c3f0c4d5f0f50acfba3c..fea539a563f1f6e8eee1770e3999fbbb962e1f87 100644 (file)
@@ -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";