Date: Mon, 06 Jun 2005 10:26:21 -0400 From: munn <munn@umd.edu> To: freebsd-questions@freebsd.org Subject: rsyncing a SMBFS fiole system Message-ID: <42A45D0D.2000801@umd.edu>
next in thread | raw e-mail | index | archive | help
My machine id is: FreeBSD isca.dyndns.org 5.3-RELEASE-p15 FreeBSD 5.3-RELEASE-p15 #2: Sat May 14 11:09:57 EDT 2005 root@isca.dyndns.org:/usr/obj/usr/src/sys/GENERIC i386 I am trying to use rsync to backup some photographic files. When I run my script ./Photos.sh on the smbfs file system ~/testmnt it errors with the following message. [isca]rsync sudo ./Photos.sh ~/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) [isca]rsync 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 /disk2/home/munn/testmnt/BillMorocco/Sahara/ 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 ....
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?42A45D0D.2000801>