Flush System Buffers for a Drive
-
I'm trying to flush all system buffers associated with a drive on a Win 2k system. The only way I found is to use an Int 21h function 710Dh from the SDK documentation. Can anyone think of another simple way to do this? I think this will help me with my testing, but it isn't worth spending a lot of time on. Brad Manske
-
I'm trying to flush all system buffers associated with a drive on a Win 2k system. The only way I found is to use an Int 21h function 710Dh from the SDK documentation. Can anyone think of another simple way to do this? I think this will help me with my testing, but it isn't worth spending a lot of time on. Brad Manske
Brad Manske wrote: The only way I found is to use an Int 21h function 710Dh from the SDK documentation. Does Int 21h work on W2k? Tomasz Sowinski -- http://www.shooltz.com
-
Brad Manske wrote: The only way I found is to use an Int 21h function 710Dh from the SDK documentation. Does Int 21h work on W2k? Tomasz Sowinski -- http://www.shooltz.com
I'm guessing that it will not. The page in the SDK is under a heading for 95/98/ME. Brad Manske
-
I'd look into DeviceIoControl. There's a control code, FSCTL_LOCK_VOLUME, which apparently does flush the buffers. You could lock and unlock immediately. I've never done this, however - treat this with 1e6 milligrams of salt. Tomasz Sowinski -- http://www.shooltz.com
As much as 1 kg. of salt? Perhaps you meant 1e3 milligrams. /ravi "There is always one more bug..." http://www.ravib.com ravib@ravib.com
-
I'm guessing that it will not. The page in the SDK is under a heading for 95/98/ME. Brad Manske
I'd look into DeviceIoControl. There's a control code, FSCTL_LOCK_VOLUME, which apparently does flush the buffers. You could lock and unlock immediately. I've never done this, however - treat this with 1e6 milligrams of salt. Tomasz Sowinski -- http://www.shooltz.com
-
As much as 1 kg. of salt? Perhaps you meant 1e3 milligrams. /ravi "There is always one more bug..." http://www.ravib.com ravib@ravib.com
Ravi Bhavnani wrote: Perhaps you meant 1e3 milligrams No, when I write 1e6 I mean 1e6 :) This DeviceIoControl is quite low level for my taste. If the guy looses his data, I don't want to be responsible :) Tomasz Sowinski -- http://www.shooltz.com
-
I'd look into DeviceIoControl. There's a control code, FSCTL_LOCK_VOLUME, which apparently does flush the buffers. You could lock and unlock immediately. I've never done this, however - treat this with 1e6 milligrams of salt. Tomasz Sowinski -- http://www.shooltz.com
I've looked through the documentation and it looks like it might work. If it doesn't, it would only be a little more work to try dismounting the volume. So I now have several more things to try. Thanks for your help. Brad Manske
-
Ravi Bhavnani wrote: Perhaps you meant 1e3 milligrams No, when I write 1e6 I mean 1e6 :) This DeviceIoControl is quite low level for my taste. If the guy looses his data, I don't want to be responsible :) Tomasz Sowinski -- http://www.shooltz.com
Tomasz Sowinski wrote: No, when I write 1e6 I mean 1e6 LOL:) I didn't even notice the quantity specified. Now I feel like I really got my money's worth. Brad Manske
-
I've looked through the documentation and it looks like it might work. If it doesn't, it would only be a little more work to try dismounting the volume. So I now have several more things to try. Thanks for your help. Brad Manske
Just remember about the salt :) Tomasz Sowinski -- http://www.shooltz.com