lkml.org 
[lkml]   [2002]   [Aug]   [27]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    /
    Date
    From
    SubjectRe: Question about leases
    Hi Jan,

    On Tue, 27 Aug 2002 10:42:44 +0200 Jan Hudec <bulb@cimice.maxinet.cz> wrote:
    >
    > One more question. Does the siginfo contain information weather is's
    > read or write that the other process attempted? And does it contain the

    No, you need to do fcntl(fd, F_GETLEASE) to find out what kind of
    lease you need to set to satisfy the other process i.e. if the other
    process does an open for reading then GETLEASE will return F_RDLCK
    and if they attempt an open for writing the GETLEASE will return F_UNLCK.

    > operation type for directory notifications?

    No, sorry.

    --
    Cheers,
    Stephen Rothwell sfr@canb.auug.org.au
    http://www.canb.auug.org.au/~sfr/
    -
    To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
    the body of a message to majordomo@vger.kernel.org
    More majordomo info at http://vger.kernel.org/majordomo-info.html
    Please read the FAQ at http://www.tux.org/lkml/

    \
     
     \ /
      Last update: 2005-03-22 13:22    [W:0.022 / U:0.888 seconds]
    ©2003-2016 Jasper Spaans. hosted at Digital OceanAdvertise on this site