コマンドを介して2つのファイルシステム間でファイルを移動するのはmv
原子的な作業ですか?
ベストアンサー1
EXDEVエラー(man 2の名前変更)を参照してください。
EXDEV oldpath and newpath are not on the same mounted filesystem. (Linux permits a filesystem to be mounted at multiple points, but rename() does not work across different mount points, even if the same filesystem is mounted on both.)
システムコールを介してファイルシステム間を移動できないため、mvが実行する操作はユーザースペースのコピーと削除です。これはアトミックではありません。