Re: File sharing over virtio-9p

2019-10-28 Thread Valery Ushakov
On Mon, Oct 28, 2019 at 12:29:40 +0900, Ryota Ozaki wrote: > On Fri, Oct 25, 2019 at 11:19 PM Mouse wrote: > > > > > [W]hich of the following is more readable to the user: > > > > > $ ls foo > > > ls: foo: No such file or directory > > > > > or > > > > > $ ls foo > > > ls: stat(foo): No such file

Re: File sharing over virtio-9p

2019-10-27 Thread Ryota Ozaki
On Fri, Oct 25, 2019 at 11:19 PM Mouse wrote: > > > [W]hich of the following is more readable to the user: > > > $ ls foo > > ls: foo: No such file or directory > > > or > > > $ ls foo > > ls: stat(foo): No such file or directory > > It depends entirely on the user. > > As I recently wrote on a no

Re: File sharing over virtio-9p

2019-10-25 Thread Mouse
> [W]hich of the following is more readable to the user: > $ ls foo > ls: foo: No such file or directory > or > $ ls foo > ls: stat(foo): No such file or directory It depends entirely on the user. As I recently wrote on a non-NetBSD mailing list, there is no such thing as a good or bad user in

Re: File sharing over virtio-9p

2019-10-25 Thread Ryota Ozaki
On Fri, Oct 25, 2019 at 3:04 PM Michael van Elst wrote: > > ozaki.ry...@gmail.com (Ryota Ozaki) writes: > > >> @@ -72,7 +74,7 @@ serverconnect(const char *addr, unsigned short port) > >> + err(1, "setsockopt(SO_NOSIGPIPE)"); > >> +err(1, "open(%s)", path); > > >I prefer more info

Re: File sharing over virtio-9p

2019-10-24 Thread Ryota Ozaki
On Fri, Oct 25, 2019 at 2:38 PM Valery Ushakov wrote: > > On Fri, Oct 25, 2019 at 12:56:43 +0900, Ryota Ozaki wrote: > > > > @@ -72,7 +74,7 @@ serverconnect(const char *addr, unsigned short port) > > > [...] > > > + err(1, "setsockopt(SO_NOSIGPIPE)"); > > > > > > I'd just trim it down to

Re: File sharing over virtio-9p

2019-10-24 Thread Michael van Elst
ozaki.ry...@gmail.com (Ryota Ozaki) writes: >> @@ -72,7 +74,7 @@ serverconnect(const char *addr, unsigned short port) >> + err(1, "setsockopt(SO_NOSIGPIPE)"); >> +err(1, "open(%s)", path); >I prefer more informative messages. Why do you want to trim them? Usually the error gi

Re: File sharing over virtio-9p

2019-10-24 Thread Valery Ushakov
On Fri, Oct 25, 2019 at 12:56:43 +0900, Ryota Ozaki wrote: > > @@ -72,7 +74,7 @@ serverconnect(const char *addr, unsigned short port) > > [...] > > + err(1, "setsockopt(SO_NOSIGPIPE)"); > > > > I'd just trim it down to "SO_NOSIGPIPE". > > > > +err(1, "open(%s)", path); > > > > Di

Re: File sharing over virtio-9p

2019-10-24 Thread Ryota Ozaki
On Fri, Oct 25, 2019 at 3:30 AM Valery Ushakov wrote: > > On Thu, Oct 24, 2019 at 13:32:59 +0900, Ryota Ozaki wrote: > > > I've prepared complete patches ready to commit: > > https://www.netbsd.org/~ozaki-r/tweak-MAKEDEV.diff > > https://www.netbsd.org/~ozaki-r/vio9p.diff > > https://www.net

Re: File sharing over virtio-9p

2019-10-24 Thread Valery Ushakov
On Thu, Oct 24, 2019 at 13:32:59 +0900, Ryota Ozaki wrote: > I've prepared complete patches ready to commit: > https://www.netbsd.org/~ozaki-r/tweak-MAKEDEV.diff > https://www.netbsd.org/~ozaki-r/vio9p.diff > https://www.netbsd.org/~ozaki-r/vio9p-configs.diff > https://www.netbsd.org/~ozak

Re: File sharing over virtio-9p

2019-10-23 Thread Ryota Ozaki
On Tue, May 21, 2019 at 1:39 PM Ryota Ozaki wrote: > > Hi, > > The following two patches enables a NetBSD guest running > on a Linux KVM to share files with its host over virtio-9p. > > https://www.netbsd.org/~ozaki-r/vio9p.diff > https://www.netbsd.org/~ozaki-r/mount_9p-cdev.diff > > The firs

Re: File sharing over virtio-9p

2019-05-21 Thread Andrew Cagney
On Tue, 21 May 2019 at 03:28, Ryota Ozaki wrote: > > Hi, > > The following two patches enables a NetBSD guest running > on a Linux KVM to share files with its host over virtio-9p. > Have fun, > ozaki-r Thanks.

File sharing over virtio-9p

2019-05-21 Thread Ryota Ozaki
Hi, The following two patches enables a NetBSD guest running on a Linux KVM to share files with its host over virtio-9p. https://www.netbsd.org/~ozaki-r/vio9p.diff https://www.netbsd.org/~ozaki-r/mount_9p-cdev.diff The first patch exports a 9p endpoint of virtio-9p via a character device (e.