Bad: is linux quota behavior expected
by MKAMALKUMAR from LinuxQuestions.org on (#6QB1A)
Hi Team,
This query is reg linux quota.
Where for a filesystem tmpfs for user root with soft limit as 50MB and Hard limit 70MB and Block Grace Period is 30seconds.
When I tried to create a file of size 90MB in the respective directory(/var/log/sample/), it created a file of size 90MB with an error disk quota exceeded.
#dd if=/dev/zero of=testfile.txt bs=1M count=90
#/home/admin# df -h /var/log/sample/
Filesystem Size Used Avail Use% Mounted on
tmpfs 100MB 94MB 0 100% /var/volatile
Note: Numbers above a approximate numbers.
I understood that as my directory /var/log/sample/ is mounted on /var/volatile with a size of 100MB, system was able to create testfile.txt of size 90MB. But this file was removed with in some seconds, looks grace period 30seconds effect.
But actual issue is when I tried to create a file of size 90MB which is crossing Block Limit of 70MB, is creating the file of size 90MB and deleting it after grace period of 30seconds expected ?
This query is reg linux quota.
Where for a filesystem tmpfs for user root with soft limit as 50MB and Hard limit 70MB and Block Grace Period is 30seconds.
When I tried to create a file of size 90MB in the respective directory(/var/log/sample/), it created a file of size 90MB with an error disk quota exceeded.
#dd if=/dev/zero of=testfile.txt bs=1M count=90
#/home/admin# df -h /var/log/sample/
Filesystem Size Used Avail Use% Mounted on
tmpfs 100MB 94MB 0 100% /var/volatile
Note: Numbers above a approximate numbers.
I understood that as my directory /var/log/sample/ is mounted on /var/volatile with a size of 100MB, system was able to create testfile.txt of size 90MB. But this file was removed with in some seconds, looks grace period 30seconds effect.
But actual issue is when I tried to create a file of size 90MB which is crossing Block Limit of 70MB, is creating the file of size 90MB and deleting it after grace period of 30seconds expected ?