lkml.org 
[lkml]   [2020]   [Mar]   [3]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH 00/17] VFS: Filesystem information and notifications [ver #17]
On Tue, Mar 03, 2020 at 02:19:58PM +0000, David Howells wrote:
> Greg Kroah-Hartman <gregkh@linuxfoundation.org> wrote:
>
> > + fd = do_sys_open(dfd, filename, flags, 0000);
> > + if (fd <= 0)
> > + return fd;
> > +
> > + retval = ksys_read(fd, buffer, bufsize);
> > +
> > + __close_fd(current->files, fd);
>
> If you can use dentry_open() and vfs_read(), you might be able to avoid
> dealing with file descriptors entirely. That might make it worth a syscall.

Will poke at that...

> You're going to be asked for writefile() you know ;-)

Yup, that just got asked on this thread already :)

greg k-h

\
 
 \ /
  Last update: 2020-03-03 17:59    [W:0.119 / U:0.248 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site