fs_rom closing and re-opening watches
Pirmin Duss
pirmin.duss at gapfruit.com
Wed Nov 4 08:39:09 CET 2020
Hello Emery
Thanks for the explanation. With this information I see, why closing and
re-opening files on notification is required.
Cheers,
Pirmin
On 11/3/20 10:57 AM, Emery Hemingway wrote:
> Hello Pirmin,
>
> From what I remember, given that the watch notifications do not carry
> any metadata on the nature of the notification (for better or worse),
> closing and reopening the handles is the best way for fs_rom to stay
> informed.
>
> I believe the reasoning was that if a file exists and is watched, then a
> new file is "moved" to replace the watched file, a fresh watch handle
> needs to be opened. I think many text editors and other tools do this.
>
> Cheers,
> Emery
>
>
> _______________________________________________
> Genode users mailing list
> users at lists.genode.org
> https://lists.genode.org/listinfo/users
--
Pirmin Duss
Founder and Senior Software Engineer
gapfruit AG
Baarerstrasse 135
CH-6300 Zug
+41 79 683 61 84
pirmin.duss at gapfruit.com
More information about the users
mailing list