From 362efbe902f5b00b58591b4c82b7aff0136e0176 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Serta=C3=A7=20=C3=87EL=C4=B0K?= Date: Sat, 3 Oct 2015 02:45:43 +0300 Subject: [PATCH 1/3] Update v-update-user-quota --- bin/v-update-user-quota | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bin/v-update-user-quota b/bin/v-update-user-quota index 85330e450..013ee3869 100755 --- a/bin/v-update-user-quota +++ b/bin/v-update-user-quota @@ -33,7 +33,7 @@ is_object_valid 'user' 'USER' "$user" # Updating disk quota quota=$(get_user_value '$DISK_QUOTA') soft=$((quota * 1000)) -hard=$((quota + 50000)) +hard=$((soft + 50000)) # Searching home mount point mnt=$(df -P /home |awk '{print $6}' |tail -n1) From 3bcad0078db9996164e57d2112fe626962e7b5a5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Serta=C3=A7=20=C3=87EL=C4=B0K?= Date: Sat, 10 Oct 2015 00:23:33 +0300 Subject: [PATCH 2/3] Update v-update-user-quota # Hard quota set to more than 10% of soft quota. This is more meaningful. --- bin/v-update-user-quota | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/bin/v-update-user-quota b/bin/v-update-user-quota index 013ee3869..fcb220182 100755 --- a/bin/v-update-user-quota +++ b/bin/v-update-user-quota @@ -31,9 +31,10 @@ is_object_valid 'user' 'USER' "$user" #----------------------------------------------------------# # Updating disk quota +# Hard quota set to more than 10%. This is more meaningful. quota=$(get_user_value '$DISK_QUOTA') -soft=$((quota * 1000)) -hard=$((soft + 50000)) +soft=$((quota * 1024)) +hard=$((soft * 1.10)) # Searching home mount point mnt=$(df -P /home |awk '{print $6}' |tail -n1) From 83f1b3a426d760b20c25be6eaa16052763e6a1fd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Serta=C3=A7=20=C3=87EL=C4=B0K?= Date: Sat, 10 Oct 2015 00:39:53 +0300 Subject: [PATCH 3/3] Update v-update-user-quota --- bin/v-update-user-quota | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/bin/v-update-user-quota b/bin/v-update-user-quota index fcb220182..3dffb1220 100755 --- a/bin/v-update-user-quota +++ b/bin/v-update-user-quota @@ -31,10 +31,10 @@ is_object_valid 'user' 'USER' "$user" #----------------------------------------------------------# # Updating disk quota -# Hard quota set to more than 10%. This is more meaningful. +# Had quota equals package value. Soft quota equals 90% of package value for warnings. quota=$(get_user_value '$DISK_QUOTA') -soft=$((quota * 1024)) -hard=$((soft * 1.10)) +soft=$((quota * 1024 * 0.90)) +hard=$((quota * 1024)) # Searching home mount point mnt=$(df -P /home |awk '{print $6}' |tail -n1)