mirror of
https://github.com/rustfs/rustfs.git
synced 2026-01-16 17:20:33 +00:00
feat(grpc): walk_dir http
fix(ecstore): rebalance loop
This commit is contained in:
11
scripts/dev_clear.sh
Normal file
11
scripts/dev_clear.sh
Normal file
@@ -0,0 +1,11 @@
|
||||
for i in {0..3}; do
|
||||
DIR="/data/rustfs$i"
|
||||
echo "处理 $DIR"
|
||||
if [ -d "$DIR" ]; then
|
||||
echo "清空 $DIR"
|
||||
sudo rm -rf "$DIR"/* "$DIR"/.[!.]* "$DIR"/..?* 2>/dev/null || true
|
||||
echo "已清空 $DIR"
|
||||
else
|
||||
echo "$DIR 不存在,跳过"
|
||||
fi
|
||||
done
|
||||
Reference in New Issue
Block a user