lkml.org 
[lkml]   [2008]   [Nov]   [22]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    /
    Date
    From
    SubjectRe: [take 3] Use pid in inotify events.
    On Friday 21 November 2008, Evgeniy Polyakov wrote:
    > I have a network server, which gets IO requests from different clients
    > and maintains coherency of the data between them, but if file is
    > modified locally I want to flush or invalidate remote data. I decided
    > not to dig into the kernel on the server node and use inotify to get
    > notifications about events, but there is no way to determine if given IO
    > was originated by server itself (and in this case nothing should be
    > done), or by external application which accesses exported directory (and
    > in this case I should send update messages to clients).

    Why not require local access to use the same mechanism as remote, i.e.
    by "network mounting" the data on the local machine, too. That way
    there's no confusion over where the change originated nor who's copy
    must be invalidated.



    \
     
     \ /
      Last update: 2008-11-22 08:15    [W:4.225 / U:0.044 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site