Hi, I have a question, if a client wants to remove a handle first the directory entry is removed and then the client verifies if a directory is going to be removed. If a non empty directory is going to be removed the client just creates the directory entry again for the parent directory, because it is not allowed to remove a non emtpy directory.
Ok, but what happens with a filled directory if a client somehow breaks while trying to remove ? If it breaks after removing the dirent and before recreating the dirent, will the whole non-empty directory be lost ? Wouldn't it be better to first verify that the directory is empty ? I understand that after one client has verified the directory to remove is empty another client might create some files. So I think it would be better to verify the emptiness twice. Directories which already have some entries could be never messed up this way. Or is there already a cool mechanism I did not realize to circumvent that problem ? Thanks for your reply. Have a nice day, Julian _______________________________________________ PVFS2-developers mailing list [email protected] http://www.beowulf-underground.org/mailman/listinfo/pvfs2-developers
