On 01/19/2011 12:52 PM, Matt McCutchen wrote:
On Wed, 2011-01-19 at 12:40 -0700, Jeff Hansen wrote:
The way rsync determines if the directory is a mount point looks very
portable to me (with the FLAG_TOP_DIR bit), and with this patch, it
has worked on every Linux system I've tried so far (not sure if
FLAG_TOP_DIR works on BSDs, but I'm guessing it does).
FLAG_TOP_DIR has nothing whatsoever to do with mount points.  Try the
following test:

$ mkdir -p src/foo
$ rsync -axxx src/ dest/

You'll find that your patch excludes "src/foo", which is on the same
filesystem as "src".


OK, you're right. I'll keep looking for a correct, portable way to detect bind-ish mounts.

-Jeff


Attachment: smime.p7s
Description: S/MIME Cryptographic Signature

-- 
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

Reply via email to