@@ 88-95 (lines=8) @@ | ||
85 | $parm['name'] = $mount_buf[1]; |
|
86 | if (PSI_SHOW_MOUNT_OPTION) $parm['options'] = $mount_buf[4]; |
|
87 | $mount_parm[] = $parm; |
|
88 | } elseif (preg_match("/(\S+) on ([\S ]+) \((\S+)(,\s(.*))?\)/", $mount_line, $mount_buf)) { |
|
89 | $parm = array(); |
|
90 | $parm['mountpoint'] = trim($mount_buf[2]); |
|
91 | $parm['fstype'] = $mount_buf[3]; |
|
92 | $parm['name'] = $mount_buf[1]; |
|
93 | if (PSI_SHOW_MOUNT_OPTION) $parm['options'] = isset($mount_buf[5]) ? $mount_buf[5] : ''; |
|
94 | $mount_parm[] = $parm; |
|
95 | } |
|
96 | } |
|
97 | } elseif (CommonFunctions::rfts("/etc/mtab", $mount)) { |
|
98 | $mount = preg_split("/\n/", $mount, -1, PREG_SPLIT_NO_EMPTY); |
|
@@ 100-108 (lines=9) @@ | ||
97 | } elseif (CommonFunctions::rfts("/etc/mtab", $mount)) { |
|
98 | $mount = preg_split("/\n/", $mount, -1, PREG_SPLIT_NO_EMPTY); |
|
99 | foreach ($mount as $mount_line) { |
|
100 | if (preg_match("/(\S+) (\S+) (\S+) (\S+) ([0-9]+) ([0-9]+)/", $mount_line, $mount_buf)) { |
|
101 | $parm = array(); |
|
102 | $mount_point = preg_replace("/\\\\040/i", ' ', $mount_buf[2]); //space as \040 |
|
103 | $parm['mountpoint'] = $mount_point; |
|
104 | $parm['fstype'] = $mount_buf[3]; |
|
105 | $parm['name'] = $mount_buf[1]; |
|
106 | if (PSI_SHOW_MOUNT_OPTION) $parm['options'] = $mount_buf[4]; |
|
107 | $mount_parm[] = $parm; |
|
108 | } |
|
109 | } |
|
110 | } |
|
111 | if (CommonFunctions::executeProgram('df', '-k '.$df_param, $df, PSI_DEBUG) && ($df!=="")) { |