Re: How do I change the birth time of a file?

2020-01-16 Thread gwes
On 1/17/20 12:20 AM, William Ahern wrote: On Thu, Jan 16, 2020 at 01:16:47PM +0100, Otto Moerbeek wrote: On Thu, Jan 16, 2020 at 11:20:10AM +, gritzmann wrote: Hi, How do I change the birth time of a file? `touch -acm -d "1980-01-01 00:00:00" myfile` changes only the access, modify and c

Re: How do I change the birth time of a file?

2020-01-16 Thread William Ahern
On Thu, Jan 16, 2020 at 01:16:47PM +0100, Otto Moerbeek wrote: > On Thu, Jan 16, 2020 at 11:20:10AM +, gritzmann wrote: > > > Hi, > > > > How do I change the birth time of a file? `touch -acm -d "1980-01-01 > > 00:00:00" myfile` changes only the access, modify and change times. > > > > `sta

Re: How do I change the birth time of a file?

2020-01-16 Thread Ted Unangst
Duncan Patton a Campbell wrote: > > The change time (c_time in struct stat) cannot be explicitly set by > > any API and is maintained by the kernel. > > man touch ? does not set ctime except as a side effect.

Kernel Panics with rtorrent

2020-01-16 Thread Victor Tarabola Cortiano
Greetings, I was having mutiple kernel panics while using rtorrent with over 60 active torrents and multiple files. Obviously I was not using root to run rtorrent. I would get multiple "re0: watchdog timeout" messages and suddenly the laptop would freeze and the kernel would spit the following ms

Re: How do I change the birth time of a file?

2020-01-16 Thread Duncan Patton a Campbell
On Thu, 16 Jan 2020 13:16:47 +0100 Otto Moerbeek wrote: > On Thu, Jan 16, 2020 at 11:20:10AM +, gritzmann wrote: > > > Hi, > > > > How do I change the birth time of a file? `touch -acm -d "1980-01-01 > > 00:00:00" myfile` changes only the access, modify and change times. > > > > `stat myf

Re: dig may need an inet pledge?

2020-01-16 Thread Peter J. Philipp
On Thu, Jan 16, 2020 at 08:25:16PM +0100, Peter J. Philipp wrote: > > dig is supposed to use SOCK_DNS, and then not bother doing additional > > stuff. > > > > 105 is setsockopt. We would investigate if the setsockopt being done > > is required, or if it can be removed. After all, the "bind as a

Re: dig may need an inet pledge?

2020-01-16 Thread Peter J. Philipp
On Thu, Jan 16, 2020 at 12:13:27PM -0700, Theo de Raadt wrote: > Your example is vaguely inprecise enough that I cannot reproduce the > failure. If I could, I would ktrace it. Here is more (precise) data: -> beta$ cd /tmp beta$ ktrace -i dig @rhombus.centroid.eu +tcp delphinusdns.org Ab

Re: dig may need an inet pledge?

2020-01-16 Thread Theo de Raadt
Your example is vaguely inprecise enough that I cannot reproduce the failure. If I could, I would ktrace it. dig is supposed to use SOCK_DNS, and then not bother doing additional stuff. 105 is setsockopt. We would investigate if the setsockopt being done is required, or if it can be removed. A

dig may need an inet pledge?

2020-01-16 Thread Peter J. Philipp
Hi, I did a quick grep of dig's pledge: > beta$ grep pledge * dig.c: if (pledge("stdio rpath dns", NULL) == -1) { dig.c: perror("pledge"); dig.c: if (pledge("stdio dns", NULL) == -1) { dig.c: perror("pledge"); < and noticed that there is no inet pledge. The problem i

Re: SSIZE_MAX

2020-01-16 Thread Otto Moerbeek
On Thu, Jan 16, 2020 at 10:19:52AM -0700, Raymond, David wrote: > Thanks, that is helpful. > > It is now clear to me that the default on OpenBSD for SSIZE_MAX is > 2^31 - 1 or greater. However, I still run into problems on writes to > a TCP/IP socket with sizes exceeding something like 32000 byt

Re: SSIZE_MAX

2020-01-16 Thread Raymond, David
Thanks, that is helpful. It is now clear to me that the default on OpenBSD for SSIZE_MAX is 2^31 - 1 or greater. However, I still run into problems on writes to a TCP/IP socket with sizes exceeding something like 32000 bytes (probably 2^15 -1). Is it possible that TCP sockets have a smaller SSIZ

Re: SSIZE_MAX

2020-01-16 Thread Marc Espie
On Thu, Jan 16, 2020 at 09:35:38AM +, cho...@jtan.com wrote: > Raymond, David writes: > > I am confused about SSIZE_MAX and read(2)/write(2). The POSIX > > SSIZE_MAX is something like 2^15 -1. This seems to be a real > > limitation when writing to a TCP/IP socket, as I learned from > > experi

Re: SSIZE_MAX

2020-01-16 Thread Martin Wanvik
tor. 16. jan. 2020 kl. 14:52 skrev Raymond, David : > > Hmm > > Thought I found a 2^15 -1 version of SSIZE_MAX in the includes, but I > guess I was mistaken. Not necessarily. What you have probably seen is _POSIX_SSIZE_MAX (which is almost literally what you wrote in your first post), defined

Re: displayport - hdmi audio

2020-01-16 Thread Peter Hessler
OpenBSD does not support HDMI audio at this time. On 2020 Jan 15 (Wed) at 16:16:24 + (+), sysmerge wrote: :Hello thee, im trying to connect my TV to Thinkpad x220 via displayport - hdmi, but sound is only working on notebook not on TV. :I tried some tricks from audio faq from site but no

Re: From nginx to openbsd httpd

2020-01-16 Thread Edgar Pettijohn
On Jan 16, 2020 9:27 AM, Michael Hekeler wrote: > > > > > Hello, > > > > I use poudriere pkg builder on FreeBSD and I use nginx to get poudriere web > > status interface. > > > > I'm looking for a less complex httpd server and obhttpd seems to be right > > choice. I have installed obhttpd

Re: displayport - hdmi audio

2020-01-16 Thread Michael Hekeler
> > Hello thee, im trying to connect my TV to Thinkpad x220 via displayport - > hdmi, but sound is only working on notebook not on TV. > I tried some tricks from audio faq from site but no result. Problem is i have > kinda low knowledge in audio related stuff in OpenBSD, cuz audio just works

Re: From nginx to openbsd httpd

2020-01-16 Thread Michael Hekeler
> > Hello, > > I use poudriere pkg builder on FreeBSD and I use nginx to get poudriere web > status interface. > > I'm looking for a less complex httpd server and obhttpd seems to be right > choice. I have installed obhttpd > port > > nginx httpd.conf

Re: RV: Query

2020-01-16 Thread Otto Moerbeek
On Thu, Jan 16, 2020 at 03:16:48PM +, Maurice McCarthy wrote: > Hi > > OepnBSD has its own installation system. The operating system itself > has a steep learning curve for a beginner. I'd suggest you start by > reading the relevant parts of the faq > https://www.openbsd.org/faq/index.html an

Re: RV: Query

2020-01-16 Thread Maurice McCarthy
Hi OepnBSD has its own installation system. The operating system itself has a steep learning curve for a beginner. I'd suggest you start by reading the relevant parts of the faq https://www.openbsd.org/faq/index.html and the installation notes https://ftp.openbsd.org/pub/OpenBSD/6.6/amd64/INSTALL.

RV: Query

2020-01-16 Thread Matias Matias
De: Matias Matias Enviado: miércoles, 15 de enero de 2020 02:37 Para: direct...@openbsdfoundation.org Asunto: Query Hi, I'm Matias de Argentian, I have to say that I am not an expert in computer science or programming. I am just going to start my studies and I

Re: Syspatch

2020-01-16 Thread Jan Betlach
Thank you. Yes, as I had already replied, it has been out-of-sync clock. Interestingly enough ntpd was running. Anyway, clock has been corrected and everything is working OK now. Jan On 16 Jan 2020, at 15:13, Edgar Pettijohn wrote: On Jan 16, 2020 8:09 AM, Christer Solskogen wrote:

Re: Syspatch

2020-01-16 Thread Edgar Pettijohn
On Jan 16, 2020 8:09 AM, Christer Solskogen wrote: > > On Thu, Jan 16, 2020 at 1:45 PM Jan Betlach wrote: > > > > > Any ideas what is wrong? Might as well be a pebkac I am unaware of… > > > > > Clock out of sync? I have seen this a few times and it was always my system clock out of whack. Mi

Re: Syspatch

2020-01-16 Thread Christer Solskogen
On Thu, Jan 16, 2020 at 1:45 PM Jan Betlach wrote: > > Any ideas what is wrong? Might as well be a pebkac I am unaware of… > > Clock out of sync?

Re: SSIZE_MAX

2020-01-16 Thread Raymond, David
Yes, my code deals with the short reads and writes. On 1/16/20, Otto Moerbeek wrote: > On Thu, Jan 16, 2020 at 06:48:30AM -0700, Raymond, David wrote: > >> Hmm >> >> Thought I found a 2^15 -1 version of SSIZE_MAX in the includes, but I >> guess I was mistaken. >> >> The real issue is whether

Re: SSIZE_MAX

2020-01-16 Thread Otto Moerbeek
On Thu, Jan 16, 2020 at 06:48:30AM -0700, Raymond, David wrote: > Hmm > > Thought I found a 2^15 -1 version of SSIZE_MAX in the includes, but I > guess I was mistaken. > > The real issue is whether doing write(2) to a TCP/IP socket bigger > than 2^15 - 1 bytes causes problems. I am not very

Re: SSIZE_MAX

2020-01-16 Thread Raymond, David
Hmm Thought I found a 2^15 -1 version of SSIZE_MAX in the includes, but I guess I was mistaken. The real issue is whether doing write(2) to a TCP/IP socket bigger than 2^15 - 1 bytes causes problems. I am not very experienced in this area. Dave Raymond On 1/15/20, Bryan Steele wrote: >> I

Re: do i need to configure mkinitcpio.conf for my md array ?

2020-01-16 Thread Shadrock Uhuru
On 16.01.2020 13:20, infoomatic wrote: what do you want to achieve? If you want to access the array from OpenBSD then I see no possibility with this configuration. If you want a dual-boot system I suggest you configure the 4-disk raid in OpenBSD and in arch linux you could use a VM and use hard

Re: automounter (amd) local file system issue

2020-01-16 Thread Nick Holland
On 2020-01-15 11:05, Strahil Nikolov wrote: > On January 13, 2020 5:40:06 AM GMT+02:00, Nick Holland > wrote: >>On 2020-01-12 15:39, Antoine Jacoutot wrote: >>> Sounds like something is keeping your fs busy. Could be gio-kqueue, >>do you have glib2 installed? >> >>That would be my first guess, to

Fwd: Syspatch

2020-01-16 Thread Jan Betlach
Forwarded message: From: Jan Betlach To: stan Subject: Re: Syspatch Date: Thu, 16 Jan 2020 13:50:59 +0100 Wow / pebkac as I’ve said. Of course date/time was off for some reason. Thank you very much. Jan On 16 Jan 2020, at 13:48, stan wrote: On Thu, Jan 16, 2020 at 01:43:44PM +0

Syspatch

2020-01-16 Thread Jan Betlach
Hi, I am getting following error when running syspatch as root on my APU2C4: ftp: SSL write error: certificate verification failed: certificate is not yet valid I am using Fastly in my installurl: https://cdn.openbsd.org/pub/OpenBSD Other machines run syspatch without any problem, using Fas

Re: do i need to configure mkinitcpio.conf for my md array ?

2020-01-16 Thread infoomatic
what do you want to achieve? If you want to access the array from OpenBSD then I see no possibility with this configuration. If you want a dual-boot system I suggest you configure the 4-disk raid in OpenBSD and in arch linux you could use a VM and use hardware passthrough to access the data. A

Re: How do I change the birth time of a file?

2020-01-16 Thread Otto Moerbeek
On Thu, Jan 16, 2020 at 11:20:10AM +, gritzmann wrote: > Hi, > > How do I change the birth time of a file? `touch -acm -d "1980-01-01 > 00:00:00" myfile` changes only the access, modify and change times. > > `stat myfile` returns `10 215746 -rw-r--r-- 1 me me 0 0 "Jan  1 00:00:00 > 1980" "

do i need to configure mkinitcpio.conf for my md array ?

2020-01-16 Thread Shadrock Uhuru
i have just configured my 4 disk raid 10 array with mdadm, the filesystem is ext4 unencrypted and arch is installed on a separate disk, do i need to reconfigure mkinitcpio.conf for my md array so that the array is assembled and started at boot, all the examples i've seen have arch installed on th

Re: Ipsec with NAT on phase 2

2020-01-16 Thread Philipp Buehler
Am 15.01.2020 18:50 schrieb Dante F. B. Colò: Hello everyone I maintain some ipsec gateway using isakmpd on OpenBSD no problem at all, but i need to setup a new one but now with NAT on phase 2 , is this possible with iked or isakmpd ? outgoing NAT is like this: http://man.openbsd.org/ipsec.con

How do I change the birth time of a file?

2020-01-16 Thread gritzmann
Hi, How do I change the birth time of a file? `touch -acm -d "1980-01-01 00:00:00" myfile` changes only the access, modify and change times. `stat myfile` returns `10 215746 -rw-r--r-- 1 me me 0 0 "Jan  1 00:00:00 1980" "Jan  1 00:00:00 1980" "Jan 16 13:00:33 2020" 16384 0 0 myfile` Thanks! S

Re: SSIZE_MAX

2020-01-16 Thread Stuart Longland
On 16/1/20 7:35 pm, cho...@jtan.com wrote: > I would guess this is part of the reason why ssize_t was invented > - so that half of the numeric range could be wasted in order for a > function to be able to return -1, and/or ridiculous notions of > symmetry. Actually it is used with fseek… in partic

Re: SSIZE_MAX

2020-01-16 Thread chohag
Raymond, David writes: > I am confused about SSIZE_MAX and read(2)/write(2). The POSIX > SSIZE_MAX is something like 2^15 -1. This seems to be a real > limitation when writing to a TCP/IP socket, as I learned from > experience. However, much larger reads and writes seem to be possible > to files