In Ubuntu, unlike in Windows, I can rename a file while it's being written onto the hard disk (for example because it's the output of a program or the copy of another file), and I can also rename a directory containing files that are being written: the system doesn't send messages like "The file is being used, operation not allowed". Is this renaming operation 100% safe, or there's a risk of creating corrupted files? And, in the first case, what is the technical reason that makes it possible, differently from other operating systems? (maybe something related with Linux file system structure and the use of Inodes, I think...?)
Thank you very much.