PC Review


Reply
Thread Tools Rate Thread

Calculating disc quotas

 
 
lujoplujop@gmail.com
Guest
Posts: n/a
 
      8th Jul 2005
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

 
Reply With Quote
 
 
 
 
=?Utf-8?B?Qy5SLiBbbXhd?=
Guest
Posts: n/a
 
      7th Sep 2005
Hi, I need to know path and size for files in they quota size. Can you give
me tips about your asp ore publish it. Thank you, it be very usefull because
the users say that they dont have any files in a share volume and we are
having space problems.
--
C.R. [mx]
MCSE


"(E-Mail Removed)" wrote:

> 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
>
>

 
Reply With Quote
 
lujoplujop@gmail.com
Guest
Posts: n/a
 
      5th Oct 2005
I use fsutil file findbysid user unit to get the files.
Then I parse it calculating the space of each file. But I haven't found
the exact way that windows calculates quota. My best results are
rounding each file size to cluster size (normally 4096).

Cheers,

 
Reply With Quote
 
=?Utf-8?B?TV9Ib29k?=
Guest
Posts: n/a
 
      19th Dec 2005
Hi, I am interested to know more about how you obtain the location of a users
files on a disk. Can you provide full details, i.e. the exact code I should
be using, I will test this and let you know what I come up with in order to
try and help you resolve your calculations.

Thanks.

"(E-Mail Removed)" wrote:

> I use fsutil file findbysid user unit to get the files.
> Then I parse it calculating the space of each file. But I haven't found
> the exact way that windows calculates quota. My best results are
> rounding each file size to cluster size (normally 4096).
>
> Cheers,
>
>

 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Disc quotas & COM interface Petr Reichl Microsoft Dot NET Framework 0 11th Nov 2005 12:50 PM
Quotas =?Utf-8?B?RGFuaWVs?= Microsoft Windows 2000 File System 1 15th Jun 2005 03:46 PM
OT: Quotas Jake Microsoft Frontpage 2 16th Mar 2005 03:42 PM
Quotas KD Microsoft Windows 2000 0 27th Jul 2004 04:02 PM
Quotas Dion Microsoft Windows 2000 Active Directory 2 27th Nov 2003 12:10 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 10:49 AM.