mirror of
https://github.com/unraid/webgui.git
synced 2026-01-12 20:49:56 -06:00
DeviceInfo: fix status reporting
This commit is contained in:
@@ -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 -Pom1 '(scrub|resilver) in progress'",$zfs);
|
||||
exec("/usr/sbin/zpool status $path|grep -Po '(scrub|resilver) 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