[lkml]   [2002]   [Aug]   [27]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
    SubjectRe: Question about leases
    Hi again,

    On Tue, 27 Aug 2002 14:35:17 +1000 Stephen Rothwell <> wrote:
    > On Tue, 27 Aug 2002 03:06:16 +0200 Jan Hudec <> wrote:
    > >
    > > Please can anyone throw a bit light on file leases (fcntl F_SETLEASE
    > > command) or at least point me to some documentation? I can't find any.
    > There isn't any (except maybe the talk I gave at Linux Kongress
    > last year (
    > > As far as I figured out process holding a lease is notified when other
    > > process opens the leased file. But I am still not sure how the leases
    > > should then be released and how the process knows which lease was broken
    > > (struct siginfo does not seem to have union member for that case).
    > To release a lease, you use fcntl(fd, F_SETLEASE, F_UNLCK). The file
    > descriptor of the file that the lease is on is returned in the
    > siginfo structure.

    You should also be aware that there are lots of bugs with file leases
    before 2.4.20-pre3 and in early 2.5 kernels.
    Stephen Rothwell
    To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
    the body of a message to
    More majordomo info at
    Please read the FAQ at

     \ /
      Last update: 2005-03-22 13:28    [W:0.029 / U:3.720 seconds]
    ©2003-2017 Jasper Spaans. hosted at Digital OceanAdvertise on this site