It is in the kernel. The blocks are left shifted 10 bits in
/usr/include/linux/quota.h. This leaves 22 bit for data.
7000000 = 0x6ACFC0
2805696 = 0x2ACFC0
5000000 = 0x4C4B40
805696 = 0x0C4B40
So the effective mask is 0x3FFFFF. The lower 22 (32-10) bits.
If you look in /usr/include/linux/quota.h you will find the following:
/*
* Convert diskblocks to blocks and the other way around.
*/
#define dbtob(num) (num << 10)
#define btodb(num) (num >> 10)
Do you have files larger than 4GB?
Allen
-----------------------------------------
G. Allen Morris III <gam3@acm.org>
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.tux.org/lkml/