NTFSD Folk:
This is somewhat off-topic, but I was wondering if anybody in the community
knew of a quick way to estimate the number of files on a volume (NTFS-only
is OK).
Scanning all the files on a volume takes quite a while (about an hour on my
main disk), so it’d be nice to display some progress indication. Again,
estimates are fine, i.e., the volume has about 10,000 files or 10,000,000
files.
FWIW, I’ve cheated on Unix systems by scanning the inode file. I haven’t
seen anything equivalent on NTFS.
Thanks,
Ken
maybe you could base your progress bar off of bytes scanned instead of
files scanned. Calculate your
volume size, free space, grab the high/low out of win32_find_data for
each file scanned and calculate a percentage.
m.
Ken Cross wrote:
NTFSD Folk:
This is somewhat off-topic, but I was wondering if anybody in the community
knew of a quick way to estimate the number of files on a volume (NTFS-only
is OK).
Scanning all the files on a volume takes quite a while (about an hour on my
main disk), so it’d be nice to display some progress indication. Again,
estimates are fine, i.e., the volume has about 10,000 files or 10,000,000
files.
FWIW, I’ve cheated on Unix systems by scanning the inode file. I haven’t
seen anything equivalent on NTFS.
Thanks,
Ken
Questions? First check the IFS FAQ at https://www.osronline.com/article.cfm?id=17
You are currently subscribed to ntfsd as: xxxxx@comcast.net
To unsubscribe send a blank email to xxxxx@lists.osr.com
Not a bad thought - thanks.
It probably wouldn’t work for me, though, because it requires getting the
size of each file (I currently just scan filenames in directories), and very
large files like the page file or lots of very small files would skew the
results.
Ken
-----Original Message-----
From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com] On Behalf Of MM
Sent: Friday, October 20, 2006 10:41 AM
To: Windows File Systems Devs Interest List
Subject: Re: [ntfsd] OT: Number of files on a volume
maybe you could base your progress bar off of bytes scanned instead of
files scanned. Calculate your
volume size, free space, grab the high/low out of win32_find_data for
each file scanned and calculate a percentage.
m.
Ken Cross wrote:
NTFSD Folk:
This is somewhat off-topic, but I was wondering if anybody in the community
knew of a quick way to estimate the number of files on a volume (NTFS-only
is OK).
Scanning all the files on a volume takes quite a while (about an hour on my
main disk), so it’d be nice to display some progress indication. Again,
estimates are fine, i.e., the volume has about 10,000 files or 10,000,000
files.
FWIW, I’ve cheated on Unix systems by scanning the inode file. I haven’t
seen anything equivalent on NTFS.
Thanks,
Ken
Questions? First check the IFS FAQ at
https://www.osronline.com/article.cfm?id=17
You are currently subscribed to ntfsd as: xxxxx@comcast.net
To unsubscribe send a blank email to xxxxx@lists.osr.com
Questions? First check the IFS FAQ at
https://www.osronline.com/article.cfm?id=17
You are currently subscribed to ntfsd as: xxxxx@comcast.net
To unsubscribe send a blank email to xxxxx@lists.osr.com
ok, second idea, spin off a second thread and walk the tree with
EnumDirTree; requires a redist from microsoft
though. This will take 5-10 mins though.
http://windowssdk.msdn.microsoft.com/en-us/library/ms679314(VS.80).aspx
I’ve tried to figure this one out myself - these are my best two
ideas… If you can think of something that works
better I’d love too know. The only two ideas I’ve had both have
problems; looking for a solution myself.
m.
Ken Cross wrote:
Not a bad thought - thanks.
It probably wouldn’t work for me, though, because it requires getting the
size of each file (I currently just scan filenames in directories), and very
large files like the page file or lots of very small files would skew the
results.
Ken
-----Original Message-----
From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com] On Behalf Of MM
Sent: Friday, October 20, 2006 10:41 AM
To: Windows File Systems Devs Interest List
Subject: Re: [ntfsd] OT: Number of files on a volume
maybe you could base your progress bar off of bytes scanned instead of
files scanned. Calculate your
volume size, free space, grab the high/low out of win32_find_data for
each file scanned and calculate a percentage.
m.
Ken Cross wrote:
>NTFSD Folk:
>
>This is somewhat off-topic, but I was wondering if anybody in the community
>knew of a quick way to estimate the number of files on a volume (NTFS-only
>is OK).
>
>Scanning all the files on a volume takes quite a while (about an hour on my
>main disk), so it’d be nice to display some progress indication. Again,
>estimates are fine, i.e., the volume has about 10,000 files or 10,000,000
>files.
>
>FWIW, I’ve cheated on Unix systems by scanning the inode file. I haven’t
>seen anything equivalent on NTFS.
>
>Thanks,
>Ken
>
>
>—
>Questions? First check the IFS FAQ at
>
>
https://www.osronline.com/article.cfm?id=17
>You are currently subscribed to ntfsd as: xxxxx@comcast.net
>To unsubscribe send a blank email to xxxxx@lists.osr.com
>
>
>
>
>
Questions? First check the IFS FAQ at
https://www.osronline.com/article.cfm?id=17
You are currently subscribed to ntfsd as: xxxxx@comcast.net
To unsubscribe send a blank email to xxxxx@lists.osr.com
Questions? First check the IFS FAQ at https://www.osronline.com/article.cfm?id=17
You are currently subscribed to ntfsd as: xxxxx@comcast.net
To unsubscribe send a blank email to xxxxx@lists.osr.com