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

EOS-24059: Added helpful debug info in m0reportbug #996

Merged
merged 2 commits into from
Sep 2, 2022
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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