Re: File sharing over virtio-9p

2025-03-28 Thread Greg A. Woods
At Tue, 25 Mar 2025 19:31:21 +0900, Ryota Ozaki wrote: Subject: Re: File sharing over virtio-9p > > vio9p is not optimized for performance yet, for example, it can serve > each request synchronously. Good to know. > > I wonder is there anything NetBSD, i.e. vio9p(4), can do

Re: File sharing over virtio-9p

2025-03-25 Thread Ryota Ozaki
On Tue, Mar 25, 2025 at 10:35 AM Greg A. Woods wrote: > > At Thu, 24 Oct 2019 13:32:59 +0900, Ryota Ozaki wrote: > Subject: Re: File sharing over virtio-9p > > > > > A NetBSD guest can mount the exported directory with mount_9p. > > > > > > mount_9

Re: File sharing over virtio-9p

2025-03-24 Thread Greg A. Woods
At Thu, 24 Oct 2019 13:32:59 +0900, Ryota Ozaki wrote: Subject: Re: File sharing over virtio-9p > > > A NetBSD guest can mount the exported directory with mount_9p. > > > > mount_9p -cu /dev/vio9p0 /mnt/9p So I finally got a chance to try this the other day after uncom

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.