mirror of
https://github.com/unraid/webgui.git
synced 2026-01-05 17:20:04 -06:00
feat: ntfs file system support
This commit is contained in:
@@ -14,7 +14,7 @@
|
||||
$docroot ??= ($_SERVER['DOCUMENT_ROOT'] ?: '/usr/local/emhttp');
|
||||
|
||||
$cmd = $_POST['cmd'];
|
||||
$path = $_POST['path'];
|
||||
$path = escapeshellarg($_POST['path']);
|
||||
|
||||
function btrfs($data) {return "btrfs-$data";}
|
||||
function zfs($data) {return "zfs-".strtok($data,' ');}
|
||||
@@ -22,7 +22,7 @@ function zfs($data) {return "zfs-".strtok($data,' ');}
|
||||
switch ($cmd) {
|
||||
case 'status':
|
||||
exec("ps -C btrfs -o cmd=|awk '/$path\$/{print $2}'",$btrfs);
|
||||
exec("/usr/sbin/zpool status $path|grep -Po '(scrub|resilver|expansion) in progress'",$zfs);
|
||||
exec("/usr/sbin/zpool status $path|grep -Po '(scrub|resilver|expansion of \S+) in progress'",$zfs);
|
||||
echo implode(',',array_merge(array_map('btrfs',$btrfs),array_map('zfs',$zfs)));
|
||||
break;
|
||||
case 'btrfs-balance':
|
||||
|
||||
Reference in New Issue
Block a user