zeek/auxil/zeekctl/testing/Cfg/bin/df__diskfull
Patrick Kelley 8fd444092b initial
2025-05-07 15:35:15 -04:00

14 lines
481 B
Bash
Executable File

#! /usr/bin/env bash
#
# This script is a replacement for the "df" command, and is used for certain
# zeekctl test cases where we need to distinguish between when a disk is
# (almost) full, and when it is not full.
echo "Filesystem 1024-blocks Used Available Capacity Mounted on"
if [ -n "${ZEEKCTL_TEST_DISK_FULL}" ]; then
echo "/dev/sda6 249577356 245042244 4535112 98% /"
else
echo "/dev/sda6 249577356 131831812 105067708 56% /"
fi