From owner-freebsd-current@FreeBSD.ORG Wed Apr 2 13:13:12 2003 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 60BD737B401 for ; Wed, 2 Apr 2003 13:13:12 -0800 (PST) Received: from critter.freebsd.dk (critter.freebsd.dk [212.242.86.163]) by mx1.FreeBSD.org (Postfix) with ESMTP id 7979843FAF for ; Wed, 2 Apr 2003 13:13:11 -0800 (PST) (envelope-from phk@phk.freebsd.dk) Received: from critter.freebsd.dk (localhost [127.0.0.1]) by critter.freebsd.dk (8.12.8/8.12.8) with ESMTP id h32LD9SM048853 for ; Wed, 2 Apr 2003 23:13:10 +0200 (CEST) (envelope-from phk@phk.freebsd.dk) To: current@freebsd.org From: "Poul-Henning Kamp" Date: Wed, 02 Apr 2003 23:13:09 +0200 Message-ID: <48852.1049317989@critter.freebsd.dk> Subject: more robust handling of removable devices in GEOM. X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 02 Apr 2003 21:13:12 -0000 This commit (hopefully) improves the situation when a media is removed quickly after it appeared. (A number of people have reported this with USB devices). There are still a couple of minor races. Poul-Henning In message <200304022110.h32LA4WX029838@repoman.freebsd.org>, Poul-Henning Kamp writes: >phk 2003/04/02 13:10:04 PST > > FreeBSD src repository > > Modified files: > sys/geom geom.h geom_bsd.c geom_disk.c geom_dump.c > geom_event.c geom_int.h geom_mbr.c > geom_pc98.c > Log: > Add handling for cancelled events in the g_call_me() methods. > > Revision Changes Path > 1.53 +2 -0 src/sys/geom/geom.h > 1.44 +8 -4 src/sys/geom/geom_bsd.c > 1.65 +15 -2 src/sys/geom/geom_disk.c > 1.24 +6 -3 src/sys/geom/geom_dump.c > 1.26 +2 -0 src/sys/geom/geom_event.c > 1.19 +0 -1 src/sys/geom/geom_int.h > 1.36 +5 -2 src/sys/geom/geom_mbr.c > 1.29 +5 -2 src/sys/geom/geom_pc98.c > -- Poul-Henning Kamp | UNIX since Zilog Zeus 3.20 phk@FreeBSD.ORG | TCP/IP since RFC 956 FreeBSD committer | BSD since 4.3-tahoe Never attribute to malice what can adequately be explained by incompetence.