Date: Thu, 24 Feb 2011 15:47:15 +0300 From: Sergey Kandaurov <pluknet@gmail.com> To: Pavel Sukhoy <sukhoy@nic.ru> Cc: freebsd-doc@freebsd.org Subject: Re: "Handbook / Chapter 19 GEOM" question Message-ID: <AANLkTi=_HjY-dXEH0U4FODstaToJj3WnOcQtSbj1VOFw@mail.gmail.com> In-Reply-To: <201102241458.45129.sukhoy@nic.ru> References: <201102241458.45129.sukhoy@nic.ru>
next in thread | previous in thread | raw e-mail | index | archive | help
2011/2/24 Pavel Sukhoy <sukhoy@nic.ru>: > 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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?AANLkTi=_HjY-dXEH0U4FODstaToJj3WnOcQtSbj1VOFw>