Skip to content
This repository has been archived by the owner on May 3, 2024. It is now read-only.

Commit

Permalink
CORTX-24059: Added helpful debug info in m0reportbug (#996)
Browse files Browse the repository at this point in the history
Displaying the size of live core dir before capturing
the data is helpful if the size of directory is huge.

Signed-off-by: Rinku Kothiya <rinku.kothiya@seagate.com>
  • Loading branch information
rkothiya authored Sep 2, 2022
1 parent ec5b90e commit 7c91f3d
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions utils/m0reportbug
Original file line number Diff line number Diff line change
Expand Up @@ -156,6 +156,12 @@ main() {
echo "OK$(_time $t)" >&2
done

# Helps in debugging, If m0reportbug fails due to huge size
echo "du -sh $LIVE_CORE_DIR" >&2
du_output=`du -sh "$LIVE_CORE_DIR" 2>&1`
echo "$du_output" >&2
echo "The size of $LIVE_CORE_DIR is : $du_size"

# Create directory and put only latest files created into it.
TEMP_WORKSPACE="$LIVE_CORE_DIR/tmpspace/"
rm -rf "$TEMP_WORKSPACE"
Expand Down

0 comments on commit 7c91f3d

Please sign in to comment.