From: "Michael Kerrisk" <m.kerrisk@gmx.net>
To: "Linux Kernel Mailing List" <linux-kernel@vger.kernel.org>
Cc: <willy@linuxcare.com>, <sfr@canb.auug.org.au>
Subject: QN: Usage and purpose of file leases (F_SETLEASE, F_GETLEASE)
Date: Wed, 13 Feb 2002 06:44:08 +0100 [thread overview]
Message-ID: <00f701c1b451$7cb56d60$ffb4fea9@pukaki> (raw)
In-Reply-To: <20020213002115.GB22307@gwyn.tux.org>
Gidday,
I've had a look through various LK archives, and elsewhere, and read the
sources, and there seems to be no documentation to be found on Linux file
leases (as set by fcntl(fd, F_SETLEASE, lease-type)).
My question(s): what are file leases, what applications currently use them,
and what are they used for?
After reading the relevant sources and doing a done a bit of
experimentation, I can see that setting a lease can allow one process to
find out if another process opens or truncates a specified file, through the
generation of a SIGIO signal. That picture is very sketchy (e.g., there is
some system for downgrading a write lease to a read lease after a certain
timeout interval, but I haven't nailed down the details), and probably
incomplete - can anyone fill it out, or point me to documentation on file
leases.
Ultimately, I'd like to add material on file leases to the fcntl() man page.
Cheers
Michael
prev parent reply other threads:[~2002-02-13 5:44 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2002-02-13 0:21 [Patch] #define foo(a) do { ... } while; typo fix for 2.4.18-pre9-ac1 Timothy Ball
2002-02-13 5:44 ` Michael Kerrisk [this message]
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='00f701c1b451$7cb56d60$ffb4fea9@pukaki' \
--to=m.kerrisk@gmx.net \
--cc=linux-kernel@vger.kernel.org \
--cc=sfr@canb.auug.org.au \
--cc=willy@linuxcare.com \
/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®