I probably shouldn’t say which vendor it was, but think about how many
choices there are…not a lot…
joe
-----Original Message-----
From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com] On Behalf Of Gary G. Little
Sent: Monday, June 21, 2010 4:53 PM
To: Windows File Systems Devs Interest List
Subject: RE: [ntfsd] Force Flushing FS MetaData
Sounds like Seagate …=20
Gary G. Little
H (952) 223-1349
C (952) 454-4629
xxxxx@comcast.net
-----Original Message-----
From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com] On Behalf Of Joseph M. =
Newcomer
Sent: Monday, June 21, 2010 11:40 AM
To: Windows File Systems Devs Interest List
Subject: RE: [ntfsd] Force Flushing FS MetaData
One disk drive vendor told me (and this is why you should never let =
techies
onto the show floor): “When you flush data to the drive, it is flushed =
to
the onboard cache of the drive, and the driver declares that the data =
has
been successfully flushed. At some future time, this cached data is =
written
to the platter. We have no way to let you guarantee that the data has =
been
flushed to the platter.” So, I ask, “So if there is a power failure =
while
the data is in the drive’s onboard cache, you can’t guarantee the =
integrity
of the data. This would be particularly bad if I’m using a transacted
database. Right?” Reply: “Yes, but then we just blame it on Microsoft”.
joe
-----Original Message-----
From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com] On Behalf Of Don Burn
Sent: Monday, June 21, 2010 10:22 AM
To: Windows File Systems Devs Interest List
Subject: RE:[ntfsd] Force Flushing FS MetaData
As has been said many times in the past there is no way to force NTFS to
flush any data (either meta or file) in a manner that can be relied on,
except for dismounting the volume.
Don Burn (MVP, Windows DKD)
Windows Filesystem and Driver Consulting
Website: http://www.windrvr.com
Blog: http://msmvps.com/blogs/WinDrvr
From: amitr0 [mailto:xxxxx@gmail.com] Posted At: Monday, June 21, =
2010
10:19 AM Posted To: ntfsd
Conversation: Force Flushing FS MetaData
Subject: Force Flushing FS MetaData
Hello all,
=A0
is there a way to force flush the NTFS metadata to the disk at a =
particular
time? I have tried ZwFlushBuffersFile but that doesnt seem to work even
though it returns success.
=A0
Here is the scenario:
=A0
- i do a CreateFileW(pwcszFileName, GENERIC_READ | GENERIC_WRITE,
FILE_SHARE_READ | FILE_SHARE_WRITE, 0, CREATE_ALWAYS, =
FILE_ATTRIBUTE_NORMAL
| FILE_FLAG_NO_BUFFERING | FILE_FLAG_WRITE_THROUGH, 0); 2. I set file =
size
by SetFilePointerEx( hFile,liDistanceToMove,NULL, FILE_BEGIN); 3. set =
the
EOF SetEndOfFile(hFile); 4. zwFlushBuffersFile(hFile,&IoStatusBlock);
- CloseHandle(hFile)
=A0
right after this, when I look at the MFT to see if the entry has been
created, it doesn’t show it (we have debug code to parse NTFS correctly)
=A0
So is there a way via some IOCTL or otherwise to ask NTFS to flushthe FS
meta data.
=A0
=A0
Would IOCTL_VOLSNAP_FLUSH_AND_HOLD_WRITES work?
=A0
thanks
=A0
amit
=A0
–
__________ Information from ESET Smart Security, version of virus =
signature
database 5215 (20100621) __________
The message was checked by ESET Smart Security.
http://www.eset.com
NTFSD is sponsored by OSR
For our schedule of debugging and file system seminars (including our =
new fs
mini-filter seminar) visit:=20
http://www.osr.com/seminars
To unsubscribe, visit the List Server section of OSR Online at
http://www.osronline.com/page.cfm?name=3DListServer
–
This message has been scanned for viruses and dangerous content by
MailScanner, and is believed to be clean.
NTFSD is sponsored by OSR
For our schedule of debugging and file system seminars
(including our new fs mini-filter seminar) visit:=20
http://www.osr.com/seminars
To unsubscribe, visit the List Server section of OSR Online at
http://www.osronline.com/page.cfm?name=3DListServer
NTFSD is sponsored by OSR
For our schedule of debugging and file system seminars
(including our new fs mini-filter seminar) visit:=20
http://www.osr.com/seminars
To unsubscribe, visit the List Server section of OSR Online at
http://www.osronline.com/page.cfm?name=3DListServer
–=20
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.