[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: tail + inotify over nfs
From: |
Giuseppe Scrivano |
Subject: |
Re: tail + inotify over nfs |
Date: |
Tue, 15 Dec 2009 13:22:47 +0100 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/23.1.50 (gnu/linux) |
Hello Pádraig,
Pádraig Brady <address@hidden> writes:
> It doesn't handle the above remount case though
> as if I mount the parent dir of a file or bind mount the file itself
> then there are no inotify notifications. This remounting issue is
> independent of nfs anyway. So can inotify handle this or will we
> have to periodically check with a select rather than a blocking read?
inotify should notify it somehow, but I haven't checked to say it for
sure.
IMO, a good solution actually is to return from `tail_forever_inotify'
as soon as a remote file appears and enter `tail_forever'. The
disadvantage is that there is no way to return back to the inotify
backend when the file path becomes local again, but I don't really think
this scenario is going to happen often.
I am also thinking of a tail refactoring and merge the poll based
backend with the new inotify backend, having the possibility to handle
different files with different mechanisms, it will solve the stdin
problem too. I hope to have soon some time to look at it.
Cheers,
Giuseppe
- tail + inotify over nfs, Pádraig Brady, 2009/12/12
- Re: tail + inotify over nfs, Jim Meyering, 2009/12/13
- Re: tail + inotify over nfs, Andreas Schwab, 2009/12/13
- Re: tail + inotify over nfs, Giuseppe Scrivano, 2009/12/13
- Re: tail + inotify over nfs, Jim Meyering, 2009/12/13
- Re: tail + inotify over nfs, Pádraig Brady, 2009/12/15
- Re: tail + inotify over nfs,
Giuseppe Scrivano <=
- Re: tail + inotify over nfs, Jim Meyering, 2009/12/16
- Re: tail + inotify over nfs, Pádraig Brady, 2009/12/22
- Re: tail + inotify over nfs, Jim Meyering, 2009/12/23
- Re: tail + inotify over nfs, Pádraig Brady, 2009/12/23
- Re: tail + inotify over nfs, Jim Meyering, 2009/12/24
- Re: tail + inotify over nfs, Pádraig Brady, 2009/12/24
- Re: tail + inotify over nfs, Jim Meyering, 2009/12/26