From owner-freebsd-fs@FreeBSD.ORG Wed Aug 1 15:59:34 2007 Return-Path: Delivered-To: freebsd-fs@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 5EE4816A418 for ; Wed, 1 Aug 2007 15:59:34 +0000 (UTC) (envelope-from peter@pean.org) Received: from ker.oderland.com (ker.oderland.com [213.115.231.25]) by mx1.freebsd.org (Postfix) with ESMTP id 1BB3E13C48D for ; Wed, 1 Aug 2007 15:59:33 +0000 (UTC) (envelope-from peter@pean.org) Received: from [127.0.0.1] (helo=svenerik.jajja.com) by ker.oderland.com with esmtpa (Exim 4.66) (envelope-from ) id 1IGFep-0003eF-FA for freebsd-fs@freebsd.org; Wed, 01 Aug 2007 16:58:39 +0200 Received: from svenerik.jajja.com ([217.118.217.10] helo=svenerik.jajja.com) by ASSP.nospam; 1 Aug 2007 16:58:39 +0200 Message-ID: <46B09FA9.9080503@pean.org> Date: Wed, 01 Aug 2007 16:58:49 +0200 From: Peter User-Agent: Thunderbird 2.0.0.0 (X11/20070629) MIME-Version: 1.0 To: freebsd-fs@freebsd.org Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - ker.oderland.com X-AntiAbuse: Original Domain - freebsd.org X-AntiAbuse: Originator/Caller UID/GID - [0 0] / [47 12] X-AntiAbuse: Sender Address Domain - pean.org X-Source: X-Source-Args: X-Source-Dir: Subject: rsync and smb. X-BeenThere: freebsd-fs@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Filesystems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 01 Aug 2007 15:59:34 -0000 Hello, I'm trying to back up some things from my windows to the FreeBSD fileserver by mounting a share with mount_smbfs and then running rsync but I get some strange errors: rsync: readdir("/mnt/2007/20070415-2"): Bad file descriptor (9) rsync: readdir("/mnt/2007/20070713-1"): Bad file descriptor (9) I searched google for some answers and found that this is a more or less common problem. I found a PR on this but that was back in 4.10-RELEASE and I'm running 6.2-RELEASE. http://www.freebsd.org/cgi/query-pr.cgi?pr=78953 This also describes my problem pretty well: http://lists.freebsd.org/pipermail/freebsd-questions/2005-June/089471.html my script: #!/bin/sh echo "Mounting IMG share" mount_smbfs -o ro -I 172.25.0.12 //peter@wintendo/IMG/ /mnt echo "syncing with share" rsync -uavz --ignore-existing --delete-before /mnt/ /home/peter/photo-backup/IMG / echo "unmounting share" umount /mnt echo "Good bye"