If a directory is specified for the place from which a file is moved, rename(2) must not be used for the directory’s parent directory.
If rename(2) is executed by mistake, file operation may hang. If this occurs, reboot a node where the file hangs and recover the failed file.