Re: login class vs readme of syncthing

2025-07-03 Thread Otto Moerbeek
On Thu, Jul 03, 2025 at 04:59:13PM +0200, rsyk...@disroot.org wrote: > Dear list, > > > the readme for syncthing says that if syncthing is run > via an rc.d(8) script, one can add lines > >syncthing:\ > :openfiles-cur=4096:\ > :openfiles-max=4096:\ >

Re: Improper shutdown leads to no-boot situation

2025-05-10 Thread Otto Moerbeek
On Sun, May 11, 2025 at 03:22:39AM +, Lloyd wrote: > Nick Holland wrote: > > > wild guess: you have a "single partition" model, rather than the > > suggested, so rather than the root file system being fairly quiet > > during normal operation, you have a lot of overall filesystem > > churn tak

Re: unbound EAGAIN sendto errors

2025-04-30 Thread Otto Moerbeek
On Wed, Apr 30, 2025 at 09:33:56AM +0300, Kapetanakis Giannis wrote: > On 29/04/2025 22:19, Otto Moerbeek wrote: > > If you looks more closely you'll see that resuseport and UDP do not > > work well together for the multithreaded case. Alls packets end up in > > one th

Re: unbound EAGAIN sendto errors

2025-04-29 Thread Otto Moerbeek
; > > > net.inet.udp.recvspace / net.inet.udp.sendspace are just default values > > and not max values. > > In unbound these are probably controlled by so-rcvbuf / so-sndbuf, up to > > 2m which is system max. > > > > Thanks for all replies, > > > &g

Re: unbound EAGAIN sendto errors

2025-04-29 Thread Otto Moerbeek
On Tue, Apr 29, 2025 at 07:19:22PM +0300, Kapetanakis Giannis wrote: > On 29/04/2025 18:34, Otto Moerbeek wrote: > > On Tue, Apr 29, 2025 at 06:23:34PM +0300, Kapetanakis Giannis wrote: > > > > > On 29/04/2025 18:11, Otto Moerbeek wrote: > > > > On T

Re: unbound EAGAIN sendto errors

2025-04-29 Thread Otto Moerbeek
would also help, instead of rdr-to all incoming 53 traffic to > localhost, to listen on all interfaces > > On 29/04/2025 18:11, Otto Moerbeek wrote: > > On Tue, Apr 29, 2025 at 04:32:01PM +0300, Kapetanakis Giannis wrote: > > > > > Can it be related to this: dropped due

Re: unbound EAGAIN sendto errors

2025-04-29 Thread Otto Moerbeek
On Tue, Apr 29, 2025 at 06:23:34PM +0300, Kapetanakis Giannis wrote: > On 29/04/2025 18:11, Otto Moerbeek wrote: > > On Tue, Apr 29, 2025 at 04:32:01PM +0300, Kapetanakis Giannis wrote: > > > > > Can it be related to this: dropped due to no socket? > > IIRC OpenBS

Re: unbound EAGAIN sendto errors

2025-04-29 Thread Otto Moerbeek
On Tue, Apr 29, 2025 at 04:32:01PM +0300, Kapetanakis Giannis wrote: > Can it be related to this: dropped due to no socket? IIRC OpenBSD does handle sending to a non-blocking socket in the multi-threaded case very well. If multiple threads try to do that simulteneously, some of them will get a EA

Re: About nsd(8) version and usage

2025-04-10 Thread Otto Moerbeek
On Fri, Apr 11, 2025 at 01:01:51AM +0200, Joel Carnat wrote: > Hello, > > I just noticed that the nsd(8) program that ships with OpenBSD 7.6 is > version 4.9.1. As much as I could understand the information from > cvsweb, the same version would ship with OpenBSD 7.7. > > According to NLnet Labs

Re: Can't umount; fuser and fstat don't say why

2025-04-07 Thread Otto Moerbeek
On Tue, Apr 08, 2025 at 08:14:34AM +0200, Jan Stary wrote: > On Apr 08 06:56:53, sema...@kapouay.eu.org wrote: > > TSS writes: > > > > > Greetings, > > > > > > I've been using this gimmick for backing up some OpenBSD 7.6 systems: > > > https://github.com/thexhr/openbsd-timemachine > > > For the

Re: printf portability

2025-03-15 Thread Otto Moerbeek
On Sat, Mar 15, 2025 at 08:55:18AM +0100, Christian Schulte wrote: > On 3/15/25 07:37, Otto Moerbeek wrote: > > On Sat, Mar 15, 2025 at 07:29:39AM +0100, Christian Schulte wrote: > > > >> Hi @misc, > >> > >> I recently stumbled upon an issue with GN

Re: printf portability

2025-03-15 Thread Otto Moerbeek
On Sat, Mar 15, 2025 at 07:29:39AM +0100, Christian Schulte wrote: > Hi @misc, > > I recently stumbled upon an issue with GNU printf(1). I was using > echo(1) in a testsuite.at on OpenBSD successfully, but that failed on > linux badly. The OpenBSD man page of echo(1) contains this sentence: > >

Re: aarch64 assembly "hello world"

2025-03-14 Thread Otto Moerbeek
On Fri, Mar 14, 2025 at 12:50:27PM +, jbra...@dismail.de wrote: > March 14, 2025 at 5:41 AM, "Computer Planet" mailto:open...@cpnetserver.net?to=%22Computer%20Planet%22%20%3Copenbsd%40cpnetserver.net%3E > > wrote: > > > > > > > Hi guys! > > Please, could someone tell me how to print a ve

Re: malloc_trim(3) alternative in OpenBSD?

2025-02-07 Thread Otto Moerbeek
On Fri, Feb 07, 2025 at 11:16:05AM -, Stuart Henderson wrote: > On 2025-02-07, Daniel Wilkins wrote: > > On Fri, Feb 07, 2025 at 03:37:31AM +0100, Christian Schulte wrote: > >> Hi @misc, > >> > >> does OpenBSD provide something equivalent to Linux' malloc_trim(3)[1]? I > >> am yet to port an

Re: malloc_trim(3) alternative in OpenBSD?

2025-02-06 Thread Otto Moerbeek
On Fri, Feb 07, 2025 at 03:37:31AM +0100, Christian Schulte wrote: > Hi @misc, > > does OpenBSD provide something equivalent to Linux' malloc_trim(3)[1]? I > am yet to port an application from Linux to OpenBSD and that application > is making use of malloc_trim(3). I removed the calls to malloc_t

Re: OpenBSD 6.1 installs from DVD, but 7.6 does not.

2025-01-14 Thread Otto Moerbeek
On Tue, Jan 14, 2025 at 10:35:45AM -, Stuart Henderson wrote: > On 2025-01-13, Fables Bookshop wrote: > > Hello, > > > > I have OpenBSD version 7.6 downloaded and burnt to a dvd. This will not > > install to a clean hdd. My old version 7.1 will still install fine. > > > > It fails soon after

Re: large file system issues and rescue questions

2024-12-11 Thread Otto Moerbeek
On Wed, Dec 11, 2024 at 02:24:16PM +0100, Peter Hessler wrote: > On 2024 Dec 10 (Tue) at 21:10:51 +0200 (+0200), Divan Santana wrote: > > :mount 3b3840fcdf524721.c /data > > you've basically guaranteed corruption of your disk. the 'c' partition > the entire disk, including all metadata. > > Yo

Re: alias IP cannot communicate from VM

2024-12-11 Thread Otto Moerbeek
On Wed, Dec 11, 2024 at 11:41:26PM +0100, ASV wrote: > On Wed, 2024-12-11 at 20:43 +, Zé Loff wrote: > > > > On Wed, Dec 11, 2024 at 07:49:13PM +0100, ASV wrote: > > > Hi everyone, > > > I'm stuck on trying to use an alias from a VM. Everything works > > > from > > > its main ip address 10.0.

Re: large file system issues and rescue questions

2024-12-10 Thread Otto Moerbeek
On Tue, Dec 10, 2024 at 09:10:51PM +0200, Divan Santana wrote: > Greetings and happy December :) > > I have a 3.5TB ffs mounted at /data which is specified in fstab. > > When there is a power outage this file system corrupts (I'll install > another UPS shortly). > > Is it possible to fsck_ffs a

Re: root directory full

2024-11-30 Thread Otto Moerbeek
On Sat, Nov 30, 2024 at 02:57:48PM +0100, BESSOT Jean-Michel wrote: > not in dev the biggest file is 512b all the other size in bytes. > doas find / -xdev -size +1 gets you a list of candidates -Otto

Re: firefox crashing

2024-11-23 Thread Otto Moerbeek
On Sat, Nov 23, 2024 at 04:15:51PM -0500, Jon Fineman wrote: > > On Sat, Nov 23, 2024 at 09:21:09PM +0100, Otto Moerbeek wrote: > > On Sat, Nov 23, 2024 at 01:40:31PM -0500, Jon Fineman wrote: > > > > > I have been experiencing firefox crashing since upgrading t

Re: firefox crashing

2024-11-23 Thread Otto Moerbeek
On Sat, Nov 23, 2024 at 01:40:31PM -0500, Jon Fineman wrote: > I have been experiencing firefox crashing since upgrading to OpenBSD > 7.6-current (GENERIC.MP) #431. > > I am currently on OpenBSD 7.6 GENERIC.MP#440 amd64 and still seeing > the crashes. > > Any thoughts on how to debug this? Your

Re: unbound error with DNS blocklist size

2024-11-16 Thread Otto Moerbeek
On Sat, Nov 16, 2024 at 11:23:59PM +, ckeader wrote: > > > I guess you're using local zones for this - I would look into using RPZ > > instead. I haven't tried it myself but hopefully this will get you started: > > > > https://blog.nlnetlabs.nl/response-policy-zones-in-unbound/ > > Thanks,

Re: no cron email after restarting smtpd

2024-11-06 Thread Otto Moerbeek
On Wed, Nov 06, 2024 at 03:36:47PM +0100, Omar Polo wrote: > > On 06/11/24 12:55, Jan Stary wrote: > > On Nov 06 09:40:26, pe...@200mmx.net wrote: > >> Restarting smtpd (e.g. after renewing acme certs) in a cron job > > So, restarting after a cert change, or restarting in a cron job? > > Do you r

Re: no cron email after restarting smtpd

2024-11-06 Thread Otto Moerbeek
On Wed, Nov 06, 2024 at 09:40:26AM +0100, Peter Wens wrote: > Hi, > > Restarting smtpd (e.g. after renewing acme certs) in a cron job causes cron > not to send an email anymore (broken pipe?). I wonder if there is a > workaround for this. > > > Best regards, > > Peter > echo rcctl restart sm

Re: bc cannot calculate very big number

2024-11-03 Thread Otto Moerbeek
On Sun, Nov 03, 2024 at 08:55:18AM +0100, Otto Moerbeek wrote: > On Sun, Nov 03, 2024 at 08:44:26AM +0100, Sebastien Marie wrote: > > > Otto Moerbeek writes: > > > > > On Sun, Nov 03, 2024 at 08:13:20AM +0100, Otto Moerbeek wrote: > > > > > &

Re: bc cannot calculate very big number

2024-11-03 Thread Otto Moerbeek
On Sun, Nov 03, 2024 at 08:44:26AM +0100, Sebastien Marie wrote: > Otto Moerbeek writes: > > > On Sun, Nov 03, 2024 at 08:13:20AM +0100, Otto Moerbeek wrote: > > > >> On Sun, Nov 03, 2024 at 09:38:47AM +0700, hahahahacker2009 wrote: > >> > >&g

Re: bc cannot calculate very big number

2024-11-03 Thread Otto Moerbeek
On Sun, Nov 03, 2024 at 08:13:20AM +0100, Otto Moerbeek wrote: > On Sun, Nov 03, 2024 at 09:38:47AM +0700, hahahahacker2009 wrote: > > > Hello, > > OpenBSD bc(1) is unable to calculate very big number, > > for example, (1024*1024)^(1024*1024) run for an hour and stil

Re: bc cannot calculate very big number

2024-11-03 Thread Otto Moerbeek
On Sun, Nov 03, 2024 at 09:38:47AM +0700, hahahahacker2009 wrote: > Hello, > OpenBSD bc(1) is unable to calculate very big number, > for example, (1024*1024)^(1024*1024) run for an hour and still cannot > give me the result. > It just use about 11M of memory and 100% CPU. > Gavin Howard's bc port

Re: Memory upgrade

2024-10-15 Thread Otto Moerbeek
On Tue, Oct 15, 2024 at 04:42:56AM -0600, Abel Abraham Camarillo Ojeda wrote: > On Tue, Oct 15, 2024, 04:34 Christian Schulte wrote: > > > On 10/15/24 12:09, Stuart Henderson wrote: > > > On 2024-10-15, Zé Loff wrote: > > >> On Tue, Oct 15, 2024 at 10:14:42AM +0200, Christian Schulte wrote: > >

Re: NASM ELF Issues

2024-10-14 Thread Otto Moerbeek
On Tue, Oct 15, 2024 at 03:13:36AM +, ramonaz...@icloud.com wrote: > Hi! > > So it looks like my ELF is missing some sort of .interp section where its > trying to load the /usr/libexec/ld.so, while other executables (at least > compiled with cc), contain that specific section. =_=; > > Whi

Re: static

2024-10-11 Thread Otto Moerbeek
On Sun, Oct 06, 2024 at 04:59:56PM -0300, Gustavo Rios wrote: > Hi folks! > > Does it improve code performance declaring function variables static ? It depends on many factors if it will speedup things, it might even cause slowdowns. It can also introduce bugs because your function is no longer

Re: Bootloader location for encrypted root (softraid)

2024-10-09 Thread Otto Moerbeek
On Wed, Oct 09, 2024 at 05:56:54PM +0200, Christian Weisgerber wrote: > Thomas: > > > - the 2nd stage bootloader in the softraid volume, the man page says > > "in the storage area oft he softraid volume". > > The start of /usr/src/sys/dev/softraidvar.h holds a number of defines > that relate thi

Re: newsyslog trimming hourly despite two hours config file

2024-10-06 Thread Otto Moerbeek
On Sun, Oct 06, 2024 at 05:18:18PM +0200, Otto Moerbeek wrote: > On Sun, Oct 06, 2024 at 04:35:52PM +0200, Thomas wrote: > > > Hello everyone, > > > > I may have run into a corner case with newsyslog. Long story short, I set > > up > > a second pflog interf

Re: return value of write

2024-10-06 Thread Otto Moerbeek
On Sun, Oct 06, 2024 at 02:48:56PM -0300, Gustavo Rios wrote: > Hi folks! > > I am programming in obsd using the c coding language. I have a doubt > related to parameters and return value of write. My doubt is related to the > fact that write has a parameter of the number of bytes to write in > n

Re: newsyslog trimming hourly despite two hours config file

2024-10-06 Thread Otto Moerbeek
On Sun, Oct 06, 2024 at 04:35:52PM +0200, Thomas wrote: > Hello everyone, > > I may have run into a corner case with newsyslog. Long story short, I set up > a second pflog interface to capture all traffic coming to/from my phone to > investigate an issue. > > I want to keep 1-2 days of log. I

Re: dhcpd with failover

2024-10-01 Thread Otto Moerbeek
On Tue, Oct 01, 2024 at 12:34:31PM +0300, Kapetanakis Giannis wrote: > > On 01/10/2024 08:36, Otto Moerbeek wrote: > > On Mon, Sep 30, 2024 at 10:50:06PM +0300, Kapetanakis Giannis wrote: > > > >> How did you solve the problem of initial sync? > >> &

Re: dhcpd with failover

2024-09-30 Thread Otto Moerbeek
On Mon, Sep 30, 2024 at 10:50:06PM +0300, Kapetanakis Giannis wrote: > How did you solve the problem of initial sync? > > Suppose one server goes down for maintenance. When it comes up it does not > know what new leases have been given by the other server which was all the > time up. > > There a

Re: Building -current incrementally.

2024-09-25 Thread Otto Moerbeek
On Thu, Sep 26, 2024 at 08:46:19AM +0200, Christian Schulte wrote: > On 9/26/24 07:15, Otto Moerbeek wrote: > > On Thu, Sep 26, 2024 at 06:38:00AM +0200, Christian Schulte wrote: > > > >> So I installed 7.5-stable on a VPS and that kernel panicked during > >> i

Re: Building -current incrementally.

2024-09-25 Thread Otto Moerbeek
On Thu, Sep 26, 2024 at 06:38:00AM +0200, Christian Schulte wrote: > So I installed 7.5-stable on a VPS and that kernel panicked during > installation > several times. I then grabbed a 7.6-current image and installed the system > using that. That kernel does not panic so I am running -current on

Re: Need some information about fork(2) -- Pedantic Correction

2024-09-23 Thread Otto Moerbeek
On Sun, Sep 22, 2024 at 04:47:33PM -0500, Jay F. Shachter wrote: > > > > > It's an exact copy, all memory allocations remain the same. > > > > Please forgive the pedantic correction, but, although I don't know how > OpenBSD does it, I certainly hope that OpenBSD does it the way other > operatin

Re: Need some information about fork(2)

2024-09-22 Thread Otto Moerbeek
On Sun, Sep 22, 2024 at 08:07:54PM +0200, Страхиња Радић wrote: > Дана 24/09/22 07:59PM, Страхиња Радић написа: > > Of course, that would cause a memory leak if the memory was assigned to > > a variable, like this: > > > > char* tmp = malloc(13); > > > > otherwise, like this: > > > > m

Re: Need some information about fork(2)

2024-09-22 Thread Otto Moerbeek
Typically, a fork in the child is followed by an execve(2) call, which replaces the current process by a new one, whith only a few things inherited. -Otto > > On 2024-09-22T10:27:56.000+02:00, Otto Moerbeek > wrote: > > > On Sun, Sep 22, 2024 at 10:08:56AM +0

Re: Need some information about fork(2)

2024-09-22 Thread Otto Moerbeek
On Sun, Sep 22, 2024 at 10:08:56AM +0200, bi...@iscarioth.org wrote: > Hello OpenBSD team > > I'm having a little trouble understanding how this works. > > of fork(2), according to man. It's an exact copy of the parent > process. > > There are limitations that are explicit in the man. However,

Re: unbound(8) + host(1) + AAAA-only issue

2024-09-20 Thread Otto Moerbeek
On Fri, Sep 20, 2024 at 12:45:08PM +0200, Mike Fischer wrote: > > > Am 20.09.2024 um 12:13 schrieb Stuart Henderson : > > > >> From what you've shown I can only assume the auth servers are broken > > and probably refusing to respond for A (rather than an empty NOERROR > > response). > > I agree

Re: rw- directory mode : different ls behavior

2024-09-17 Thread Otto Moerbeek
On Tue, Sep 17, 2024 at 10:40:23AM +0100, Zé Loff wrote: > On Tue, Sep 17, 2024 at 10:56:27AM +0200, Denis Bodor wrote: > > On Tue, Sep 17, 2024 at 09:43:27AM +0200, tomas.ri...@tutanota.com wrote: > > > I would expect that without the 'x' bit, the directory is not searchable > > > and I won't be

Re: Automatic Disk Partitioning

2024-08-12 Thread Otto Moerbeek
On Wed, Aug 07, 2024 at 01:50:39AM +0200, David Uhden Collado wrote: > > The rationale is that the installer is not able to make a reasonable > > guess about > > how you plan to use the system.  It knows the minimum required filesystem > > sizes, and if you have a moderate amount of extra disk it

Re: tcpdump on openbsd

2024-07-05 Thread Otto Moerbeek
On Fri, Jul 05, 2024 at 02:39:48PM +, Mik J wrote: > Hello, > > I notice that tcpdump on openbsd differs from the linux version. > > Some options don't exist: > - G rotate_seconds > - W filecount > > Do you know why tcpdump on openbsd don't include these switch ? > > Would it be possible t

Re: /sys is a symlink to an empty directory

2024-07-04 Thread Otto Moerbeek
On Fri, Jul 05, 2024 at 04:15:32AM +, Anon Loli wrote: > On Thu, Jul 04, 2024 at 07:34:43PM +0200, Omar Polo wrote: > > On 2024/07/04 17:08:53 +, Anon Loli wrote: > > > Hello mailing list > > > Probably a stupid question, but I reinstalled OpenBSD like 10 times this > > > week, > > > and

Re: async-signal-safe *printf

2024-07-03 Thread Otto Moerbeek
On Wed, Jul 03, 2024 at 05:16:45PM +0900, Kensuke Matsuzaki wrote: > Hi, > > I'm reading libc source code. > > According to man signal(3), dprintf(), vdprintf() etc are > "async-signal-safe in OpenBSD except when used with floating-point > arguments or directives". > However __vfprintf seems to

Re: fsck similar to boot

2024-07-02 Thread Otto Moerbeek
On Tue, Jul 02, 2024 at 11:15:33AM +0100, 04-psyche.tot...@icloud.com wrote: > Hi all, > > I have removed my second drive away from /etc/fstab and I am now manually > mounting it as needed. > > I believe this means there is no automatic fsck check ran, and that feels > like a bad thing. > > I

Re: How are default config files populated?

2024-06-21 Thread Otto Moerbeek
On Fri, Jun 21, 2024 at 11:43:14PM +0100, Jo MacMahon wrote: > Hello, > > I recently needed to restore the file `/var/unbound/etc/unbound.conf`, which > is in the base system, to its original version, and assumed I could get it > out of one of the file sets, most likely `base75.tgz`. However th

Re: cpu cores

2024-06-08 Thread Otto Moerbeek
On Sat, Jun 08, 2024 at 03:58:30PM +0200, Andreas Kähäri wrote: > On Sat, Jun 08, 2024 at 11:39:28AM +0100, Kirill A. Korinsky wrote: > > On Sat, 08 Jun 2024 11:09:29 +0100, > > Omar Polo wrote: > > > > > > On 2024/06/08 10:09:07 +0100, Kirill A. Korinsky wrote: > > > > On Sat, 08 Jun 2024 04:5

Re: [Solved] Edit: Installation amd64 7.5: How to access the distribution sets on the USB stick?

2024-06-08 Thread Otto Moerbeek
On Sat, Jun 08, 2024 at 03:33:15PM +0200, rfab...@mhsmail.ch wrote: > Dear Jan > > Thanks for your mail. > > Am 2024-06-08 08:28, schrieb Jan Stary: > > > When asked where the file sets are, > > you tell the installer where on the USB stick they are. > > The issue was the USB stick did not app

Re: Edit: Installation amd64 7.5: How to access the distribution sets on the USB stick?

2024-06-08 Thread Otto Moerbeek
On Fri, Jun 07, 2024 at 07:05:49PM -0400, Nick Holland wrote: > On 6/7/24 18:26, rfab...@mhsmail.ch wrote: > > Edit: I have just found in Michael W. Lucas' "OpenBSD Mastery: > > Filesystems" that "the rd recovery disk image is the OpenBSD install > > environment", not the USB stick. But my questio

Re: wifi

2024-05-24 Thread Otto Moerbeek
ort of that one. -Otto On Fri, May 24, 2024 at 08:54:40PM -0300, Gustavo Rios wrote: > Is there plan to add support ? > > Thanks a lot > > Em qui., 23 de mai. de 2024 às 04:10, Otto Moerbeek > escreveu: > > > On Thu, May 23, 2024 at 03:56:01AM -0300, Gustav

Re: wifi

2024-05-23 Thread Otto Moerbeek
On Thu, May 23, 2024 at 03:56:01AM -0300, Gustavo Rios wrote: > Here you have them: ... "Realtek 8821CE" rev 0x00 at pci2 dev 0 function 0 not configured That means there is no driver available in OpenBSD for that card. -Otto

Re: wifi

2024-05-22 Thread Otto Moerbeek
On Thu, May 23, 2024 at 01:44:57AM -0300, Gustavo Rios wrote: > Hi folks! > > I would like to setup my openbsd wifi but up to now, no success. > Here is my lspci output. May some one help me ? > > Thanks a lot. > > 02:00.0 Network controller: Realtek Semiconductor Co., Ltd. RTL8821CE > 802.11ac

Re: smtpd outgoing mail configuration

2024-05-16 Thread Otto Moerbeek
On Fri, May 17, 2024 at 08:12:27AM +0200, fr...@lilo.org wrote: > How to forward outgoing mail to a remote SMTP server with smtpd? > > I found this page, but it's out of date I think. > https://romanzolotarev.com/openbsd/smtpd-forward.html > > Tks > Pascal man smtpd.conf, first exmaple

Re: maximum file system size

2024-04-25 Thread Otto Moerbeek
On Thu, Apr 25, 2024 at 07:26:41AM +0200, Peter J. Philipp wrote: > On Thu, Apr 25, 2024 at 12:45:29AM -0300, Gustavo Rios wrote: > > Hi folks! > > > > What is the maximum file size in OpenBSD ? > > > > Thanks a lot. > > > > -- > > The lion and the tiger may be more powerful, but the wolves do

Re: errors rebuilding binaries after sysupgrade to 7.5

2024-04-22 Thread Otto Moerbeek
On Mon, Apr 22, 2024 at 10:09:51PM +0100, Steve Fairhead wrote: > Hi folks, > > (Apologies if this is a dupe. Looks to me like this didn't originally get > far.) > > Pretty sure this is pilot error, so please be gentle. > > I sysupgraded 3 machines (all different) to 7.5; no problems. I then >

Re: Upgraded to 7.5: vfs.ffs.dirhash_dirsize no longer exists and large directory ere veeery slow

2024-04-12 Thread Otto Moerbeek
On Fri, Apr 12, 2024 at 12:21:43PM +0200, Dan wrote: > > Really, I fear this value is due to a wrong tweak.. Fear is a bad advisor. If you look at man 3 sysctl, you'll see what vfs.ffs.dirhash_mem means: FFS_DIRHASH_MEM (vfs.ffs.dirhash_mem) The amou

Re: Upgraded to 7.5: vfs.ffs.dirhash_dirsize no longer exists and large directory ere veeery slow

2024-04-11 Thread Otto Moerbeek
On Thu, Apr 11, 2024 at 05:29:14PM +0200, Otto Moerbeek wrote: > On Thu, Apr 11, 2024 at 05:20:24PM +0200, Otto Moerbeek wrote: > > > On Thu, Apr 11, 2024 at 05:08:01PM +0200, Federico Giannici wrote: > > > > > On 4/11/24 16:15, Claudio Jeker wrote: > > >

Re: Upgraded to 7.5: vfs.ffs.dirhash_dirsize no longer exists and large directory ere veeery slow

2024-04-11 Thread Otto Moerbeek
On Thu, Apr 11, 2024 at 05:20:24PM +0200, Otto Moerbeek wrote: > On Thu, Apr 11, 2024 at 05:08:01PM +0200, Federico Giannici wrote: > > > On 4/11/24 16:15, Claudio Jeker wrote: > > > On Thu, Apr 11, 2024 at 03:36:29PM +0200, Federico Giannici wrote: > > > > On

Re: Upgraded to 7.5: vfs.ffs.dirhash_dirsize no longer exists and large directory ere veeery slow

2024-04-11 Thread Otto Moerbeek
On Thu, Apr 11, 2024 at 05:08:01PM +0200, Federico Giannici wrote: > On 4/11/24 16:15, Claudio Jeker wrote: > > On Thu, Apr 11, 2024 at 03:36:29PM +0200, Federico Giannici wrote: > > > On 4/11/24 14:12, Nick Holland wrote: > > > > On 4/11/24 05:47, Federico Giannici wrote: > > > > > We have a serv

Re: Upgraded to 7.5: vfs.ffs.dirhash_dirsize no longer exists and large directory ere veeery slow

2024-04-11 Thread Otto Moerbeek
On Thu, Apr 11, 2024 at 04:15:19PM +0200, Claudio Jeker wrote: > On Thu, Apr 11, 2024 at 03:36:29PM +0200, Federico Giannici wrote: > > On 4/11/24 14:12, Nick Holland wrote: > > > On 4/11/24 05:47, Federico Giannici wrote: > > > > We have a server with A LOT of files in some directories (an email

Re: newfs fast, but newfs_msdos and newfs_ext2fs very slow

2024-04-10 Thread Otto Moerbeek
On Wed, Apr 10, 2024 at 08:31:26AM -, Stuart Henderson wrote: > On 2024-04-09, Stanislav Syekirin > wrote: > > Hi, > > > > I'm trying to figure out the best way to format a USB stick as FAT32. > > This is what I've tried: > > > > $ time doas newfs_msdos /dev/rsd1c > > /dev/rsd1c: 60007944 s

Re: Ping blocked by firewall

2024-04-09 Thread Otto Moerbeek
On Tue, Apr 09, 2024 at 10:52:45AM +0200, Karel Lucas wrote: > I defined the table as stated in your book (3rd edition, page 42). However, > that gives an error message. In the lines with that table: macro 'martians' > not defined. Moreover, I now also have a Syntax error in lines 38, 39 and > 46,

Re: need help to access my machine after upgrade -- system immediately logs me out

2024-04-02 Thread Otto Moerbeek
On Wed, Apr 03, 2024 at 12:45:33AM +0530, Sandeep Gupta wrote: > Thank you for all the inputs. This is so useful. I am able to at least > access the file system and rescue the data. > However, I'm not able to restore the system yet. The command "pkg_add -u" > runs into "out of memory error". > ul

Re: unbound signature expired

2024-03-21 Thread Otto Moerbeek
On Mon, Mar 18, 2024 at 08:04:38PM +0100, Evan Sherwood wrote: > > Wild guess, your time is off. > > Huh, I think you're right. `date` shows me 7 hours ahead of my timezone. > > I restarted ntpd and I see no errors in /var/log/daemon, but the time is > still off. I should be 1200 PDT but it's s

Re: disklabel and df -h don't show same size

2024-03-03 Thread Otto Moerbeek
On Sun, Mar 03, 2024 at 12:14:14PM -, beecdadd...@danwin1210.de wrote: > On Sun, March 3, 2024 12:07 pm, Otto Moerbeek wrote: > > On Sun, Mar 03, 2024 at 12:01:12PM -, beecdadd...@danwin1210.de > > wrote: > > > > > >> oh okay reserved for root? I ran

Re: disklabel and df -h don't show same size

2024-03-03 Thread Otto Moerbeek
g newfs from the start). -Otto > > On Sun, March 3, 2024 11:57 am, Otto Moerbeek wrote: > > On Sun, Mar 03, 2024 at 11:48:01AM -, beecdadd...@danwin1210.de > > wrote: > > > > > >> > >> disklabel -h sd3 shows this > >> > >> # /dev/

Re: disklabel and df -h don't show same size

2024-03-03 Thread Otto Moerbeek
On Sun, Mar 03, 2024 at 11:48:01AM -, beecdadd...@danwin1210.de wrote: > > disklabel -h sd3 shows this > > # /dev/rsd3c: > type: SCSI > disk: SCSI disk > label: SR CRYPTO > duid: some-number > flags: > bytes/sector: 512 > sectors/track: 63 > tracks/cylinder: 255 > sectors/cylinder: 16065 > c

Re: mount not working as expected? and what are my default bioctl rounds?

2024-03-03 Thread Otto Moerbeek
On Sun, Mar 03, 2024 at 10:47:31AM -, beecdadd...@danwin1210.de wrote: > hi list > I want to know how many rounds my computer defaults to for bioctl -r, so I > can change it and know how stronger it is can you help me? > > after reading mount manual about DUID I realized that it is not workin

Re: Not getting any reply, are bug report fixed?

2024-02-18 Thread Otto Moerbeek
On Sun, Feb 18, 2024 at 05:13:23PM +0700, Discord is hell wrote: > The title says all, although it is somewhat offensive. I'm not > going to disregard OpenBSD developers' efforts. > > I saw many bug report sent to b...@openbsd.org but get > no reply. I saw some bug are silently fixed (not sure fi

Re: KeyTrap DNS vulnerability

2024-02-13 Thread Otto Moerbeek
On Wed, Feb 14, 2024 at 04:55:20AM +0100, b...@fea.st wrote: > “A single packet can exhaust the processing > capacity of a vulnerable DNS server, effectively > disabling the machine, by exploiting a > 20-plus-year-old design flaw in the DNSSEC > specification. > > https://www.theregister.com/20

Re: ksh horizontal line scrolling

2024-02-08 Thread Otto Moerbeek
On Fri, Feb 09, 2024 at 01:17:06PM +1300, Jeremy Baxter wrote: > Hi all, I'm trying to disable the horizontal line scrolling feature in ksh, > enabled through `set -o vi' or `set -o emacs'. ksh(1) says this about it: > > In these editing modes, if a line is longer than the screen width (see >

Re: socket core

2024-01-15 Thread Otto Moerbeek
On Tue, Jan 16, 2024 at 08:16:38AM +0100, Janne Johansson wrote: > Den tis 16 jan. 2024 kl 01:16 skrev Gustavo Rios : > > Hi folks. > > I have a simple question : How many cores does OBSD support ? > > amd64 says > > #define MAXCPUS 64 /* bitmask */ > > but different arches have different limi

Re: time keeping fallback mechanics during reboot on octeon

2024-01-14 Thread Otto Moerbeek
On Sun, Jan 14, 2024 at 09:32:10AM +0100, Alexander Hall wrote: > I don't have mine (EdgeRouter lite) running anymore, but IIRC, I had a cron > job poking the root fs to"resolve" this. > > Sth like "mkdir /bump && rmdir /bump && sync". I have no idea how this would solve the "boot sets last mod

Re: time keeping fallback mechanics during reboot on octeon

2024-01-13 Thread Otto Moerbeek
On Sat, Jan 13, 2024 at 11:47:44AM +0100, Christian Gut wrote: > > > > On 13. Jan 2024, at 10:03, Christian Gut wrote: > > > > > > > >> On 13. Jan 2024, at 00:58, Theo de Raadt wrote: > >> > >> I suspect this is due to how powerpc64 and octeon boot. Their bootblocks > >> are > >> a speci

Re: time keeping fallback mechanics during reboot on octeon

2024-01-13 Thread Otto Moerbeek
On Sat, Jan 13, 2024 at 10:03:20AM +0100, Christian Gut wrote: > > > > On 13. Jan 2024, at 00:58, Theo de Raadt wrote: > > > > I suspect this is due to how powerpc64 and octeon boot. Their bootblocks > > are > > a special kernel called BOOT which mounts the ffs filesystem diretly. I > > su

Re: time keeping fallback mechanics during reboot on octeon

2024-01-12 Thread Otto Moerbeek
On Fri, Jan 12, 2024 at 07:15:43PM +0100, Christian Weisgerber wrote: > Otto Moerbeek: > > > http://man.openbsd.org/octrtc seems to suggest EdgeRouter does not have > > an RTC. A dmesg should give more certainty. > > I think the original poster is aware of this. >

Re: time keeping fallback mechanics during reboot on octeon

2024-01-12 Thread Otto Moerbeek
On Fri, Jan 12, 2024 at 04:47:06PM +0100, Christian Gut wrote: > Hi Otto, > > > > On 12. Jan 2024, at 15:52, Otto Moerbeek wrote: > > > > On Fri, Jan 12, 2024 at 02:35:47PM +0100, Christian Gut wrote: > > > >> Hi, > >> > >> Could

Re: time keeping fallback mechanics during reboot on octeon

2024-01-12 Thread Otto Moerbeek
On Fri, Jan 12, 2024 at 02:35:47PM +0100, Christian Gut wrote: > Hi, > > Could somebody point me to documentation or tell me where OpenBSD gets the > time from, when the system has no RTC and ntpd is not working? > > I am using an EdgeRouter / octeon and at every reboot, the date/time gets > r

Re: Partition completely wiped out, why?

2024-01-09 Thread Otto Moerbeek
On Wed, Jan 10, 2024 at 12:21:12AM +0100, Jonas Bechtel wrote: > > > Dear "misc" list attendees, > > maybe someone of you has an idea what happened. > > Ten years ago I installed OpenBSD 5.[?] which included setting up a > small partition of 2 GB, including the full OS with kernel, programs, >

Re: mountd

2024-01-09 Thread Otto Moerbeek
On Tue, Jan 09, 2024 at 10:13:56AM +0300, 4 wrote: > >> i'm quoting the man page for mountd: > >> The -n flag historically allowed clients to use non-reserved ports > >> when > >> communicating with mountd. In OpenBSD, a reserved port is always > >> used. > >> "reserved port". "always

Re: mountd

2024-01-08 Thread Otto Moerbeek
On Tue, Jan 09, 2024 at 04:16:43AM +0300, 4 wrote: > i'm quoting the man page for mountd: > The -n flag historically allowed clients to use non-reserved ports when > communicating with mountd. In OpenBSD, a reserved port is always used. > "reserved port". "always".. however the port is

Re: ignore dns dhcpleased

2024-01-03 Thread Otto Moerbeek
On Wed, Jan 03, 2024 at 12:15:04PM +0100, Peter Wens wrote: > Hi, > > I noticed that ignoring nameservers from leases only works > on IPv4 addresses. > > in /etc/dhcpleased.conf > > interface vio0 { > ignore dns > } > > resolvd still adds a IPv6 nameserver > > nameserver 2001:19f0:300:1

Re: as cannot do endbr64 instructions (too old)

2024-01-03 Thread Otto Moerbeek
On Wed, Jan 03, 2024 at 08:50:43AM +0100, Lorenz (xha) wrote: > On Tue, Jan 02, 2024 at 08:32:00PM -, Stuart Henderson wrote: > > I can't say. Though I doubt there would much objection if it's clean and > > not a copy of a GPLv3-licensed upstream commit. > > what about this? > > i am not sur

Re: as cannot do endbr64 instructions (too old)

2024-01-02 Thread Otto Moerbeek
On Tue, Jan 02, 2024 at 08:56:55PM +1100, Alexis wrote: > > "Lorenz (xha)" writes: > > > On Mon, Jan 01, 2024 at 08:47:07PM +1100, Alexis wrote: > > > > > > "Lorenz (xha)" writes: > > > > > > > just out of couriosity, why is "as" in the base system if it > is > > > > outdated and is updating

Re: as cannot do endbr64 instructions (too old)

2024-01-01 Thread Otto Moerbeek
On Mon, Jan 01, 2024 at 10:00:34AM +0100, Lorenz (xha) wrote: > On Sun, Dec 31, 2023 at 03:39:14PM +0100, Otto Moerbeek wrote: > > On Sun, Dec 31, 2023 at 04:51:14AM +0100, Lorenz (xha) wrote: > > > > > hi misc@, > > > > > > like the subject says,

Re: as cannot do endbr64 instructions (too old)

2023-12-31 Thread Otto Moerbeek
On Sun, Dec 31, 2023 at 09:55:25AM -0700, Theo de Raadt wrote: > That's curious. > > We never invoke as directly these days. > > It feels like an upstream llvm bug, and I say that because noone else has > embraced BTI/IBT as much as we have, everyone else is still considering it > a thing for sp

Re: Recovery binary from lost+found

2023-12-31 Thread Otto Moerbeek
On Sun, Dec 31, 2023 at 03:01:10PM +0100, Kirill A. Korinsky wrote: > > > On 31. Dec 2023, at 11:02, Otto Moerbeek wrote: > > > > Amongst other things, fsck_ffs(8) looks for inodes not mentioned in > > any directory, i.e. files that are orphans. fsck_ffs links th

Re: as cannot do endbr64 instructions (too old)

2023-12-31 Thread Otto Moerbeek
On Sun, Dec 31, 2023 at 04:51:14AM +0100, Lorenz (xha) wrote: > hi misc@, > > like the subject says, `as` in the base system cannot do endbr64 > instructions. should it be updated? > > background: i am maintaining hare for openbsd and we always have > to install "gas" from the "binutils" package

Re: Recovery binary from lost+found

2023-12-31 Thread Otto Moerbeek
On Sun, Dec 31, 2023 at 01:59:28AM +0100, Kirill A. Korinsky wrote: > Greetings, > > How can I recovery binary files from lost+found? > > I have: > island$ doas ls -l /usr/lost+found > total 7904 > -r--r--r-- 1 root bin 3680832 Dec 31 00:30 #1866245 > -r--r--r-- 1 root bin 317600 Dec 31 0

Re: self-hosted man.openbsd.org script?

2023-12-24 Thread Otto Moerbeek
On Sun, Dec 24, 2023 at 05:25:55AM -0800, Paul Pace wrote: > I have this vague memory of reading someone who posted a script, IIRC, to > convert the system's man pages to HTML, or similar, into somewhere under > /var/www and the pages worked just like the highly useful man.openbsd.org, > and not l

Re: ntpd not adjusting clock in vm

2023-12-17 Thread Otto Moerbeek
On Mon, Dec 18, 2023 at 02:02:47AM +, Chris Narkiewicz wrote: > I'm running OpenBSD 7.4 in qemu VM on my laptop. After hibernation, > vm clock is delayed. > > ntpd works in background, but it fails to adjust the clock: > > reply from 162.159.200.1: offset 0.005599 delay 0.013842, next query

Re: ls in color

2023-12-08 Thread Otto Moerbeek
On Fri, Dec 08, 2023 at 07:45:06PM +0100, Karel Lucas wrote: > > > Op 08-12-2023 om 19:42 schreef Theo de Raadt: > > Karel Lucas wrote: > > > > > In openBSD V7.4 I would like to see the output of ls in color, and > > > therefore would like to know how to configure that. The output of "man > >

Re: Is Pip Available On OpenBSD?

2023-12-02 Thread Otto Moerbeek
On Sun, Dec 03, 2023 at 01:38:07AM -0600, Jay F. Shachter wrote: > > Esteemed Colleagues: > > I am trying to build some software which claims that it needs glad2. > Glad2 does not seem to exist as an OpenBSD package but it claims that > it can be installed with pip. There does not seem to be a

Re: openbsd.org DNS problems

2023-11-16 Thread Otto Moerbeek
On Fri, Nov 17, 2023 at 07:14:58AM +, tux2bsd wrote: > I understand you're choosing to be ornery about > the SOA record. Seems to matter more to you lot > than to me, given the defense being run around it. You claim the SOA serial being a timestamp would have helped in diagnosis. It would n

  1   2   3   4   5   6   7   8   9   10   >