[patch] Fix vmd for user VMs

2022-09-17 Thread Matthew Martin
When vmd/vmctl switched to handling memory in bytes, seems a few places for user VMs were missed. Additionally the first hunk removes the quota hit if the VM will not be created. diff --git config.c config.c index 374d7de6629..425c901f36a 100644 --- config.c +++ config.c @@ -241,8 +241,10 @@

gpiobl(4): enable/disable screen backlight on apple silicon laptops

2022-09-17 Thread Tobias Heider
Hi, below is a diff for a new driver to control the screen backlight on Apple Silicon laptops via 'gpio-backlight'. This allows disabling the screen via wsconsctl or hotkeys once they are hooked up. The task is needed because aplsmc(4) sleeps in aplsmc_set_pin() which crashes when called via

Change pru_abort() return type to the type of void and make pru_abort optional

2022-09-17 Thread Vitaliy Makkoveev
We have no interest on pru_abort() return value. Also we call it only through soabort() which is dummy pru_abort() wrapper and has no return value. Also only the connection oriented sockets need to implement (*pru_abort)() handler. Such sockets are tcp(4) and unix(4) sockets, so we could remove

memory barrier in counters_zero

2022-09-17 Thread Alexander Bluhm
Hi, Inspired by Taylor's talk at EuroBSDCon I think a memory barrier in counters_zero() is missing. Reading uses two consumer barriers, so writing should also have two. Following code would have no barrier between writing generation number and writing counters. counters_leave();

Re: iostat.8 wording

2022-09-17 Thread Jason McIntyre
On Thu, Sep 15, 2022 at 04:43:19PM +0100, Jason McIntyre wrote: > On Thu, Sep 15, 2022 at 04:41:57PM +0200, Jan Stary wrote: > > I believe this reads a little bit better. > > > > Jan > > > > i agree, but i'd leave those commas in. > jmc > i went ahead and committed your diff, with commas.

ldomctl: console: add -E escape_char

2022-09-17 Thread Klemens Nanni
In my case, accessing guest domain consoles always happens through SSH, ILOM, or conserver, so there's usually one more level to escape. Changing cu(1)'s escape character makes things easier to type and harder to mess up (~. instead of ~~. kills SSH/whatever instead of the guest console). Using

Re: grdc: show timezone when TZ is set

2022-09-17 Thread Klemens Nanni
On Sat, Sep 17, 2022 at 12:13:16PM +0200, Florian Obser wrote: > Good catch, I have adapted the text from date(1) for this, I think it > flows nicer and dropped the example. > > Update diff with a local variable for getenv(3) and pulled the call up, > it's not going to change during runtime. > >

Re: grdc: show timezone when TZ is set

2022-09-17 Thread Florian Obser
On 2022-09-17 08:42 UTC, Klemens Nanni wrote: > On Sat, Sep 17, 2022 at 09:40:27AM +0200, Florian Obser wrote: >> On 2021-10-24 03:06 +02, James Russell Stickney wrote: >> > I recently found myself wanting to moniter local time from a number of >> > locations around the world. >> > Setting the

ssl.3: link to SSL_read_early_data(3)

2022-09-17 Thread Klemens Nanni
This page now exists. OK? Index: ssl.3 === RCS file: /cvs/src/lib/libssl/man/ssl.3,v retrieving revision 1.21 diff -u -p -r1.21 ssl.3 --- ssl.3 13 Jul 2022 22:05:53 - 1.21 +++ ssl.3 17 Sep 2022 09:10:19 - @@

Re: grdc: show timezone when TZ is set

2022-09-17 Thread Klemens Nanni
On Sat, Sep 17, 2022 at 09:40:27AM +0200, Florian Obser wrote: > On 2021-10-24 03:06 +02, James Russell Stickney wrote: > > I recently found myself wanting to moniter local time from a number of > > locations around the world. > > Setting the TZ environment variable on grdc did a wonderfull job

Re: grdc: show timezone when TZ is set

2022-09-17 Thread Florian Obser
On 2021-10-24 03:06 +02, James Russell Stickney wrote: > I recently found myself wanting to moniter local time from a number of > locations around the world. > Setting the TZ environment variable on grdc did a wonderfull job at this. > At which point, I wanted to know which clock was showing