From: Stephen Rothwell <sfr@canb.auug.org.au>
To: Jan Hudec <bulb@vagabond.cybernet.cz>
Cc: bulb@cimice.maxinet.cz, linux-kernel@vger.kernel.org
Subject: Re: Question about leases
Date: Tue, 27 Aug 2002 14:35:17 +1000 [thread overview]
Message-ID: <20020827143517.40ba04f7.sfr@canb.auug.org.au> (raw)
In-Reply-To: <20020827010616.GB16207@vagabond>
On Tue, 27 Aug 2002 03:06:16 +0200 Jan Hudec <bulb@cimice.maxinet.cz> 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 (http://www.canb.auug.org.au/~sfr/idle.html).
> 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.
--
Cheers,
Stephen Rothwell sfr@canb.auug.org.au
http://www.canb.auug.org.au/~sfr/
next prev parent reply other threads:[~2002-08-27 4:31 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2002-08-27 1:06 Jan Hudec
2002-08-27 4:35 ` Stephen Rothwell [this message]
2002-08-27 4:44 ` Stephen Rothwell
2002-09-02 11:29 ` Michael Kerrisk
2002-08-27 8:42 ` Jan Hudec
2002-08-27 12:16 ` Stephen Rothwell
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20020827143517.40ba04f7.sfr@canb.auug.org.au \
--to=sfr@canb.auug.org.au \
--cc=bulb@cimice.maxinet.cz \
--cc=bulb@vagabond.cybernet.cz \
--cc=linux-kernel@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®