To move files , I’m Ok (there’s an excellent article
in
http://www.sysinternals.com/ntw2k/info/defrag.shtml).
But is it possible to resize a file without doing a
flush of data. In fact, I’m not interested in
file content but just in the fact that this file
allocates some space on the disk that nobody can
write on .
Somebody has an idea ?
Thanks
Benoit
-----Original Message-----
From: Mark Cariddi [mailto:xxxxx@osr.com]
Sent: Tuesday, January 15, 2002 6:41 PM
To: File Systems Developers
Subject: [ntfsd] RE: Is it possible to lock/unlock
NTFS cluster ?
Well, you can move the file (sometimes) as long as
the file is not in the
MFT. To do this, you have to use calls like
FSCTL_GET_VOLUME_BITMAP,
FSCTL_MOVE_FILE,
FSCTL_GET_RETRIEVAL_POINTERS, …
This is part of the Defragmentation API that MS made
public a couple of
years ago.
–Mark
Mark J. Cariddi
Consulting Associate
Open Systems Resources, Inc.
http://www.osr.com/
-----Original Message-----
From: xxxxx@ifrance.com
[mailto:xxxxx@ifrance.com]
Sent: Tuesday, January 15, 2002 12:34 PM
To: File Systems Developers
Subject: [ntfsd] RE: Is it possible to lock/unlock
NTFS cluster ?
Thanks,
But is it possible to write on a set of contiguous
clusters (at the location I want) with the least
possible I/O on the disk.
I thought of the following algorithm :
- Create a file (size = 1 cluster).
- Move the file to a specified location where you
know you have enough contiguous free clusters.
- call something like IRP_SET_FILE_INFORMATION to
resize the file
- And, hope there was no I/O and the size is good.
-----Original Message-----
From: Jamey Kirby [mailto:xxxxx@storagecraft.com]
Sent: Tuesday, January 15, 2002 6:18 PM
To: File Systems Developers
Subject: [ntfsd] RE: Is it possible to lock/unlock
NTFS cluster ?
No
-----Original Message-----
From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com] On Behalf Of
xxxxx@ifrance.com
Sent: Tuesday, January 15, 2002 8:18 AM
To: File Systems Developers
Subject: [ntfsd] Is it possible to lock/unlock NTFS
cluster ?
Hi all,
I want to know if it exists a Windows function (SDK,
DDK or other) allowing to lock and unlock NTFS
clusters. The main objective is to avoid writing on
these clusters.
I know that exists for volumes (NtFsControlFile in
tdll.dll).
Thanks
Benoit
ifrance.com, l’email gratuit le plus complet de l’Internet !
vos emails depuis un navigateur, en POP3, sur Minitel, sur le WAP…
http://www.ifrance.com/_reloc/email.emailif
You are currently subscribed to ntfsd as: $subst(‘Recip.EmailAddr’)
To unsubscribe send a blank email to leave-ntfsd-$subst(‘Recip.MemberIDChar’)@lists.osr.com