when using -x to stop at filesystem boundaries, include the mount
authorAndrew Tridgell <tridge@samba.org>
Thu, 26 Mar 1998 00:11:50 +0000 (00:11 +0000)
committerAndrew Tridgell <tridge@samba.org>
Thu, 26 Mar 1998 00:11:50 +0000 (00:11 +0000)
commit0c5f37d9dbd05edc48a135eb809af0a31c8c73e3
treedc01ab51984135f5ee0c8b493840c90b1b0e8da9
parent42849e9202bd1f96685f61682a9d36309c34d9bd
when using -x to stop at filesystem boundaries, include the mount
points but not their contents.

I did this by calling stat() on the directory above the current
directory and checking to see if it has the correct st_dev. Hopefully
this will work for most systems.

Note that the permissions and ownership on the mount point cannot be
copied correctly as they are unavailable while the filesystem is
mounted. Instead rsync will set the permissions and ownership to those
of the root directory of the mounted filesystem (ie. the apparent
permissions/ownership of the directory)
flist.c