#!/bin/bash
set -e
sudo du --apparent-size --max-depth 1 data | sort -k 2
sudo du --apparent-size --max-depth 1 mount | sort -k 2
sudo ls -lR mount >/dev/null
sudo find mount/r1 | wc -l
sudo find mount/r2 | wc -l
sudo find mount/r3 | wc -l
sudo find mount/r4 | wc -l
echo "OK: filesystem clean"