L
lujoplujop
Someone knows how windows calculate quotas?
I have made an ASP script that uses fsutil to retrive all the files of
one user on a disk. Then I get the size of the files and I show the
results to the user.
The problem is that the size that I calculate is not the same that
windows quota calculate.
I have tried to use file sizes, to use real disk space (round the file
sizes to 4K), and another strategies.
But I don't find what's the strategy of windows. I have made this
tests:
Deleting 1 file of 145 bytes --> Quota -1K
Deleting 1 file of 39871 bytes --> Quota -41K
Deleting 1 file of 8833 bytes --> Quota -13K
Deleting 1 file of 0 bytes --> Quota -0
Deleting 1 file of 349427 bytes --> Quota -346K
Deleting 1 file of 2277376 bytes --> Quota -2226K
Someone fine some logic in the calculations?
PD: Block size of my machine is 4K
I have made an ASP script that uses fsutil to retrive all the files of
one user on a disk. Then I get the size of the files and I show the
results to the user.
The problem is that the size that I calculate is not the same that
windows quota calculate.
I have tried to use file sizes, to use real disk space (round the file
sizes to 4K), and another strategies.
But I don't find what's the strategy of windows. I have made this
tests:
Deleting 1 file of 145 bytes --> Quota -1K
Deleting 1 file of 39871 bytes --> Quota -41K
Deleting 1 file of 8833 bytes --> Quota -13K
Deleting 1 file of 0 bytes --> Quota -0
Deleting 1 file of 349427 bytes --> Quota -346K
Deleting 1 file of 2277376 bytes --> Quota -2226K
Someone fine some logic in the calculations?
PD: Block size of my machine is 4K