On 6/18/2016 4:03 PM, Bill Zissimopoulos wrote: > * A directory cannot be renamed if it or any of its subdirectories > contains a file that has open handles (except in the batch-oplock case > described earlier). > > > In particular the third bullet point mandates that the FSD keeps > information not only about files that are open, but also of their > hierarchical relationships. The easiest way to do this on Windows is to > maintain a mapping of file names to open files.
This is not how my file system redirector enforces the rule. The file control block (representing the handle) for an open file maintains a reference to the directory object through which it was opened. As long as the directory object has outstanding references the redirector fails the rename request. File path maps to specific files in fact do not work because the file can be hard linked into more than one directory. Only the directory that was used to create a file handle is restricted from renaming. Jeffrey Altman
smime.p7s
Description: S/MIME Cryptographic Signature