Re: [PATCH 30/38] vfs: syscall: Add fsmount() to create a mount for a superblock [ver #10]

2018-07-27 Thread David Howells
Andy Lutomirski wrote: > int mfd = fsmount(...); > > where you pass in an fscontext fd and get out an fd referring to the > root of the filesystem? In this case, maybe fs_open_root(2) would be > a better name. It's not necessarily the root of the filesystem in the sense of sb->s_root. It might

Re: [PATCH 30/38] vfs: syscall: Add fsmount() to create a mount for a superblock [ver #10]

2018-07-27 Thread David Howells
Andy Lutomirski wrote: > I have a potentially silly objection. For the old timers, "mount" means to > stick a reel of tape or some similar object onto a reader, which seems to > imply that "mount" means to start up the filesystem. For younguns, this > meaning is probably lost, and the more obviou

Re: [PATCH 30/38] vfs: syscall: Add fsmount() to create a mount for a superblock [ver #10]

2018-07-27 Thread Andy Lutomirski
On Fri, Jul 27, 2018 at 12:27 PM, Andy Lutomirski wrote: > > >> On Jul 27, 2018, at 10:34 AM, David Howells wrote: >> >> Provide a system call by which a filesystem opened with fsopen() and >> configured by a series of writes can be mounted: >> >>int ret = fsmount(int fsfd, unsigned int flags

Re: [PATCH 30/38] vfs: syscall: Add fsmount() to create a mount for a superblock [ver #10]

2018-07-27 Thread Andy Lutomirski
> On Jul 27, 2018, at 10:34 AM, David Howells wrote: > > Provide a system call by which a filesystem opened with fsopen() and > configured by a series of writes can be mounted: > >int ret = fsmount(int fsfd, unsigned int flags, > unsigned int ms_flags); > > where fsfd is the

[PATCH 30/38] vfs: syscall: Add fsmount() to create a mount for a superblock [ver #10]

2018-07-27 Thread David Howells
Provide a system call by which a filesystem opened with fsopen() and configured by a series of writes can be mounted: int ret = fsmount(int fsfd, unsigned int flags, unsigned int ms_flags); where fsfd is the file descriptor returned by fsopen(). flags can be 0 o