Re: aliasing (or renaming) kern.geom.debugflags

看板FB_current作者時間14年前 (2011/10/08 02:01), 編輯推噓0(000)
留言0則, 0人參與, 最新討論串3/44 (看更多)
This message is in MIME format. The first part should be readable text, while the remaining parts are likely unreadable without MIME-aware tools. ---559023410-1851342366-1318009904=:882 Content-Type: TEXT/PLAIN; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: QUOTED-PRINTABLE On Fri, 7 Oct 2011, Garrett Cooper wrote: > On Fri, Oct 7, 2011 at 10:42 AM, Benjamin Kaduk <kaduk@mit.edu> wrote: >> Dear all, >> >> I feel like this has come up before, but a quick search didn't reveal >> anything terribly recent, at least. >> >> The new installation chapter of the handbook for 9.0 (that Warren and Gl= en >> and Garrett and Gavin and more people I am probably missing have sunk hu= ge >> amounts of time into) has instructions on (e.g.) preparing a USB stick >> install image: >> http://www.glenbarber.us/FreeBSD9/doc/en_US.ISO8859-1/books/handbook/ins= tall-pre.html >> (scroll down most of the way). =A0But in order to do so, the instruction= s >> include 'sysctl kern.geom.debugflags=3D16'! =A0Now, an ordinary user who= is >> doing this for the first time might ask, "why do I need to do something = with >> 'debugflags' in order to make a USB stick? =A0I'm not debugging anything= , this >> is a standard operation!". >> >> I can't really advocate for changing the geom logic at this point in the >> release cycle (though it's not really clear why rank 1 geom providers ne= ed >> to be so special), but I think it would be nice to have a user-visible >> interface to it that does not have "debug" in the name, since the actual >> flags are apparently here for the long haul. =A0I could certainly imagin= e >> aliasing the debugflags to just "flags", which seems more >> innocuous-sounding. >> >> Does this sound crazy? > > Yes. From geom(4): > > DIAGNOSTICS > Several flags are provided for tracing GEOM operations and unlocking = pro- > tection mechanisms via the kern.geom.debugflags sysctl. All of these > flags are off by default, and great care should be taken in turning t= hem > on. > > geom(4) has more details about what they do. I'm not sure I follow your point. Yes, geom(4) describes what they do; my= =20 objection is to the use of "debug" to describe the one in particular that= =20 we tell new users to blindly set. A hypothetical kern.geom.flags need not= =20 allow setting (e.g.) "0x01 (G_T_TOPOLOGY) Provide tracing of topology=20 change events" if we don't want it to. -Ben ---559023410-1851342366-1318009904=:882 Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ freebsd-current@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-current To unsubscribe, send any mail to "freebsd-current-unsubscribe@freebsd.org" ---559023410-1851342366-1318009904=:882--
文章代碼(AID): #1EZpvY0h (FB_current)
討論串 (同標題文章)
文章代碼(AID): #1EZpvY0h (FB_current)