From owner-freebsd-firewire@FreeBSD.ORG Tue Sep 19 16:04:52 2006 Return-Path: X-Original-To: freebsd-firewire@FreeBSD.org Delivered-To: freebsd-firewire@FreeBSD.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 992E116A416 for ; Tue, 19 Sep 2006 16:04:52 +0000 (UTC) (envelope-from jmg@hydrogen.funkthat.com) Received: from hydrogen.funkthat.com (gate.funkthat.com [69.17.45.168]) by mx1.FreeBSD.org (Postfix) with ESMTP id A237843D46 for ; Tue, 19 Sep 2006 16:04:48 +0000 (GMT) (envelope-from jmg@hydrogen.funkthat.com) Received: from hydrogen.funkthat.com (b1e258cip5bm11yf@localhost.funkthat.com [127.0.0.1]) by hydrogen.funkthat.com (8.13.6/8.13.3) with ESMTP id k8JG4mgC036216; Tue, 19 Sep 2006 09:04:48 -0700 (PDT) (envelope-from jmg@hydrogen.funkthat.com) Received: (from jmg@localhost) by hydrogen.funkthat.com (8.13.6/8.13.3/Submit) id k8JG4mio036215; Tue, 19 Sep 2006 09:04:48 -0700 (PDT) (envelope-from jmg) Date: Tue, 19 Sep 2006 09:04:48 -0700 From: John-Mark Gurney To: "M. L. Dodson" Message-ID: <20060919160447.GC23915@funkthat.com> Mail-Followup-To: "M. L. Dodson" , freebsd-firewire@FreeBSD.org References: <200609191005.17015.mldodson@houston.rr.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <200609191005.17015.mldodson@houston.rr.com> User-Agent: Mutt/1.4.2.1i X-Operating-System: FreeBSD 5.4-RELEASE-p6 i386 X-PGP-Fingerprint: B7 EC EF F8 AE ED A7 31 96 7A 22 B3 D8 56 36 F4 X-Files: The truth is out there X-URL: http://resnet.uoregon.edu/~gurney_j/ X-Resume: http://resnet.uoregon.edu/~gurney_j/resume.html Cc: freebsd-firewire@FreeBSD.org Subject: Re: devfs and hot unplugging firewire device X-BeenThere: freebsd-firewire@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: John-Mark Gurney List-Id: Firewire support in FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 19 Sep 2006 16:04:52 -0000 M. L. Dodson wrote this message on Tue, Sep 19, 2006 at 10:05 -0500: > When I finished a dump/restore, I just pulled the cable (the > firewire disk partitions were not mounted). When I plugged in the The problem is that the old devices still are open for writing.. If you were to umount -f the old fs, most likely, the devices would wither away, and things would be back to normal... I hope you were fsync'ing the files before you unmounted the disk to ensure that the file was completely written to disk, otherwise you could end up w/ the an incomplete file... > My question: Should I be doing something to signal devfs I'm going > to unplug a device so it won't get confused when I plug in another > similar, but not the same, device? camcontrol commands like > "camcontrol eject " and "camcontrol rescan all" seemed to > not have the results I expected. What's going on here? umount the file system... I unplug firewire drives that don't have mounted filesystems, and haven't had an issue with it... -- John-Mark Gurney Voice: +1 415 225 5579 "All that I will do, has been done, All that I have, has not."