The limit set on the disk quota in Linux is counted in blocks. However, I did not find a reliable way to determine the block size. The tutorials I found relate to block size as 512 bytes, and sometimes 1024 bytes.
I was embarrassed to read a post on LinuxForum.org , which means block size. Therefore, I tried to find this value in the context of quotas.
I found a "Determine the block size on a hard disk file system for disk quota" review on NixCraft in which the command was suggested:
dumpe2fs /dev/sdXN | grep -i 'Block size'
or
blockdev --getbsz /dev/sdXN
But on my system, these commands returned 4096, and when I checked the size of the real quota size on the same system, I got a block size of 1024 bytes.
Is there a script for determining the size of the quota block on the device, except for creating a file with a known size and checking its use of quotas?
linux scripting quota
Chen levy
source share