From aa03e75cddeece575b303e652d8b2d169b256f45 Mon Sep 17 00:00:00 2001 From: Tom Mortensen Date: Sun, 26 Jul 2020 10:44:14 -0700 Subject: [PATCH] Ensure proper directoies exists in /var/lib for file system check status. --- plugins/dynamix/scripts/btrfs_check | 2 ++ plugins/dynamix/scripts/reiserfs_check | 2 ++ plugins/dynamix/scripts/xfs_check | 3 ++- 3 files changed, 6 insertions(+), 1 deletion(-) diff --git a/plugins/dynamix/scripts/btrfs_check b/plugins/dynamix/scripts/btrfs_check index 080bd1ff3..bafdb0cd0 100755 --- a/plugins/dynamix/scripts/btrfs_check +++ b/plugins/dynamix/scripts/btrfs_check @@ -3,6 +3,8 @@ # btrfs_check status # btrfs_check cancel +# by default btrfs-check outputs to /var/lib/btrfs +mkdir -p /var/lib/btrfs case "$1" in 'start') exec /sbin/btrfs check $4 $2 &> /var/lib/btrfs/check.status.$3 & diff --git a/plugins/dynamix/scripts/reiserfs_check b/plugins/dynamix/scripts/reiserfs_check index f08c2666f..9896880ed 100755 --- a/plugins/dynamix/scripts/reiserfs_check +++ b/plugins/dynamix/scripts/reiserfs_check @@ -3,6 +3,8 @@ # reiserfs_check status # reiserfs_check cancel +# using /var/lib because that's where btrfs puts status +mkdir -p /var/lib/reiserfs case "$1" in 'start') # using /var/lib because that's where btrfs puts status diff --git a/plugins/dynamix/scripts/xfs_check b/plugins/dynamix/scripts/xfs_check index e7cab17cd..6358b4610 100755 --- a/plugins/dynamix/scripts/xfs_check +++ b/plugins/dynamix/scripts/xfs_check @@ -3,9 +3,10 @@ # xfs_check status # xfs_check cancel +# using /var/lib because that's where btrfs puts status +mkdir -p /var/lib/xfs case "$1" in 'start') - # using /var/lib because that's where btrfs puts status exec /sbin/xfs_repair $4 $2 &> /var/lib/xfs/check.status.$3 & ;; 'status')