Re: Problem with USB after r349133

2019-07-05 Thread Hans Petter Selasky
On 2019-07-05 17:38, Thomas Laus wrote: I upgraded to CURRENT r349575 this week and my Dell Inspiron laptop stops processing the rc.conf with this message that repeats until I perform a hard power button reset, ctl-alt-del has no effect: Root mount waiting for USBUS7 USBUS6 USBUS0. I boote

Re: test program for copy_file_range(2)

2019-07-05 Thread Rick Macklem
Alan Somers wrote: >On Fri, Jul 5, 2019 at 9:11 AM Rick Macklem wrote: >> >> Alan Somers wrote: >> >On Thu, Jul 4, 2019 at 6:38 PM Rick Macklem wrote: >> >> >> >> I have a little program for testing the copy_file_range(2) syscall I've >> >> been >> >> working on. (The current version is attached

Re: should a copy_file_range(2) syscall be interrupted via a signal

2019-07-05 Thread Konstantin Belousov
On Fri, Jul 05, 2019 at 08:59:23PM +, Rick Macklem wrote: > Konstantin Belousov wrote: > >On Fri, Jul 05, 2019 at 07:30:54PM +0200, Jilles Tjoelker wrote: > >> On Fri, Jul 05, 2019 at 12:28:51AM +, Rick Macklem wrote: > >> > I have been working on a Linux compatible copy_file_range(2) sysca

Re: should a copy_file_range(2) syscall be interrupted via a signal

2019-07-05 Thread Rick Macklem
Konstantin Belousov wrote: >On Fri, Jul 05, 2019 at 07:30:54PM +0200, Jilles Tjoelker wrote: >> On Fri, Jul 05, 2019 at 12:28:51AM +, Rick Macklem wrote: >> > I have been working on a Linux compatible copy_file_range(2) syscall >> > (the current code can be found at https://reviews.freebsd.org/

Re: should a copy_file_range(2) syscall be interrupted via a signal

2019-07-05 Thread Konstantin Belousov
On Fri, Jul 05, 2019 at 07:30:54PM +0200, Jilles Tjoelker wrote: > On Fri, Jul 05, 2019 at 12:28:51AM +, Rick Macklem wrote: > > I have been working on a Linux compatible copy_file_range(2) syscall > > (the current code can be found at https://reviews.freebsd.org/D20584). > > > One outstanding

Re: should a copy_file_range(2) syscall be interrupted via a signal

2019-07-05 Thread Jilles Tjoelker
On Fri, Jul 05, 2019 at 12:28:51AM +, Rick Macklem wrote: > I have been working on a Linux compatible copy_file_range(2) syscall > (the current code can be found at https://reviews.freebsd.org/D20584). > One outstanding issue is how it should deal with signals. Right now, I > have vn_start_wri

Re: should a copy_file_range(2) syscall be interrupted via a signal

2019-07-05 Thread Rick Macklem
Hans Petter Selasky wrote: >On 2019-07-05 02:28, Rick Macklem wrote: >> I am thinking that copy_file_range(2) should do this also. >> However, if it returns an error, it is impossible for the caller to know how >> much >> of the data range got copied. > >How can you kill a program stuck on copy_fi

Problem with USB after r349133

2019-07-05 Thread Thomas Laus
I upgraded to CURRENT r349575 this week and my Dell Inspiron laptop stops processing the rc.conf with this message that repeats until I perform a hard power button reset, ctl-alt-del has no effect: Root mount waiting for USBUS7 USBUS6 USBUS0. I booted my kernel.old and everything is fine at

Re: should a copy_file_range(2) syscall be interrupted via a signal

2019-07-05 Thread Rick Macklem
Mark Johnston wrote: >On Fri, Jul 05, 2019 at 12:28:51AM +, Rick Macklem wrote: >> Hi, >> >> I have been working on a Linux compatible copy_file_range(2) syscall >> (the current code can be found at https://reviews.freebsd.org/D20584). >> >> One outstanding issue is how it should deal with sign

Re: [Differential] D20584: add a linux compatible copy_file_range(2) syscall

2019-07-05 Thread Alan Somers
On Fri, Jul 5, 2019 at 9:28 AM Rick Macklem wrote: > > jilles wrote in copy_file_range.2:99 > > The Linux man page (from > > http://man7.org/linux/man->pages/man2/copy_file_range.2.html ) says that a > > non-zero flags argument will cause >the call to return an [EINVAL] error. I > > think that

Re: test program for copy_file_range(2)

2019-07-05 Thread Alan Somers
On Fri, Jul 5, 2019 at 9:11 AM Rick Macklem wrote: > > Alan Somers wrote: > >On Thu, Jul 4, 2019 at 6:38 PM Rick Macklem wrote: > >> > >> I have a little program for testing the copy_file_range(2) syscall I've > >> been > >> working on. (The current version is attached, in case anyone is > >> i

Re: should a copy_file_range(2) syscall be interrupted via a signal

2019-07-05 Thread Alan Somers
On Thu, Jul 4, 2019 at 6:29 PM Rick Macklem wrote: > > Hi, > > I have been working on a Linux compatible copy_file_range(2) syscall > (the current code can be found at https://reviews.freebsd.org/D20584). > > One outstanding issue is how it should deal with signals. > Right now, I have vn_start_wr

Re: [Differential] D20584: add a linux compatible copy_file_range(2) syscall

2019-07-05 Thread Rick Macklem
jilles wrote in copy_file_range.2:99 > The Linux man page (from > http://man7.org/linux/man->pages/man2/copy_file_range.2.html ) says that a > non-zero flags argument will cause >the call to return an [EINVAL] error. I > think that is better than ignoring the argument >completely since it allows

Re: test program for copy_file_range(2)

2019-07-05 Thread Rick Macklem
Alan Somers wrote: >On Thu, Jul 4, 2019 at 6:38 PM Rick Macklem wrote: >> >> I have a little program for testing the copy_file_range(2) syscall I've been >> working on. (The current version is attached, in case anyone is interested.) >> >> It take a few minutes to run on a slow system and uses abo

Re: should a copy_file_range(2) syscall be interrupted via a signal

2019-07-05 Thread Mark Johnston
On Fri, Jul 05, 2019 at 12:28:51AM +, Rick Macklem wrote: > Hi, > > I have been working on a Linux compatible copy_file_range(2) syscall > (the current code can be found at https://reviews.freebsd.org/D20584). > > One outstanding issue is how it should deal with signals. > Right now, I have v

Re: test program for copy_file_range(2)

2019-07-05 Thread Alan Somers
On Thu, Jul 4, 2019 at 6:38 PM Rick Macklem wrote: > > I have a little program for testing the copy_file_range(2) syscall I've been > working on. (The current version is attached, in case anyone is interested.) > > It take a few minutes to run on a slow system and uses about 6Gbytes of disk > spac

Re: should a copy_file_range(2) syscall be interrupted via a signal

2019-07-05 Thread Hans Petter Selasky
On 2019-07-05 02:28, Rick Macklem wrote: I am thinking that copy_file_range(2) should do this also. However, if it returns an error, it is impossible for the caller to know how much of the data range got copied. How can you kill a program stuck on copy_file_range(2) w/o catching signals? --HP