Re: NTFS block allocation policy (how does it work?)
From: George M. Garner Jr. (gmgarner_at_newsgroup.nospam)
Date: 02/26/05
- Next message: George M. Garner Jr.: "Re: Relative open with a volume handle ?"
- Previous message: Michael: "Re: Performance IOCTL's"
- In reply to: Pat [MSFT]: "Re: NTFS block allocation policy (how does it work?)"
- Next in thread: Pat [MSFT]: "Re: NTFS block allocation policy (how does it work?)"
- Reply: Pat [MSFT]: "Re: NTFS block allocation policy (how does it work?)"
- Messages sorted by: [ date ] [ thread ]
Date: Sat, 26 Feb 2005 02:48:33 -0500
Pat,
> If you know at least the approximate size of the file, the best thing to
> do would be to pre-allocate the file, then go back and write to it.<
Could you be more specific as to how to allocate the file. I see the
function SetFileValidData. But that assumes that you already have allocated
the file. Elsewhere I have read that one should not use SetFilePointer(Ex)
because of the added overhead of writing zeros to the file. Is there a way
to allocate the file without incurring the overhead of immediately zeroing
out the clusters. I know the pagefile does this but I do not see an api
that permits it.
Regards,
George.
- Next message: George M. Garner Jr.: "Re: Relative open with a volume handle ?"
- Previous message: Michael: "Re: Performance IOCTL's"
- In reply to: Pat [MSFT]: "Re: NTFS block allocation policy (how does it work?)"
- Next in thread: Pat [MSFT]: "Re: NTFS block allocation policy (how does it work?)"
- Reply: Pat [MSFT]: "Re: NTFS block allocation policy (how does it work?)"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|
|