From owner-freebsd-geom@FreeBSD.ORG Fri Sep 17 09:58:28 2004 Return-Path: Delivered-To: freebsd-geom@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 5EA6316A4CF; Fri, 17 Sep 2004 09:58:28 +0000 (GMT) Received: from critter.freebsd.dk (critter.freebsd.dk [212.242.86.163]) by mx1.FreeBSD.org (Postfix) with ESMTP id B5EA843D5A; Fri, 17 Sep 2004 09:58:27 +0000 (GMT) (envelope-from phk@critter.freebsd.dk) Received: from critter.freebsd.dk (localhost [127.0.0.1]) by critter.freebsd.dk (8.13.1/8.13.1) with ESMTP id i8H9wQGR091996; Fri, 17 Sep 2004 11:58:26 +0200 (CEST) (envelope-from phk@critter.freebsd.dk) To: Pawel Jakub Dawidek From: "Poul-Henning Kamp" In-Reply-To: Your message of "Fri, 17 Sep 2004 11:49:48 +0200." <20040917094948.GP30151@darkness.comp.waw.pl> Date: Fri, 17 Sep 2004 11:58:26 +0200 Message-ID: <91995.1095415106@critter.freebsd.dk> Sender: phk@critter.freebsd.dk cc: freebsd-geom@FreeBSD.org Subject: Re: Access counts. X-BeenThere: freebsd-geom@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: GEOM-specific discussions and implementations List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 17 Sep 2004 09:58:28 -0000 In message <20040917094948.GP30151@darkness.comp.waw.pl>, Pawel Jakub Dawidek w rites: >+> > taste thread gmirror thread >+> > ------------ -------------- >+> > g_access(da0s1a, 1, 0, 0) >+> > GEOM:g_access(da0s1, 1, 0, 1) >+> > g_access(da0s1, 0, 1, 1) -> EPERM >+> > >+> >This is not the same consumer in taste thread and gmirror thread. >+>=20 >+> Why would you want to open with exclusive in taste ? If you find that >+> you need that once you've looked for metadata you can upgrade at that >+> point. > >I don't want to! Look a bit closer. I'm opening da0s1a with r1w0e0, but >da0s1a opens da0s1 with r1w0e1. I don't touch da0s1 in taste anymore, >I'm only opening da0s1a there. So what you're saying that you are using two different consumers for da0s1 inside the same instance of g_mirror ? One for trafic (the one you open in your access) and one for metadata (in gmirror thread) ? If so Why ? If they're not different I don't see the problem... -- 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.