Re: [RFC PATCH tarfs 3/6] Implement basic read-only mmap support

2021-05-02 Thread Joshua Branson
Samuel Thibault writes: > Sergey Bugaev, le sam. 01 mai 2021 21:27:33 +0300, a ecrit: > People often seem to assume I know everything in the Hurd. I simply > plainly don't. I'm used to the general source code and principles etc. > but anybody who has spent time on the code will probably know the

Re: [RFC PATCH tarfs 3/6] Implement basic read-only mmap support

2021-05-01 Thread Samuel Thibault
Sergey Bugaev, le sam. 01 mai 2021 21:27:33 +0300, a ecrit: > On Sat, May 1, 2021 at 8:48 PM Samuel Thibault > wrote: > > Since this is not part of the main hurd repo there is no copyright > > assignment requirement, so you can put your name. You can also assign > > copyright and then put the FSF

Re: [RFC PATCH tarfs 3/6] Implement basic read-only mmap support

2021-05-01 Thread Sergey Bugaev
On Sat, May 1, 2021 at 8:48 PM Samuel Thibault wrote: > Since this is not part of the main hurd repo there is no copyright > assignment requirement, so you can put your name. You can also assign > copyright and then put the FSF name. OK, I'll put my own name for now then. I'm fine with assigning

Re: [RFC PATCH tarfs 3/6] Implement basic read-only mmap support

2021-05-01 Thread Samuel Thibault
Sergey Bugaev, le sam. 01 mai 2021 19:27:45 +0300, a ecrit: > On Sat, May 1, 2021 at 6:23 PM Samuel Thibault > wrote: > > This is missing the copyright head:ng. > > Ah yes, sorry. Should I just put myself there, or "Hurd developers", > or "Free Software Foundation, Inc."?.. Since this is not pa

Re: [RFC PATCH tarfs 3/6] Implement basic read-only mmap support

2021-05-01 Thread Sergey Bugaev
On Sat, May 1, 2021 at 6:23 PM Samuel Thibault wrote: > This is missing the copyright head:ng. Ah yes, sorry. Should I just put myself there, or "Hurd developers", or "Free Software Foundation, Inc."?.. > > + err = create_pager (node, &obj); > > Is the pager getting cleaned at some point?

Re: [RFC PATCH tarfs 3/6] Implement basic read-only mmap support

2021-05-01 Thread Samuel Thibault
Sergey Bugaev, le jeu. 29 avril 2021 21:57:13 +0300, a ecrit: > diff --git a/pager.h b/pager.h > new file mode 100644 > index 0..34447c8c9 > --- /dev/null > +++ b/pager.h > @@ -0,0 +1,9 @@ > +#ifndef PAGER_H > +#define PAGER_H > + > +struct user_pager_info; > +extern struct port_bucket *tar

[RFC PATCH tarfs 3/6] Implement basic read-only mmap support

2021-04-29 Thread Sergey Bugaev
Each node can have a pager attached. The pager gets created the first time io_map () is invoked on the node, and destroyed once it has no clients. The pager gets its data the same way tarfs_read_node () does: by ask the cache to copy out the data. Note that this ommit only implement read-only mapp