From dd9474ef55bef5b30884bf7168fb6fc96552e58a Mon Sep 17 00:00:00 2001 From: dlandon Date: Thu, 13 Jun 2024 06:42:48 -0500 Subject: [PATCH 1/2] Can only show zfs pool information when disk is mounted. --- emhttp/plugins/dynamix/DeviceInfo.page | 2 ++ 1 file changed, 2 insertions(+) diff --git a/emhttp/plugins/dynamix/DeviceInfo.page b/emhttp/plugins/dynamix/DeviceInfo.page index b2d7b39fe..9a8455216 100755 --- a/emhttp/plugins/dynamix/DeviceInfo.page +++ b/emhttp/plugins/dynamix/DeviceInfo.page @@ -1067,11 +1067,13 @@ _(zfs pool status)_: : "._('Scrub')." "._('is only available when the filesyestem is mounted') : sprintf(_('See %s Settings'),ucfirst(prefix($tag)))?> +
_(Pool Information)_
_(zfs pool information)_: :
+
From f6ae1732754cced2ffd7a6b09b11c1b63dcf61cb Mon Sep 17 00:00:00 2001 From: dlandon Date: Thu, 13 Jun 2024 07:12:53 -0500 Subject: [PATCH 2/2] xfs_repair not running in the background. --- emhttp/plugins/dynamix/scripts/xfs_check | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/emhttp/plugins/dynamix/scripts/xfs_check b/emhttp/plugins/dynamix/scripts/xfs_check index 86d5ad8cb..1173f4b46 100755 --- a/emhttp/plugins/dynamix/scripts/xfs_check +++ b/emhttp/plugins/dynamix/scripts/xfs_check @@ -18,11 +18,7 @@ mkdir -p /var/lib/xfs case "$1" in 'start') # Start the xfs_repair process in the background and log output - nohup bash -c "( - /sbin/xfs_repair $4 $2 &> /var/lib/xfs/check.status.$3 - echo \$? > /var/lib/xfs/check.status.$3.exit - rm -f /var/lib/xfs/check.pid.$3 - ) &" & + /sbin/xfs_repair $4 $2 &> /var/lib/xfs/check.status.$3 & pid=$! echo $pid > /var/lib/xfs/check.pid.$3 exit 0