Thread (117 messages) 117 messages, 14 authors, 2020-03-07

Re: [PATCH 00/17] VFS: Filesystem information and notifications [ver #17]

From: David Howells <dhowells@redhat.com>
Date: 2020-03-03 14:20:08
Also in: linux-fsdevel, lkml

Greg Kroah-Hartman [off-list ref] 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.

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

David
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help