Dear all,
I have a requirement that an open file should be non-movable, I plan to
manipulate the user data cluster by cluster (like a secure overwrite or
defrag product might). So, I have two questions for all you file system
experts out there:
1. If a file is open, is the file system required to keep the user data
where it is until the file is closed? I suspect that it is file system
dependent and the file system is free to do whatever it likes, whenever it
likes
2. If I lock the entire file, does that guarantee that the file will
stay put until I unlock the file?
I don't want to get into a situation where I am writing to clusters that I
thought were allocated to a given file but finding that they have been moved
by a defrag operation (or similar) and I end up trashing another file or
some file system meta data.
Many thanks in advance,
Carly