On Mon, Nov 11, 2013 at 5:31 PM, Stephen Chrzanowski <pontia...@gmail.com>wrote:
> a Linux developer (Unless you count BASH scripting) but I deal with the OS > enough (My job for 6 years) to know enough low level stuff that at the file > system level, programs attach to files at the INODE level, so files can be > renamed, or moved, with a file handle open against it on the same device. > Just to re-stress that point: on the same device. If you move it across devices, it is basically a copy+delete operation and all bets are off. The inode will change in that case because inodes are device (or volume) specific. > OS/File System is concerned. Since the INODE never changes on a move or > rename (on the same device) > , file operations continue to happen against the contents of that > file. You can even DELETE a file and file operations will continue usually > uninterrupted while that file handle is open. In fact, some apps use that to hide temp files and ensure they are cleaned up even in the case of an app crash: open() the file, then immediately unlink() it, giving the file handle back to the user. When the app ends/crashes resp. when close() is called on the handle, the FS can then free up that space. -- ----- stephan beal http://wanderinghorse.net/home/stephan/ http://gplus.to/sgbeal "Since tyranny's the only guaranteed byproduct of those who insist on a perfect world, freedom will have to do." -- Bigby Wolf _______________________________________________ sqlite-users mailing list sqlite-users@sqlite.org http://sqlite.org:8080/cgi-bin/mailman/listinfo/sqlite-users