mirror of
https://git.proxmox.com/git/mirror_zfs.git
synced 2024-12-25 18:59:33 +03:00
scripts: zfs.sh: remove cat
Reviewed-by: Tony Hutter <hutter2@llnl.gov> Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov> Signed-off-by: Ahelenia Ziemiańska <nabijaczleweli@nabijaczleweli.xyz> Closes #13274
This commit is contained in:
parent
ad9e767657
commit
f6f505c4d6
@ -75,7 +75,7 @@ done
|
||||
|
||||
kill_zed() {
|
||||
if [ -f "$ZED_PIDFILE" ]; then
|
||||
PID=$(cat "$ZED_PIDFILE")
|
||||
read -r PID <"$ZED_PIDFILE"
|
||||
kill "$PID"
|
||||
fi
|
||||
}
|
||||
@ -234,8 +234,7 @@ stack_check_linux() {
|
||||
STACK_LIMIT=15362
|
||||
|
||||
if [ -e "$STACK_MAX_SIZE" ]; then
|
||||
STACK_SIZE=$(cat "$STACK_MAX_SIZE")
|
||||
|
||||
read -r STACK_SIZE <"$STACK_MAX_SIZE"
|
||||
if [ "$STACK_SIZE" -ge "$STACK_LIMIT" ]; then
|
||||
echo
|
||||
echo "Warning: max stack size $STACK_SIZE bytes"
|
||||
|
Loading…
Reference in New Issue
Block a user