What is the difference between Free-Disk-Size and Available-Free-Disk-Size?

If you are experiencing problems with "Everything", post here for assistance.
Post Reply
Biff
Posts: 1158
Joined: Mon May 25, 2015 7:09 am

What is the difference between Free-Disk-Size and Available-Free-Disk-Size?

Post by Biff »

What is the difference between Free-Disk-Size and Available-Free-Disk-Size?
NotNull
Posts: 5458
Joined: Wed May 24, 2017 9:22 pm

Re: What is the difference between Free-Disk-Size and Available-Free-Disk-Size?

Post by NotNull »

there is also a "available free disk size" property. IIRC, the difference lies in possible disk quota that are in effect for the current user.
(discussed in this thread)

Disk quota can be set up by an administrator to limit the amount of diskspace that is made available to a person, even if there is in fact more space.
void
Developer
Posts: 16683
Joined: Fri Oct 16, 2009 11:31 pm

Re: What is the difference between Free-Disk-Size and Available-Free-Disk-Size?

Post by void »

Availalbe-free-disk-size = FreeBytesAvailableToCaller
free-disk-size = TotalNumberOfFreeBytes

More detail here (GetDiskFreeSpaceExW).
Biff
Posts: 1158
Joined: Mon May 25, 2015 7:09 am

Re: What is the difference between Free-Disk-Size and Available-Free-Disk-Size?

Post by Biff »

Thank you for the links.

So available free disk size is just the total amount of free space being available.

And free-disk-size is the amount of free space available for a user (what might be the same like the available free disk size, but it can be limited by the admin).
Biff
Posts: 1158
Joined: Mon May 25, 2015 7:09 am

Re: What is the difference between Free-Disk-Size and Available-Free-Disk-Size?

Post by Biff »

But why then can the size for "free disk size" be higher than the "available free disk size"(?):
Image
void
Developer
Posts: 16683
Joined: Fri Oct 16, 2009 11:31 pm

Re: What is the difference between Free-Disk-Size and Available-Free-Disk-Size?

Post by void »

Could be a couple of reasons:

1). The system may reserve extra space.

2). Everything doesn't update these properties in real-time.
They are only updated when the root folder changes.

In short, avoid indexing Free-Disk-Size and Available-Free-Disk-Size
Biff
Posts: 1158
Joined: Mon May 25, 2015 7:09 am

Re: What is the difference between Free-Disk-Size and Available-Free-Disk-Size?

Post by Biff »

They are only updated with the root folder changes.
Sorry, what kind of changes are these?
In short, avoid indexing Free-Disk-Size and Available-Free-Disk-Size
But these are very important informations. Isn't there a way to use them usefully anyway?
void
Developer
Posts: 16683
Joined: Fri Oct 16, 2009 11:31 pm

Re: What is the difference between Free-Disk-Size and Available-Free-Disk-Size?

Post by void »

They are only updated with the root folder changes.
Sorry, what kind of changes are these?
For NTFS volumes, when a child file/folder is created, deleted, modified or renamed.
For non-NTFS volumes it is hard to say. Assume never.



In short, avoid indexing Free-Disk-Size and Available-Free-Disk-Size
But these are very important informations. Isn't there a way to use them usefully anyway?
These properties are designed for showing volume information when it is displayed.
For example, with the following search:

root: addcolumn:Free-Disk-Size;Available-Free-Disk-Size

If the volumes are offline, this information is not available.

These properties are not designed to be indexed.

I will consider storing and maintaining the available disk space in a future version of Everything.
Biff
Posts: 1158
Joined: Mon May 25, 2015 7:09 am

Re: What is the difference between Free-Disk-Size and Available-Free-Disk-Size?

Post by Biff »

For NTFS volumes, when a child file/folder is created, deleted, modified or renamed.
So if one creates a folder here - C:, for example C:\Every - or a file, e.g. C:\every.txt. Only then will these properties be updated? Because of the entry in "Exclude folders"? So that could never be the case. May be one could choose a single file or folder that each time the drive is online will be updated. But what file or folder should that be?
These properties are not designed to be indexed.
But as long as there is a change in the root folder (each time it is online) these properties will work exactly for this purpose?
I will consider storing and maintaining the available disk space in a future version of Everything.
That is great, thank you very much. And may be the total disk size and the used space size, May be in a column / columns in the folders panel and / or near the drive letter / index.
Post Reply