tech-kern archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: let FS force FDIRECT [PATCH]



Emmanuel Dreyfus <manu%netbsd.org@localhost> wrote:

> We can cheat that way and keep the flag in struct puffs_node, leaving
> struct vnode untouched. This patch does that:
> http://ftp.espci.fr/shadow/manu/iodirect.patch

Updated patch, which uses a new argument in PUFFS open2 method for flags
from FS. We may want to support some later that do not map to flags in
the mode argument.

http://ftp.espci.fr/shadow/manu/iodirect2.patch

While there, FUSE open has two other open flags returned by FS:

- FOPEN_KEEP_CACHE: do not flush page cache on open. Do we do it
somewhere in the kernel? If not, then I guess the open method should
call puffs_flush_pagecache_node() when that flag is not sent.

- FOPEN_NONSEEKABLE: the FS cannot seek. The seek method in perfused
does nothing anyway, hence I removed it in my patch: it just wasted time
with useless requests from kernel.

-- 
Emmanuel Dreyfus
http://hcpnet.free.fr/pubz
manu%netbsd.org@localhost


Home | Main Index | Thread Index | Old Index