ghostrider
Cadet
- Joined
- Apr 15, 2023
- Messages
- 7
Hello,
I've been looking for an answer to this and I haven't found anything, so I'm raising this post.
I have a dataset with no children that I want to set some quotas on, so for this purpose I have set the quota to 3GB. However, to my surprise when I try to extrapolate the quota by creating a file I see that the quota is not enforced and I can create files sizes with several times beyond what's defined, just as if having a quota configured or not makes no difference.
This is the quota definition of my dataset:
This is what is displayed as free space for this dataset after the quota is defined, which looks as expected:
But after the quota is set, when I try to fill a file with the contents of /dev/zero, I can extrapolate it without any problems:
I'm mounting the dataset inside a jail, and from there I'm trying to verify that the quota is working, although I don't think it makes any difference.
Is this supposed to happen, can anyone explain this behavior?
I've been looking for an answer to this and I haven't found anything, so I'm raising this post.
I have a dataset with no children that I want to set some quotas on, so for this purpose I have set the quota to 3GB. However, to my surprise when I try to extrapolate the quota by creating a file I see that the quota is not enforced and I can create files sizes with several times beyond what's defined, just as if having a quota configured or not makes no difference.
This is the quota definition of my dataset:
This is what is displayed as free space for this dataset after the quota is defined, which looks as expected:
But after the quota is set, when I try to fill a file with the contents of /dev/zero, I can extrapolate it without any problems:
root@cloud:/mnt/data # su -m www -c 'cat /dev/zero > A'
^C
root@cloud:/mnt/data # ls -lah
total 189
drwxrwx--- 8 www www 14B Nov 9 22:41 .
drwxr-xr-x 3 root wheel 3B Oct 15 14:10 ..
[B]-rw-r--r-- 1 www www 482G Nov 9 23:01 A[/B]
(...)
I'm mounting the dataset inside a jail, and from there I'm trying to verify that the quota is working, although I don't think it makes any difference.
Is this supposed to happen, can anyone explain this behavior?