Hi
i want to create a file which cluster continued and can not move. this file’s attribute likes pagefile.sys. which way can help to create this file?
Thanks in advance!
Hi
i want to create a file which cluster continued and can not move. this file’s attribute likes pagefile.sys. which way can help to create this file?
Thanks in advance!
IIRC you cannot move a file that is open, so that makes that easy. I don’t
know what you mean by cluster continued, if you mean cluster contiguous
pagefiles are definitely not so.
–
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
wrote in message news:xxxxx@ntdev…
> Hi
> i want to create a file which cluster continued and can not move. this
> file’s attribute likes pagefile.sys. which way can help to create this
> file?
>
> Thanks in advance!
>
To Don Burn.
Thanks for your answer. You are right,i want to create a file which cluster contiguous.can you give me a advice?
Thank you!
Le Mon, 27 Aug 2007 21:48:45 -0400 (EDT), Zeaphyr@126.com a ecrit:
To Don Burn.
Thanks for your answer. You are right,i want to create a file which
cluster contiguous.can you give me a advice?
Thank you!
Perhaps you can use a dedicated partition? What exactly do you want to do?
–
EA
… using a dedicated partition alone will not help to create a file with
contiguous clusters.
Else
“Edouard A.”
To: “Windows System Software Devs Interest List”
Sent by: cc:
bounce-298537-16691@li Subject: RE:[ntdev] can i create a file such as pagefile.sys
sts.osr.com
08/28/2007 01:14 PM
Please respond to
“Windows System
Software Devs Interest
List”
Le Mon, 27 Aug 2007 21:48:45 -0400 (EDT), Zeaphyr@126.com a ecrit:
> To Don Burn.
> Thanks for your answer. You are right,i want to create a file which
> cluster contiguous.can you give me a advice?
> Thank you!
Perhaps you can use a dedicated partition? What exactly do you want to do?
–
EA
—
NTDEV is sponsored by OSR
For our schedule of WDF, WDM, debugging and other seminars visit:
http://www.osr.com/seminars
To unsubscribe, visit the List Server section of OSR Online at
http://www.osronline.com/page.cfm?name=ListServer
Alone not, but the idea was to have a separate partition you access RAW.
The separate partition is to avoid influence from user usage on the regular
partitions and avoid problems with your direct access on user usage.
If you want to play you could even write your own dumbed-down file system
that would do all the work for you. ![]()
–
EA
Le Tue, 28 Aug 2007 13:35:40 +0200, Else Kluger a
ecrit:
> … using a dedicated partition alone will not help to create a file with
> contiguous clusters.
>
> Else
>
>
>
>
> “Edouard A.”
> To: “Windows
> System Software Devs Interest List”
> Sent by: cc:
> bounce-298537-16691@li Subject: RE:[ntdev]
> can i create a file such as pagefile.sys
> sts.osr.com
>
>
> 08/28/2007 01:14 PM
> Please respond to
> “Windows System
> Software Devs Interest
> List”
>
>
>
>
>
> Le Mon, 27 Aug 2007 21:48:45 -0400 (EDT), Zeaphyr@126.com a ecrit:
>> To Don Burn.
>> Thanks for your answer. You are right,i want to create a file which
>> cluster contiguous.can you give me a advice?
>> Thank you!
>
>
> Perhaps you can use a dedicated partition? What exactly do you want to
do?
>
> –
>
> EA
>
>
> —
> NTDEV is sponsored by OSR
>
> For our schedule of WDF, WDM, debugging and other seminars visit:
> http://www.osr.com/seminars
>
> To unsubscribe, visit the List Server section of OSR Online at
> http://www.osronline.com/page.cfm?name=ListServer
>
>
> —
> NTDEV is sponsored by OSR
>
> For our schedule of WDF, WDM, debugging and other seminars visit:
> http://www.osr.com/seminars
>
> To unsubscribe, visit the List Server section of OSR Online at
> http://www.osronline.com/page.cfm?name=ListServer
–
EA
To Edouard:
thanks for you answer! Do you advice me that i allocate some space form the disk,and use this space create a partition,then use the partiton as a file?
But i want to create a file on the partition which has existed on the disk.beacuse i want to use this file as a disk.
thanks!
Several individuals here do consulting and will be happy to design your
system. They will even develop it for you.
If you want to do it yourself, read the specs on the FAT file system. Study
the sources for FASTFAT.sys. Look at the WDK’s documentation for the
storage stack. Many people have done this and there are many samples
available, though mostly in executable form only.
–
David J. Craig
Engineer, Sr. Staff Software Systems
Broadcom Corporation
wrote in message news:xxxxx@ntdev…
> To Edouard:
> thanks for you answer! Do you advice me that i allocate some space form
> the disk,and use this space create a partition,then use the partiton as a
> file?
> But i want to create a file on the partition which has existed on the
> disk.beacuse i want to use this file as a disk.
> thanks!
>
>
>
>
to David J. Craig
i know that on the FAT FS,i can modify the FAT table to get the contingous clusters’ file.but i want to create the file on the NTFS!
thanks
If I understand correctly, you want to create a virtual volume from a file
that sits on another volume?
For this, it is not required to have the file contiguous.
Le Tue, 28 Aug 2007 21:36:46 -0400 (EDT), Zeaphyr@126.com a ecrit:
To Edouard:
thanks for you answer! Do you advice me that i allocate some space form
the disk,and use this space create a partition,then use the partiton as a
file?
But i want to create a file on the partition which has existed on the
disk.beacuse i want to use this file as a disk.
thanks!
–
EA
To Edouard:
Yes.i want to create a virtual volume.to create a file contiguous is only for Read/Write operation easily.can you give me some advice to create a contiguous file?
thanks!
Le Wed, 29 Aug 2007 07:14:11 -0400 (EDT), Zeaphyr@126.com a ecrit:
To Edouard:
Yes.i want to create a virtual volume.to create a file contiguous is only
for Read/Write operation easily.can you give me some advice to create a
contiguous file?
You will do the read write through the file system, not directly from the
storage device. Thus you don’t need to bother how/where is your file.
–
EA
I would agree that you do not need to do so, and as a design it is quite
limited. However, if you wish to do this, the easiest way that I know
of is to create a file and then defragment it using the documented FSTCL
codes. See the SDK documentation for defragmentation if you are
interested in this.
Good luck,
mm
-----Original Message-----
From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com] On Behalf Of Edouard A.
Sent: Wednesday, August 29, 2007 07:48
To: Windows System Software Devs Interest List
Subject: RE:[ntdev] can i create a file such as pagefile.sys
Le Wed, 29 Aug 2007 07:14:11 -0400 (EDT), Zeaphyr@126.com a ecrit:
To Edouard:
Yes.i want to create a virtual volume.to create a file contiguous is
only
for Read/Write operation easily.can you give me some advice to create
a
contiguous file?
You will do the read write through the file system, not directly from
the
storage device. Thus you don’t need to bother how/where is your file.
–
EA
NTDEV is sponsored by OSR
For our schedule of WDF, WDM, debugging and other seminars visit:
http://www.osr.com/seminars
To unsubscribe, visit the List Server section of OSR Online at
http://www.osronline.com/page.cfm?name=ListServer
to MM & Edouard A.:
thanks for you answers.you give me a new way to get the contigous file!i will try it !thank you!
If the file was opened with FILE_SHARE_DELETE, you can rename (move) it.
This is the reason why you can rename away a .dll or .exe that is in use -
because LDR opens the files with FILE_SHARE_DELETE.
–
Ken Johnson (Skywing)
Windows SDK MVP
http://www.nynaeve.net
“Don Burn” wrote in message news:xxxxx@ntdev…
> IIRC you cannot move a file that is open, so that makes that easy. I
> don’t know what you mean by cluster continued, if you mean cluster
> contiguous pagefiles are definitely not so.
>
>
> –
> 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
>
> wrote in message news:xxxxx@ntdev…
>> Hi
>> i want to create a file which cluster continued and can not move. this
>> file’s attribute likes pagefile.sys. which way can help to create this
>> file?
>>
>> Thanks in advance!
>>
>
>
>
Hmm. Just now noticed that you were talking about cluster moving and not
file name moving. Disregard my comment.
–
Ken Johnson (Skywing)
Windows SDK MVP
http://www.nynaeve.net
“Skywing” wrote in message
news:xxxxx@ntdev…
> If the file was opened with FILE_SHARE_DELETE, you can rename (move) it.
> This is the reason why you can rename away a .dll or .exe that is in use -
> because LDR opens the files with FILE_SHARE_DELETE.
>
> –
> Ken Johnson (Skywing)
> Windows SDK MVP
> http://www.nynaeve.net
> “Don Burn” wrote in message news:xxxxx@ntdev…
>> IIRC you cannot move a file that is open, so that makes that easy. I
>> don’t know what you mean by cluster continued, if you mean cluster
>> contiguous pagefiles are definitely not so.
>>
>>
>> –
>> 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
>>
>> wrote in message news:xxxxx@ntdev…
>>> Hi
>>> i want to create a file which cluster continued and can not move. this
>>> file’s attribute likes pagefile.sys. which way can help to create this
>>> file?
>>>
>>> Thanks in advance!
>>>
>>
>>
>>
>
>