From 8eaae085fa181b4eb0f05c5e0bf6464fcfb9a78c Mon Sep 17 00:00:00 2001 From: bergware Date: Tue, 28 Feb 2023 21:08:45 +0100 Subject: [PATCH] DeviceInfo: fix status reporting --- plugins/dynamix/include/FileSystemStatus.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/dynamix/include/FileSystemStatus.php b/plugins/dynamix/include/FileSystemStatus.php index 7cda3d7c2..d4ebc21ea 100644 --- a/plugins/dynamix/include/FileSystemStatus.php +++ b/plugins/dynamix/include/FileSystemStatus.php @@ -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':