From: Jan Hudec <bulb@cimice.maxinet.cz>
To: Stephen Rothwell <sfr@canb.auug.org.au>
Cc: Jan Hudec <bulb@vagabond.cybernet.cz>,
bulb@cimice.maxinet.cz, linux-kernel@vger.kernel.org
Subject: Re: Question about leases
Date: Tue, 27 Aug 2002 10:42:44 +0200 [thread overview]
Message-ID: <20020827084244.GA23077@vagabond> (raw)
In-Reply-To: <20020827143517.40ba04f7.sfr@canb.auug.org.au>
On Tue, Aug 27, 2002 at 02:35:17PM +1000, Stephen Rothwell wrote:
> > 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.
One more question. Does the siginfo contain information weather is's
read or write that the other process attempted? And does it contain the
operation type for directory notifications?
-------------------------------------------------------------------------------
Jan 'Bulb' Hudec <bulb@ucw.cz>
next prev parent reply other threads:[~2002-08-27 8:38 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
2002-08-27 4:44 ` Stephen Rothwell
2002-09-02 11:29 ` Michael Kerrisk
2002-08-27 8:42 ` Jan Hudec [this message]
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=20020827084244.GA23077@vagabond \
--to=bulb@cimice.maxinet.cz \
--cc=bulb@vagabond.cybernet.cz \
--cc=linux-kernel@vger.kernel.org \
--cc=sfr@canb.auug.org.au \
/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®