Gary
Mon Oct 22 07:14:56 PDT 2007
That's the rub ... you first have to allocate the contiguous chunk of LBAs,
most likely after a fresh format, or a defrag of the disk. You could write a
sniffer that could run the free chain looking for free, contiguous LBAs,
hopefully finding one that was of sufficient size. Or write the file, defrag
the disk, check the file for fragmenttation then lock it down. A contiguosly
sized file is of doubtful benefist since nearly all filles require updating
over a period of time which means you go through the sniff and hunt, defrag
process again.
You might try allocating a small partition for it, say 10% of the total gig
at the end of the disk, giving you a limited period of growth during which
you would not have to worry about fragmentation.
--
The personal opinion of
Gary G. Little
"Norman Diamond" <ndiamond@community.nospam> wrote in message
news:OKulWliEIHA.1208@TK2MSFTNGP05.phx.gbl...
> But how do you obtain a contiguous allocation to begin with? If the file
> starts out fragmented then nothing is accomplished by keeping it that way.
>
>
> "Gary G. Little" <gary.g.little@seagate.com> wrote in message
> news:47179721$0$7558$88260bb3@news.teranews.com...
>> This is from a few years bck so pardon the memory ... I think if you mark
>> the file as SYS tyhe defragmenter will not touch it; e.g.
>> "attrib yourfile.ext +s +r +h"
>>
>> that, however, may be faulty menory.
>>
>> --
>> The personal opinion of
>> Gary G. Little
>>
>> "Jeff Henkels" <jeff@mapson.jeffhenkels.com> wrote in message
>> news:Of9i9D$DIHA.3916@TK2MSFTNGP02.phx.gbl...
>>> Having de-fragged the file, is there a way to mark the file so that it
>>> can't be re-fragmented? IIRC, one of the after market defraggers shows
>>> some files as "unmovable" and thus won't touch them.
>>>
>>> If so, and if the file's length won't change over time, this may suit
>>> the OP's needs.
>>>
>>> "Don Burn" <burn@stopspam.windrvr.com> wrote in message
>>> news:eDEnv$3DIHA.4752@TK2MSFTNGP04.phx.gbl...
>>>> No there is not. You can use the defrag IOCTL's to manipulate the file
>>>> after the fact but that is all.
>>>>
>>>>
>>>> --
>>>> Don Burn (MVP, Windows DDK)
>>>> Windows 2k/XP/2k3 Filesystem and Driver Consulting
>>>> Website:
http://www.windrvr.com
>>>> Blog:
http://msmvps.com/blogs/WinDrvr
>>>> Remove StopSpam to reply
>>>>
>>>>
>>>> "Andrew Sha" <AndrewSha@discussions.microsoft.com> wrote in message
>>>> news:3C5813D5-5E28-437F-8F4F-2893A3F9A2DC@microsoft.com...
>>>>> Hi
>>>>>
>>>>> Is there any way to create a file that is guaranteed to be contiguous
>>>>> (i.e.
>>>>> not fragmented)?
>>>>>
>>>>> Regards
>>>>> Andrew
>>>>>
>>>>
>>>>
>>>
>>>
>>
>>
>