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')