Prevent file defrag

I remember reading there was a parameter when opening files on NTFS that
will prevent the file from being defragged when open. For the life of me, I
am unable to locate information on this feature. Help!


Jamey Kirby
Disrupting the establishment since 1964

*This is a personal email account and as such, emails are not subject to
archiving. Nothing else really matters.*

Never mind.

From MSDN:

To mark an open file so that it is not defragmented, call the
*DeviceIoControl*
https:
function
with the FSCTL_MARK_HANDLE
https:control
code with MARK_HANDLE_PROTECT_CLUSTERS in the HandleInfo member of the
MARK_HANDLE_INFO
https:structure
passed in the lpInBuffer parameter.


On Wed, Dec 9, 2015 at 11:29 AM, Jamey Kirby wrote:

> I remember reading there was a parameter when opening files on NTFS that
> will prevent the file from being defragged when open. For the life of me, I
> am unable to locate information on this feature. Help!
>
> –
> Jamey Kirby
> Disrupting the establishment since 1964
>
> This is a personal email account and as such, emails are not subject to
> archiving. Nothing else really matters.

> ᐧ
>


Jamey Kirby
Disrupting the establishment since 1964

This is a personal email account and as such, emails are not subject to
archiving. Nothing else really matters.
</https:></https:></https:>

FSCTL_MARK_HANDLE

“Jamey Kirby” wrote in message news:xxxxx@ntfsd…
I remember reading there was a parameter when opening files on NTFS that will prevent the file from being defragged when open. For the life of me, I am unable to locate information on this feature. Help!



Jamey Kirby
Disrupting the establishment since 1964

This is a personal email account and as such, emails are not subject to archiving. Nothing else really matters.