在Linux ext3文件系统上,如果mv()在读取文件时在同一个文件(文件描述符)上被调用,会发生什么?这其实是个试题,我只能说:
如果外面的操作系统人员能帮我的忙,我会很感激的。
发布于 2010-05-14 20:07:01
Linux重命名手册页:
这就解释了大部分细节。
If one or more processes have the file open when the last link is removed,
the link shall be removed before rename() returns, but the removal of the
file contents shall be postponed until all references to the file are closed. https://stackoverflow.com/questions/2837135
复制相似问题