From owner-freebsd-questions@FreeBSD.ORG Mon Jun 6 14:26:23 2005 Return-Path: X-Original-To: freebsd-questions@freebsd.org Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id A5DCB16A41F for ; Mon, 6 Jun 2005 14:26:23 +0000 (GMT) (envelope-from munn@umd.edu) Received: from sccrmhc12.comcast.net (sccrmhc12.comcast.net [204.127.202.56]) by mx1.FreeBSD.org (Postfix) with ESMTP id 5B51E43D48 for ; Mon, 6 Jun 2005 14:26:23 +0000 (GMT) (envelope-from munn@umd.edu) Received: from [192.168.123.55] (pcp0010726446pcs.howard01.md.comcast.net[69.243.51.18]) by comcast.net (sccrmhc12) with ESMTP id <200506061426220120012oi3e>; Mon, 6 Jun 2005 14:26:22 +0000 Message-ID: <42A45D0D.2000801@umd.edu> Date: Mon, 06 Jun 2005 10:26:21 -0400 From: munn User-Agent: Mozilla Thunderbird 1.0.2 (Windows/20050317) X-Accept-Language: en-us, en MIME-Version: 1.0 To: freebsd-questions@freebsd.org Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Subject: rsyncing a SMBFS fiole system X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 06 Jun 2005 14:26:23 -0000 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 ....