From owner-freebsd-doc@FreeBSD.ORG Thu Feb 24 13:12:44 2011 Return-Path: Delivered-To: freebsd-doc@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id B082B1065672 for ; Thu, 24 Feb 2011 13:12:44 +0000 (UTC) (envelope-from pluknet@gmail.com) Received: from mail-qy0-f175.google.com (mail-qy0-f175.google.com [209.85.216.175]) by mx1.freebsd.org (Postfix) with ESMTP id 690E18FC14 for ; Thu, 24 Feb 2011 13:12:44 +0000 (UTC) Received: by qyk35 with SMTP id 35so3803362qyk.13 for ; Thu, 24 Feb 2011 05:12:43 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:in-reply-to:references:date :message-id:subject:from:to:cc:content-type :content-transfer-encoding; bh=mYtZreyuEsHuA9+cC7VYebRsGXzFFEBi9PhQjuy1+0Y=; b=XAggQ1E8Et9tmXLoxm7UaPQL7IgbCxxnCnX9Kd1qZGXhvVV+j6ArlTaCOaqRik4Qb7 5M9FxCPTFGXz5XXPtEgK5Q9x0PA+NWGRb4lq4rtazUE4XPuc00mepYxCkYKmCdAtvwsg jC/q0ycPFOZUlSioct8jFXIUn3rUqJgzTLCHQ= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type:content-transfer-encoding; b=jG/I9S0Mg3vnJJnHk7Qr1gJQ/sIpWhq2zqMaj/IGWpVuBiIENVK+HXnuZX/wYei95k WUNx0u+frpVCSZZN/gYH+iQLlPY+EzNtgsZDwhaQ5bzdm47OHJeg54cKvv90cVO67veH thoKKQVcUlGZjCcKFr/AH0igAjIaeg5eRus24= MIME-Version: 1.0 Received: by 10.229.184.13 with SMTP id ci13mr556579qcb.134.1298551635624; Thu, 24 Feb 2011 04:47:15 -0800 (PST) Received: by 10.229.84.129 with HTTP; Thu, 24 Feb 2011 04:47:15 -0800 (PST) In-Reply-To: <201102241458.45129.sukhoy@nic.ru> References: <201102241458.45129.sukhoy@nic.ru> Date: Thu, 24 Feb 2011 15:47:15 +0300 Message-ID: From: Sergey Kandaurov To: Pavel Sukhoy Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Cc: freebsd-doc@freebsd.org Subject: Re: "Handbook / Chapter 19 GEOM" question X-BeenThere: freebsd-doc@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Documentation project List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 24 Feb 2011 13:12:44 -0000 2011/2/24 Pavel Sukhoy : > Hello all, > > Could you tell me some clarifications about section "19.4.1 Mirroring Pri= mary Disks"? > > In this section I see sample command: > > # sysctl kern.geom.debugflags=3D17 > > but I can't understand why this kernel tunable should be 17? > > If I will look through the /usr/src/sys/geom/geom_kern.c > > I will see this: > "... > TUNABLE_INT("kern.geom.debugflags", &g_debugflags); > ..." > > and in /usr/src/sys/geom/geom_subr.c > > I will see this: > "... > =A0 =A0 =A0 /* If foot-shooting is enabled, any open on rank#1 is OK */ > =A0 =A0 =A0 =A0if ((g_debugflags & 16) && pp->geom->rank =3D=3D 1); > ..." > > So I think that it should be 16 or I looked for it in inappropriate files= . > 17 additionally enables the first bit to trace G_T_TOPOLOGY events. There is a full list in geom/geom_int.h: /* * 1 G_T_TOPOLOGY * 2 G_T_BIO * 4 G_T_ACCESS * 8 (unused) * 16 Allow footshooting on rank#1 providers * 32 G_T_DETAILS */ --=20 wbr, pluknet