Le mardi 04 août 2015 à 16:11 +0800, Magicloud Magiclouds a écrit : > Hi, Hello. > > Say I am moving a file between two harddisks. Both filesystems are > Ext4. During the operation, I cut off the power. Then boot the host, > and fix the filesystems. > > > Now, I see in both locations, there are the file. My question is, is > it safe to remove file in dest, and move to it again from src? Your source file should be safe if the move operation wasn't finished. Normally, the source file will be removed once the dest file is complete, as removing the source as and when the dest is written is more complicated than dropping the source completely once the dest is written. That said, I didn't read the source code of mv, it's only that I find this process logical. Regards. -- David Guyot Administrateur système, réseau et télécom / Sysadmin Europe Camions Interactive / Stockway Moulin Collot F-88500 Ambacourt 03 29 30 47 85
Attachment:
signature.asc
Description: This is a digitally signed message part