Re: mpii(4): document/handle RAID 1E, bioctl(8): print it as such

2022-10-17 Thread Klemens Nanni
On Wed, Oct 05, 2022 at 12:10:26AM +, Klemens Nanni wrote: > On Sun, Sep 25, 2022 at 12:59:27AM +, Klemens Nanni wrote: > > On a sparc64 T4-2 I boot OpenBSD from hardware RAID 1E using the > > built-in controller: > > > > mpii0 at pci15 dev 0 function 0 "Symbios Logic SAS2008" rev 0x03

Re: audio: remove unused AUDIO_PROP_{MMAP,INDEPENDENT}

2022-10-17 Thread Klemens Nanni
On Mon, Oct 17, 2022 at 09:53:26PM +0200, Mark Kettenis wrote: > > Date: Mon, 17 Oct 2022 19:45:33 + > > From: Klemens Nanni > > > > I was looking at one particular driver and needed to know what those > > flags are, turns out AUDIO_PROP_FULLDUPLEX is the only audio(9) property > > that is in

Re: audio: remove unused AUDIO_PROP_{MMAP,INDEPENDENT}

2022-10-17 Thread Mark Kettenis
> Date: Mon, 17 Oct 2022 19:45:33 + > From: Klemens Nanni > > I was looking at one particular driver and needed to know what those > flags are, turns out AUDIO_PROP_FULLDUPLEX is the only audio(9) property > that is in use. > > The other two are only ever set in *_get_props(); their handlin

audio: remove unused AUDIO_PROP_{MMAP,INDEPENDENT}

2022-10-17 Thread Klemens Nanni
I was looking at one particular driver and needed to know what those flags are, turns out AUDIO_PROP_FULLDUPLEX is the only audio(9) property that is in use. The other two are only ever set in *_get_props(); their handling disappeared from sys/dev/audio.c in commit 1cf2860827c8ca659d8097

Re: gunzip: support .zip files with a single member

2022-10-17 Thread Todd C . Miller
Updated version to better match GNU gzip behavior. GNU zip will not decompress a .zip file with multiple members unless the -c option is specified (or via zcat/gzcat). Now we return an error and don't extract the file, just like GNU gzip. Also, our gzip did not honor the extension specified by t

Re: bgpctl show metrics and man page

2022-10-17 Thread Theo Buehler
On Mon, Oct 17, 2022 at 04:32:27PM +0200, Claudio Jeker wrote: > I think since the HTTP endpoint is called /metrics bgpctl should also use > metrics and not metric. Also add a bit of documentation to the man pages. Yes, that makes sense. ok > > -- > :wq Claudio > > Index: bgpctl/bgpctl.8 > ==

bgpctl show metrics and man page

2022-10-17 Thread Claudio Jeker
I think since the HTTP endpoint is called /metrics bgpctl should also use metrics and not metric. Also add a bit of documentation to the man pages. -- :wq Claudio Index: bgpctl/bgpctl.8 === RCS file: /cvs/src/usr.sbin/bgpctl/bgpctl.

Re: bgpctl openmetric/prometheus output

2022-10-17 Thread Denis Fondras
Le Mon, Oct 17, 2022 at 01:02:01PM +0200, Claudio Jeker a écrit : > > Also I'm not sure if bgpd_peer_up_seconds and bgpd_peer_down_seconds are > sensible metrics. Having metric depend on some state seems like a bad idea. > I agree. My current tool presents only one metric for uptime and I get a

Re: bgplgd add metrics api endpoint for open metrics

2022-10-17 Thread Theo Buehler
On Mon, Oct 17, 2022 at 02:25:40PM +0200, Claudio Jeker wrote: > This diff adds the required bits to export the bgpctl show metrics output > as openmetrics. For this /metrics needs to answer with a different > content-type. Apart from that adding this is trivial. ok tb

bgplgd add metrics api endpoint for open metrics

2022-10-17 Thread Claudio Jeker
This diff adds the required bits to export the bgpctl show metrics output as openmetrics. For this /metrics needs to answer with a different content-type. Apart from that adding this is trivial. -- :wq Claudio Index: bgplgd.c === RC

Re: [acpi] patch for embedded controller detection

2022-10-17 Thread Mikhail
On Sat, Oct 08, 2022 at 03:10:18PM +0300, Mikhail wrote: > I'm troubleshooting battery status for my Lenovo IdeaPad 3 14ITL05, on > latest -current it shows that battery is absent and AC not connected: > > Battery state: absent, 0% remaining, unknown life estimate > AC adapter state: not connected

Re: bgpctl openmetric/prometheus output

2022-10-17 Thread Claudio Jeker
On Mon, Oct 17, 2022 at 12:39:44PM +0200, Denis Fondras wrote: > Le Mon, Oct 17, 2022 at 11:49:31AM +0200, Claudio Jeker a écrit : > > On Wed, Oct 12, 2022 at 12:12:25PM +0200, Theo Buehler wrote: > > > On Fri, Oct 07, 2022 at 12:37:10PM +0200, Claudio Jeker wrote: > > > > > > +void > > > > +ometr

Re: bgpctl openmetric/prometheus output

2022-10-17 Thread Denis Fondras
Le Mon, Oct 17, 2022 at 11:49:31AM +0200, Claudio Jeker a écrit : > On Wed, Oct 12, 2022 at 12:12:25PM +0200, Theo Buehler wrote: > > On Fri, Oct 07, 2022 at 12:37:10PM +0200, Claudio Jeker wrote: > > > > +void > > > +ometric_set_state(struct ometric *om, const char *state, struct olabels > > > *

Re: bgpctl openmetric/prometheus output

2022-10-17 Thread Claudio Jeker
On Wed, Oct 12, 2022 at 12:12:25PM +0200, Theo Buehler wrote: > On Fri, Oct 07, 2022 at 12:37:10PM +0200, Claudio Jeker wrote: > > This diff adds `bgpctl show metric` which is a command that dumps some > > stats out in openmetric format. This format can be ingested by e.g. > > prometheus and used f