|
From: | Josh Nisly |
Subject: | [rdiff-backup-users] inodes and Windows |
Date: | Mon, 14 Apr 2008 18:08:19 -0500 |
User-agent: | Thunderbird 2.0.0.12 (X11/20080227) |
There are implementations available that attempt to generate inode numbers based on various attributes, but the inode numbers may shift in certain circumstances. I believe that if Windows ever starts using hardlinks, Microsoft will be forced to implement a better API for them, and when they do that, we can use it.
Because Windows has no concept of inode numbers, the stat function fills in 0 for all files. This obviously triggers the check for renaming over hardlinked files. Here is where I'm not sure what to do. Is 0 a valid inode number on unix? If not, we could just check for that. We could also fill in a known value (maybe -1) in cmodule.c. Yet another option would be to explicitly check os.name, but that could be slow if we're renaming a file on a remote connection.
Thoughts? JoshN
[Prev in Thread] | Current Thread | [Next in Thread] |