rsyncing a SMBFS fiole system

munn munn at
Mon Jun 6 14:26:23 GMT 2005

My machine id is:
FreeBSD 5.3-RELEASE-p15 FreeBSD 5.3-RELEASE-p15 #2: Sat 
May 14 11:09:57 EDT 2005     
root at  i386

I am trying to use rsync to backup some photographic files.  When I run 
my script ./ on the smbfs file system ~/testmnt it errors with 
the following message.

[isca]rsync sudo ./ ~/testmnt/
rsync: readdir("/disk2/home/munn/testmnt/BillMorocco/Sahara"): Bad file 
descriptor (9)
rsync error: some files could not be transferred (code 23) at main.c(789)

The rsync logfile contains the following:

Directory /disk2/home/munn/testmnt/
/usr/local/bin/rsync -rptgovR --exclude-from=./excludes14021 --delete 
--backup --backup-dir=/photos//Jun0605 /disk2/home/munn/testmn
t/ /photos//testrsync
building file list ... done
IO error encountered -- skipping file deletion

sent 6206 bytes  received 26 bytes  12464.00 bytes/sec
total size is 593701823  speedup is 95266.66

Googling on the bad file descriptor message, there are a couple of 
messages noting the same problem and asking for help.  So far as I can 
see there were no responses.

I have one additional observation.  If I delete one file from the 
directory /disk2/home/munn/testmnt/BillMorocco/Sahara then the script 
runs perfectly.  It doesn't matter what file is deleted.

If I copy the directory structure from the XP machine to the FreeBSD 
one, the script works perfectly.

Obviously I have a workaround ... the excludes file with the entry 
Sahara ignores the failing directory but I would prefer to understand 
the error.

Any help or suggestions would be appreciated ....

More information about the freebsd-questions mailing list