volume locking

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance



Hi,

I am involved in a project that has to be able to erase the existence of
data from the file system. This requires going in to the underlying file
system structures and writing to them. It seems to me that there must be
some way of obtaining exclusive write access to the entire volume...
preventing the operating system from potentially attempting to use the space
that we are in the middle of clearing... also, it would seem that as a
preventative measure, we would want the write cache flushed before we do
this... in the (hopefully) rare case that the OS has written to the
location, but the write has not yet been flushed to disk. Lastly, is there
a way to lock just the portion of the volume to which we intend to write?
If so, that would seem to be the best option, wouldn't it? We would like to
be able to do this for both 9x systems and NT systems... but NT systems are
the higher priority...


Thank you in advance for any help,
Chris


.



Relevant Pages

  • Re: bug x reinits every 2 sec before login
    ... I consider periodic checks of file system usage, thereby preventing a ... full file system, ... Rather than "suck it up and stop complaining" I recommend considering ... Any application should of course report file open() & writeerrors, ...
    (comp.os.linux.x)
  • Re: Flash HDs
    ... A page is 2 KB data + 64 bytes for file system ... An erase block is 128 KB, so a 2 GB chip has ... The meta data can be used for storing the logical page number, ... once the maximum block erase cycles is reached, ...
    (comp.arch)
  • Re: Flash HDs
    ... A page is 2 KB data + 64 bytes for file system ... An erase block is 128 KB, so a 2 GB chip has ... The meta data can be used for storing the logical page number, ... once the maximum block erase cycles is reached, ...
    (comp.arch)
  • Re: Still no dirent.h in C1X
    ... I've seen the new standard of C called C1x. ... there with multitasking capabilities should have a file system. ... but there isn't much left in a freestanding environment). ... C already mandates the existence of files. ...
    (comp.lang.c)
  • Re: Data Storage Issue (Basic Issue)
    ... The fact (if we assume its existence) that some database ... not prove that the file system performs poorly. ... nor is its file-system interaction. ...
    (comp.lang.java.programmer)