Merge pull request #35836 from mgfritch/vstart-out-dir-logs

vstart: out dir can contain a large number of files

Reviewed-by: Patrick Donnelly <pdonnell@redhat.com>
This commit is contained in:
Kefu Chai 2020-07-19 13:52:37 +08:00 committed by GitHub
commit 5667b033fa
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1186,7 +1186,7 @@ fi
[ -d $CEPH_OUT_DIR ] || mkdir -p $CEPH_OUT_DIR
[ -d $CEPH_DEV_DIR ] || mkdir -p $CEPH_DEV_DIR
if [ $inc_osd_num -eq 0 ]; then
$SUDO rm -rf $CEPH_OUT_DIR/*
$SUDO find "$CEPH_OUT_DIR" -type f -delete
fi
[ -d gmon ] && $SUDO rm -rf gmon/*