From: Pavel Emelyanov <xemul-bzQdu9zFT3WakBO8gow8eQ@public.gmane.org>
To: "J. Bruce Fields" <bfields-uC3wQj2KruNg9hUCZPvPmw@public.gmane.org>
Cc: Jeff Layton <jlayton-vpEMnDpepFuMZCB2o+C8xQ@public.gmane.org>,
Alexander Viro
<viro-RmSDqhL/yNMiFSDQTTA3OLVCufUGDwFn@public.gmane.org>,
linux-fsdevel
<linux-fsdevel-u79uwXL29TY76Z2rM5mHXA@public.gmane.org>,
Linux Kernel Mailing List
<linux-kernel-u79uwXL29TY76Z2rM5mHXA@public.gmane.org>,
linux-api-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
Subject: Re: [PATCH] locks: Ability to test for flock presence on fd
Date: Wed, 3 Sep 2014 19:47:57 +0400 [thread overview]
Message-ID: <5407382D.1020809@parallels.com> (raw)
In-Reply-To: <20140903154434.GC22731-uC3wQj2KruNg9hUCZPvPmw@public.gmane.org>
On 09/03/2014 07:44 PM, J. Bruce Fields wrote:
...
>> Hope this explanation is more clear.
>
> Thanks, I think I understand.
>
> Remind me how you figure out which file descriptors point to the same
> file description (struct file)?
We do it with the help of kcmp() syscall:
https://github.com/cyrillos/linux-2.6/commit/951bc60c6a
Thanks,
Pavel
WARNING: multiple messages have this Message-ID (diff)
From: Pavel Emelyanov <xemul-bzQdu9zFT3WakBO8gow8eQ@public.gmane.org>
To: "J. Bruce Fields" <bfields-uC3wQj2KruNg9hUCZPvPmw@public.gmane.org>
Cc: Jeff Layton <jlayton-vpEMnDpepFuMZCB2o+C8xQ@public.gmane.org>,
Alexander Viro
<viro-RmSDqhL/yNMiFSDQTTA3OLVCufUGDwFn@public.gmane.org>,
linux-fsdevel
<linux-fsdevel-u79uwXL29TY76Z2rM5mHXA@public.gmane.org>,
Linux Kernel Mailing List
<linux-kernel-u79uwXL29TY76Z2rM5mHXA@public.gmane.org>,
<linux-api-u79uwXL29TY76Z2rM5mHXA@public.gmane.org>
Subject: Re: [PATCH] locks: Ability to test for flock presence on fd
Date: Wed, 3 Sep 2014 19:47:57 +0400 [thread overview]
Message-ID: <5407382D.1020809@parallels.com> (raw)
In-Reply-To: <20140903154434.GC22731-uC3wQj2KruNg9hUCZPvPmw@public.gmane.org>
On 09/03/2014 07:44 PM, J. Bruce Fields wrote:
...
>> Hope this explanation is more clear.
>
> Thanks, I think I understand.
>
> Remind me how you figure out which file descriptors point to the same
> file description (struct file)?
We do it with the help of kcmp() syscall:
https://github.com/cyrillos/linux-2.6/commit/951bc60c6a
Thanks,
Pavel
WARNING: multiple messages have this Message-ID (diff)
From: Pavel Emelyanov <xemul@parallels.com>
To: "J. Bruce Fields" <bfields@fieldses.org>
Cc: Jeff Layton <jlayton@poochiereds.net>,
Alexander Viro <viro@zeniv.linux.org.uk>,
linux-fsdevel <linux-fsdevel@vger.kernel.org>,
Linux Kernel Mailing List <linux-kernel@vger.kernel.org>,
<linux-api@vger.kernel.org>
Subject: Re: [PATCH] locks: Ability to test for flock presence on fd
Date: Wed, 3 Sep 2014 19:47:57 +0400 [thread overview]
Message-ID: <5407382D.1020809@parallels.com> (raw)
In-Reply-To: <20140903154434.GC22731@fieldses.org>
On 09/03/2014 07:44 PM, J. Bruce Fields wrote:
...
>> Hope this explanation is more clear.
>
> Thanks, I think I understand.
>
> Remind me how you figure out which file descriptors point to the same
> file description (struct file)?
We do it with the help of kcmp() syscall:
https://github.com/cyrillos/linux-2.6/commit/951bc60c6a
Thanks,
Pavel
next prev parent reply other threads:[~2014-09-03 15:47 UTC|newest]
Thread overview: 30+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-09-02 17:17 [PATCH] locks: Ability to test for flock presence on fd Pavel Emelyanov
2014-09-02 17:17 ` Pavel Emelyanov
2014-09-02 17:17 ` Pavel Emelyanov
2014-09-02 18:44 ` J. Bruce Fields
2014-09-02 19:07 ` Pavel Emelyanov
2014-09-02 19:07 ` Pavel Emelyanov
[not found] ` <54061562.4080306-bzQdu9zFT3WakBO8gow8eQ@public.gmane.org>
2014-09-02 19:43 ` J. Bruce Fields
2014-09-02 19:43 ` J. Bruce Fields
[not found] ` <20140902194300.GE31793-uC3wQj2KruNg9hUCZPvPmw@public.gmane.org>
2014-09-02 19:53 ` Jeff Layton
2014-09-02 19:53 ` Jeff Layton
2014-09-03 14:38 ` Pavel Emelyanov
2014-09-03 14:38 ` Pavel Emelyanov
[not found] ` <540727E0.6030005-bzQdu9zFT3WakBO8gow8eQ@public.gmane.org>
2014-09-03 15:44 ` J. Bruce Fields
2014-09-03 15:44 ` J. Bruce Fields
[not found] ` <20140903154434.GC22731-uC3wQj2KruNg9hUCZPvPmw@public.gmane.org>
2014-09-03 15:47 ` Pavel Emelyanov [this message]
2014-09-03 15:47 ` Pavel Emelyanov
2014-09-03 15:47 ` Pavel Emelyanov
2014-09-03 15:55 ` Jeff Layton
2014-09-03 15:55 ` Jeff Layton
[not found] ` <20140903115504.63a7ae6f-9yPaYZwiELC+kQycOl6kW4xkIHaj4LzF@public.gmane.org>
2014-09-03 16:00 ` Pavel Emelyanov
2014-09-03 16:00 ` Pavel Emelyanov
2014-09-03 16:00 ` Pavel Emelyanov
[not found] ` <54073B02.2060707-bzQdu9zFT3WakBO8gow8eQ@public.gmane.org>
2014-09-03 16:03 ` Jeff Layton
2014-09-03 16:03 ` Jeff Layton
2014-09-03 16:03 ` Jeff Layton
[not found] ` <20140903120321.604f9039-9yPaYZwiELC+kQycOl6kW4xkIHaj4LzF@public.gmane.org>
2014-09-03 16:57 ` Andy Lutomirski
2014-09-03 16:57 ` Andy Lutomirski
2014-09-09 16:18 ` J. Bruce Fields
2014-09-09 16:18 ` J. Bruce Fields
2014-09-10 13:32 ` Jeff Layton
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=5407382D.1020809@parallels.com \
--to=xemul-bzqdu9zft3wakbo8gow8eq@public.gmane.org \
--cc=bfields-uC3wQj2KruNg9hUCZPvPmw@public.gmane.org \
--cc=jlayton-vpEMnDpepFuMZCB2o+C8xQ@public.gmane.org \
--cc=linux-api-u79uwXL29TY76Z2rM5mHXA@public.gmane.org \
--cc=linux-fsdevel-u79uwXL29TY76Z2rM5mHXA@public.gmane.org \
--cc=linux-kernel-u79uwXL29TY76Z2rM5mHXA@public.gmane.org \
--cc=viro-RmSDqhL/yNMiFSDQTTA3OLVCufUGDwFn@public.gmane.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.