Message106603
We have to think about network file systems like NFS. Gnome (nautilus) had a bug on rename because NFS emitted a delete notification on a rename:
http://linux-nfs.org/pipermail/nfsv4/2009-March/010134.html
https://bugzilla.gnome.org/show_bug.cgi?id=575684
It looks like rename is atomic, it's just a bug about notification. But other virtual file systems may not implement atomic rename (eg. is rename atomic with sshfs?). Should Python detect the file system type to choose the algorithm? I would like to say no, because I consider that as a file system (or kernel) bug, not a Python bug.
--
Should we also implement a atomic version of shutil.move()? Support rename if the source and the destination are on different file systems. Or is shutil.move() already atomic?
Note: this issue is only about renaming a *file*. Atomic rename of a directory is much more complex :-) |
|
Date |
User |
Action |
Args |
2010-05-27 10:32:41 | vstinner | set | recipients:
+ vstinner, giampaolo.rodola, tarek, Trundle |
2010-05-27 10:32:41 | vstinner | set | messageid: <1274956361.36.0.377096569346.issue8828@psf.upfronthosting.co.za> |
2010-05-27 10:32:39 | vstinner | link | issue8828 messages |
2010-05-27 10:32:38 | vstinner | create | |
|