On Wed 03 Jun 2009, Roy Sigurd Karlsbakk wrote: > On 3. juni. 2009, at 18.16, Paul Slootman wrote: >> >> Because checking whether a process has a file open can be very costly >> in >> system resources. > > > Not really. I'm writing some code doing this now. It will be Linux
Well, it's not something to do lightly... > specific, but it will be fairly quick. Traversing /proc/pid/fd in search > for symlinks to your file isn't really that bad. I'll post the code when This also only works if you own the process keeping the file open, or if you're the superuser. > I'm done with it. The linux-specific thing is also a reason why I suspect it won't become part of rsync. Paul -- Please use reply-all for most replies to avoid omitting the mailing list. To unsubscribe or change options: https://lists.samba.org/mailman/listinfo/rsync Before posting, read: http://www.catb.org/~esr/faqs/smart-questions.html