Problem with how quotas are calculated #82
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
It would seems that web-add.sh (and therefor everything else) assume that quota are in KiB when they are rather explicitly in filesystem blocks, whose size is depending on the FS and server, but are generally 4KiB in size nowadays (the default was originally 512B then it went up to 1024B then 4096KiB).
Most notably, when setting quota in
create_www_account()
for web-add.sh quota given on the command line in GiB (1048576 KiB) should be divided by(1024*1024/4)
or262144
instead of(1024*1024)
in order to get the quota in blocks as expected bysetquota
.It honestly should take the size of block from the filesystem header instead of hard-coding it, so as not to have this problem in the future.
After rereading the documentation it is fine actually :