Skip to content

Commit 42a100c

Browse files
committed
Added error handler for unsupported fs types
1 parent e7efa13 commit 42a100c

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

bin/v-add-sys-quota

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,11 @@ chmod a+x /etc/cron.daily/quotacheck
6666
# Enabling fs quota
6767
if [ ! -z "$(quotaon -pa|grep " $mnt "|grep user|grep 'off')" ]; then
6868
quotaon $mnt
69+
if [ $? -ne 0 ]; then
70+
echo "Error: quota can't be enabled on $mnt partition"
71+
log_event "$E_DISK" "$EVENT"
72+
exit $E_DISK
73+
fi
6974
fi
7075

7176
# Updating DISK_QUOTA value

0 commit comments

Comments
 (0)