简体   繁体   English

文件传输期间Linux sftp重命名

[英]Linux sftp Renaming during file transfer

I just want to confirm something I noticed when downloading a file through sftp on linux. 我只想确认在Linux上通过sftp下载文件时注意到的事情。 I renamed the file (mv file.tar.gz newfile.tar.gz) during the transfer (usually would wait to transfer was complete) and the download kept going. 我在传输过程中重命名了文件(mv file.tar.gz newfile.tar.gz)(通常会等待传输完成),下载继续进行。 Im I right to be amazed? 我想惊讶吗?

How did this happen, and surely you cant do this on windows. 这是怎么发生的,当然您不能在Windows上执行此操作。

--Mark - 标记

That's normal on most (if not all) POSIX systems. 在大多数(如果不是全部)POSIX系统上,这是正常的。 Rename operation changes only the name of file in directory entry, the inode ('serial') number remains the same and that number is used with I/O. 重命名操作仅更改目录条目中文件的名称,inode(“序列号”)编号保持不变,并且该编号与I / O一起使用。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM