From: Miklos S. <mi...@sz...> - 2013-02-18 09:51:36
|
On Mon, Feb 18, 2013 at 7:09 AM, David Strauss <da...@da...> wrote: > On Sun, Feb 17, 2013 at 9:23 PM, Miklos Szeredi <mi...@sz...> wrote: >> Ah, 'nopath' is undocumented it seems. I'll fix that. > > Does that still provide the updated path on write and release when a > rename has happened? I'd still like the following to work: Okay, what you really want is fuse_op->flag_nullpath_ok = 1 and 'hard_remove'. That will provide the path when available but give NULL if the file has been unlinked. Note, your caching optimization will break if there are other hard links to the file. E.g. fd = open("x"); link("x", "y"); unlink("x"); write(fd, ...); close(fd); will not work as expected. Thanks, Miklos |