Date: Fri, 03 Jun 2011 16:34:31 -0700 From: perryh@pluto.rain.com To: fbsd-mas-0@ml.turing-complete.org Cc: freebsd-geom@freebsd.org Subject: Re: 8.1 "gjournal status" wrongly claims "No such geom" Message-ID: <4de96f87.Em2Rct7GGkNf6UtP%perryh@pluto.rain.com> In-Reply-To: <20110603191527.GA45631@mid.pc5.i.0x5.de> References: <4de74327.Sx2yo/9EIpKtIaJA%perryh@pluto.rain.com> <20110603191527.GA45631@mid.pc5.i.0x5.de>
next in thread | previous in thread | raw e-mail | index | archive | help
Nicolas Rachinsky <fbsd-mas-0@ml.turing-complete.org> wrote: > * perryh@pluto.rain.com [2011-06-02 01:00 -0700]: > > The gmirror and gjournal modules have been loaded; the mirror and > > journals are reported in dmesg; the geoms appear in /dev and in the > > "gjournal status" summary; and "gjournal dump" finds the metadata. > > However, when I ask for individual status reports, gjournal claims > > that the geoms don't exist. What's going on? > > It works with the geom name from gjournal list. > > > gjournal list > [...] > Geom name: gjournal 1618583258 > ID: 1618583258 > Providers: > 1. Name: mirror/b110528p4.journal > [...] > Consumers: > 1. Name: mirror/b110528p4 > [...] > Role: Data,Journal > [...] Aha! It looks as if what I actually wanted was "gjournal list" rather than "gjournal status" :) > > gjournal status 'gjournal 1618583258' > Name Status Components > mirror/b110528p4.journal N/A mirror/b110528p4 IOW the "Name" shown in the status list is not the name of the gjournal itself but the name of the provider that it creates. > But I don't know why it's this way. Seems like a bug, at least a POLA violation. Either the status report needs another column, to show the name of the gjournal itself, or "gjournal status foo" needs to look for foo among the gjournal providers as well as among the internal names of gjournal geoms. (Granted this is a lot easier said than done: "status" is a generic geom command rather than being class-specific.)
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?4de96f87.Em2Rct7GGkNf6UtP%perryh>