This queue is for tickets about the Linux-Fuser CPAN distribution.

Report information
The Basics
Id:
43979
Status:
resolved
Priority:
Low/Low
Queue:

People
Owner:
jns [...] gellyfish.co.uk
Requestors:
CRAKRJACK [...] cpan.org
Cc:
AdminCc:

BugTracker
Severity:
Wishlist
Broken in:
(no value)
Fixed in:
1.5



Subject: Please include file descriptor numbers as part of proccess objects
MIME-Version: 1.0
X-Mailer: MIME-tools 5.427 (Entity 5.427)
Content-Type: text/plain
Charset: utf8
Content-Disposition: inline
Content-Transfer-Encoding: binary
X-RT-Original-Encoding: utf-8
Content-Length: 636
Hi, You are returning multiple process info objects for a process if that process has the file opened more than once. According to RT#12067, this is intentional. However, there is nothing to distinguish one of these objects from another. Can you please add an accessor to the process objects that returns the processes' file descriptor numbers? In my code, I'm having to go back and traverse the /proc filesystem again to pick up this information after Linux::Fuser has told me the relevant information. I guess these objects would then be better considered "Descriptor" objects than "Process" objects... :-) Thanks, Tyler
MIME-Version: 1.0
X-Spam-Status: No, hits=0.0 required=8.0 tests=DK_SIGNED,SPF_PASS
In-Reply-To: <rt-3.6.HEAD-22416-1236636029-447.43979-4-0@rt.cpan.org>
References: <RT-Ticket-43979@rt.cpan.org> <rt-3.6.HEAD-22416-1236636029-447.43979-4-0@rt.cpan.org>
Message-ID: <727d97d80903100310n17f42fe6wd4831a8cc43f2670@mail.gmail.com>
Content-Type: text/plain; charset=UTF-8
X-RT-Original-Encoding: utf-8
Received: from la.mx.develooper.com (x1.develooper.com [63.251.223.170]) by diesel.bestpractical.com (Postfix) with SMTP id B7EEC23C103 for <bug-Linux-Fuser@rt.cpan.org>; Tue, 10 Mar 2009 06:11:15 -0400 (EDT)
Received: (qmail 27995 invoked by uid 103); 10 Mar 2009 10:11:15 -0000
Received: from x16.dev (10.0.100.26) by x1.dev with QMQP; 10 Mar 2009 10:11:15 -0000
Received: from mail-fx0-f171.google.com (HELO mail-fx0-f171.google.com) (209.85.220.171) by 16.mx.develooper.com (qpsmtpd/0.43rc1) with ESMTP; Tue, 10 Mar 2009 03:11:10 -0700
Received: by fxm19 with SMTP id 19so1511241fxm.45 for <bug-Linux-Fuser@rt.cpan.org>; Tue, 10 Mar 2009 03:10:43 -0700 (PDT)
Received: by 10.223.116.205 with SMTP id n13mr5149549faq.103.1236679843465; Tue, 10 Mar 2009 03:10:43 -0700 (PDT)
Delivered-To: cpan-bug+Linux-Fuser@diesel.bestpractical.com
Subject: Re: [rt.cpan.org #43979] Please include file descriptor numbers as part of proccess objects
Domainkey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:sender:in-reply-to:references:date :x-google-sender-auth:message-id:subject:from:to:content-type :content-transfer-encoding; b=HCLilpaY4/bEkZEumgh/Ui6xxVQ3GjZ6IMm4RZiC7PbBDxVGjrgS4W1jjJC7bJcJW6 MltP2FobqYnpeml2GRHMuZRVtK9T/puotWddUJnS323ELMBXAvwBszbPCRsetdgAMpgQ P26vfisb+JQc83MmY5Fb5l/XzmNcC5XmQUokA=
Return-Path: <jonathan.stowe@gmail.com>
Dkim-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:sender:received:in-reply-to :references:date:x-google-sender-auth:message-id:subject:from:to :content-type:content-transfer-encoding; bh=I5xteJU4HkseKyeazum1FJsL3kUoISC2/sWPUV0vpGA=; b=sfCjhht2JQL941GFmcLwIZSfLgyLtPhlc9i/ofO74MCfxB8IYZFZzHw6EMiBE5rCFh xQ31kgZl2RCYlQThncBgD7g8y2Z4A9xccEQvhLbpYDAw0nrzOzZ2Y1N1qptVIcSN2//O TlDVfqtYZjkVbDydwFCQucr4oin5JBsbOlPm4=
X-Spam-Check-BY: 16.mx.develooper.com
X-Original-To: bug-Linux-Fuser@rt.cpan.org
X-Google-Sender-Auth: 5d1754fc776d91cb
Date: Tue, 10 Mar 2009 10:10:43 +0000
Sender: jonathan.stowe@gmail.com
X-Spam-Level: *
To: bug-Linux-Fuser@rt.cpan.org, tyler@yi.org
Content-Transfer-Encoding: quoted-printable
From: Jonathan Stowe <jns@rabidgravy.com>
RT-Message-ID: <rt-3.6.HEAD-22416-1236679880-468.43979-0-0@rt.cpan.org>
Content-Length: 1562
Hi, 2009/3/9 CRAKRJACK via RT <bug-Linux-Fuser@rt.cpan.org>:
Show quoted text
> Mon Mar 09 18:00:29 2009: Request 43979 was acted upon. > Transaction: Ticket created by CRAKRJACK >       Queue: Linux-Fuser >     Subject: Please include file descriptor numbers as part of proccess objects >   Broken in: (no value) >    Severity: Wishlist >       Owner: Nobody >  Requestors: CRAKRJACK@cpan.org >      Status: new >  Ticket <URL: https://rt.cpan.org/Ticket/Display.html?id=43979 > > > > Hi, > >  You are returning multiple process info objects for a process if that > process has the file opened more than once. According to RT#12067, this > is intentional. However, there is nothing to distinguish one of these > objects from another. Can you please add an accessor to the process > objects that returns the processes' file descriptor numbers? In my code, > I'm having to go back and traverse the /proc filesystem again to pick up > this information after Linux::Fuser has told me the relevant information. > >  I guess these objects would then be better considered "Descriptor" > objects than "Process" objects... :-) >
That sounds relatively sensible :-) In order to maintain some modicum of backward compatibility I'm going to retain the Linux::Fuser::Procinfo and add to it another member which will return a Linux::Fuser::FileDescriptor which will have the FD number and the contents of the fdinfo. If I get a minute I might get this out today but definitely this week. /J\ -- http://rabidgravy.com/ - Music http://gellyfish.co.uk/ - Everything else
MIME-Version: 1.0
X-Spam-Status: No, hits=0.0 required=8.0 tests=DK_SIGNED,SPF_PASS
In-Reply-To: <727d97d80903100310n17f42fe6wd4831a8cc43f2670@mail.gmail.com>
References: <RT-Ticket-43979@rt.cpan.org> <rt-3.6.HEAD-22416-1236636029-447.43979-4-0@rt.cpan.org> <727d97d80903100310n17f42fe6wd4831a8cc43f2670@mail.gmail.com>
Message-ID: <727d97d80903100715s9c02f5cie1b888c2f49d8e04@mail.gmail.com>
Content-Type: text/plain; charset=UTF-8
X-RT-Original-Encoding: utf-8
Received: from la.mx.develooper.com (x1.develooper.com [63.251.223.170]) by diesel.bestpractical.com (Postfix) with SMTP id 3171323C115 for <bug-Linux-Fuser@rt.cpan.org>; Tue, 10 Mar 2009 10:15:44 -0400 (EDT)
Received: (qmail 2758 invoked by uid 103); 10 Mar 2009 14:15:43 -0000
Received: from x16.dev (10.0.100.26) by x1.dev with QMQP; 10 Mar 2009 14:15:43 -0000
Received: from mail-bw0-f179.google.com (HELO mail-bw0-f179.google.com) (209.85.218.179) by 16.mx.develooper.com (qpsmtpd/0.43rc1) with ESMTP; Tue, 10 Mar 2009 07:15:39 -0700
Received: by bwz27 with SMTP id 27so1592879bwz.45 for <bug-Linux-Fuser@rt.cpan.org>; Tue, 10 Mar 2009 07:15:09 -0700 (PDT)
Received: by 10.223.113.136 with SMTP id a8mr5424076faq.76.1236694509753; Tue, 10 Mar 2009 07:15:09 -0700 (PDT)
Delivered-To: cpan-bug+Linux-Fuser@diesel.bestpractical.com
Subject: Re: [rt.cpan.org #43979] Please include file descriptor numbers as part of proccess objects
Domainkey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:sender:in-reply-to:references:date :x-google-sender-auth:message-id:subject:from:to:content-type :content-transfer-encoding; b=jUyd7A+SogV8/5mVIktG+0HCXKxTT+bnjMTcJaF5ma2ycI1NrSH2g+ErDpSIsTCOzz VjFRYQ9AQESCLd71I700snq2gvKHhzW5l8UlJawFOd48Nu/GmALFgLd2au6YHZo0eYeT xujNAzAR3oIJsnBwBDsrWYsFuryDih8Gk9xfE=
Return-Path: <jonathan.stowe@gmail.com>
Dkim-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:sender:received:in-reply-to :references:date:x-google-sender-auth:message-id:subject:from:to :content-type:content-transfer-encoding; bh=tVQzGEtJ3Eq+/ec7XI3lJcUvKa5svRLOrA3DS6UBXPk=; b=Q8dGm28KV3el5MecvTMa7ckwtFLGNAmvzY5OVYhkE/rWctu4Ke5GIdzqkBXvFEYVLe yvw4aNQY/vHZYx005rTQ7r8cundpd8kbXWdM3YcF7UgDpAag91VNNofmX9IHS6aq8+z2 Xpvrdl0rb170Xso0APWzL5XvM9hGMUOQdfIYo=
X-Spam-Check-BY: 16.mx.develooper.com
X-Original-To: bug-Linux-Fuser@rt.cpan.org
X-Google-Sender-Auth: 8bf5c1095f79cb99
Date: Tue, 10 Mar 2009 14:15:09 +0000
Sender: jonathan.stowe@gmail.com
X-Spam-Level: *
To: bug-Linux-Fuser@rt.cpan.org, tyler@yi.org
Content-Transfer-Encoding: quoted-printable
From: Jonathan Stowe <jns@rabidgravy.com>
RT-Message-ID: <rt-3.6.HEAD-22416-1236694548-1680.43979-0-0@rt.cpan.org>
Content-Length: 2040
Hi, 2009/3/10 Jonathan Stowe <jns@rabidgravy.com>:
Show quoted text
> Hi, > 2009/3/9 CRAKRJACK via RT <bug-Linux-Fuser@rt.cpan.org>:
>> Mon Mar 09 18:00:29 2009: Request 43979 was acted upon. >> Transaction: Ticket created by CRAKRJACK >>       Queue: Linux-Fuser >>     Subject: Please include file descriptor numbers as part of proccess objects >>   Broken in: (no value) >>    Severity: Wishlist >>       Owner: Nobody >>  Requestors: CRAKRJACK@cpan.org >>      Status: new >>  Ticket <URL: https://rt.cpan.org/Ticket/Display.html?id=43979 > >> >> >> Hi, >> >>  You are returning multiple process info objects for a process if that >> process has the file opened more than once. According to RT#12067, this >> is intentional. However, there is nothing to distinguish one of these >> objects from another. Can you please add an accessor to the process >> objects that returns the processes' file descriptor numbers? In my code, >> I'm having to go back and traverse the /proc filesystem again to pick up >> this information after Linux::Fuser has told me the relevant information. >> >>  I guess these objects would then be better considered "Descriptor" >> objects than "Process" objects... :-) >>
> > That sounds relatively sensible :-)  In order to maintain some modicum > of backward compatibility I'm going to retain the > Linux::Fuser::Procinfo and add to it another member which will return > a Linux::Fuser::FileDescriptor which will have the FD number and the > contents of the fdinfo.  If I get a minute I might get this out today > but definitely this week.
I've uploaded Linux::Fuser 1.5 which provides a filedes() method to the Linux::Fuser::Procinfo which returns a Linx::Fuser::FileDescriptor which provides access to the FD number and the details from /proc/$pid/fdinfo Bear in mind that the fdinfo is only available in relatively recent kernels (from 2.6.22 onwards) and may change at some point (there are pending patches I've seen) /J\ -- http://rabidgravy.com/ - Music http://gellyfish.co.uk/ - Everything else
MIME-Version: 1.0
X-Mailer: MIME-tools 5.427 (Entity 5.427)
Content-Disposition: inline
Charset: utf8
Content-Type: text/plain
Message-ID: <rt-3.6.HEAD-22416-1236695288-1156.43979-0-0@rt.cpan.org>
Content-Transfer-Encoding: binary
X-RT-Original-Encoding: utf-8
Content-Length: 25
released Linux::Fuser 1.5
X-Cloudmark-SP-Result: v=1.0 c=0 a=lB6SkW4sY_erSDb6x0YA:9 a=zt6iprmJDto5AZke8X93pesank4A:4 a=peAiJyq8A28A:10 a=D920m1W2nHMA:10 a=AC4b6R8PCdgA:10
MIME-Version: 1.0
X-Spam-Status: No, hits=0.0 required=8.0 tests=
In-Reply-To: <rt-3.6.HEAD-22416-1236694548-1680.43979-6-0@rt.cpan.org>
X-Cloudmark-SP-Filtered: true
Content-Disposition: inline
References: <RT-Ticket-43979@rt.cpan.org> <rt-3.6.HEAD-22416-1236636029-447.43979-4-0@rt.cpan.org> <727d97d80903100310n17f42fe6wd4831a8cc43f2670@mail.gmail.com> <727d97d80903100715s9c02f5cie1b888c2f49d8e04@mail.gmail.com> <rt-3.6.HEAD-22416-1236694548-1680.43979-6-0@rt.cpan.org>
Message-ID: <20090320015058.GA25603@yi.org>
Content-Type: text/plain; charset="utf-8"
X-RT-Original-Encoding: utf-8
Received: from la.mx.develooper.com (x1.develooper.com [63.251.223.170]) by diesel.bestpractical.com (Postfix) with SMTP id 048AB4DCF81 for <bug-Linux-Fuser@rt.cpan.org>; Thu, 19 Mar 2009 21:51:20 -0400 (EDT)
Received: (qmail 3539 invoked by uid 103); 20 Mar 2009 01:51:20 -0000
Received: from x16.dev (10.0.100.26) by x1.dev with QMQP; 20 Mar 2009 01:51:20 -0000
Received: from idcmail-mo2no.shaw.ca (HELO idcmail-mo2no.shaw.ca) (64.59.134.9) by 16.mx.develooper.com (qpsmtpd/0.80) with ESMTP; Thu, 19 Mar 2009 18:51:03 -0700
Received: from pd5ml2no-ssvc.prod.shaw.ca ([10.0.153.164]) by pd5mo1no-svcs.prod.shaw.ca with ESMTP; 19 Mar 2009 19:51:00 -0600
Received: from s0106001c10951c35.gv.shawcable.net (HELO domus.crackerjack.net) ([96.50.20.197]) by pd5ml2no-dmz.prod.shaw.ca with ESMTP; 19 Mar 2009 19:50:59 -0600
Received: from faraway by domus.crackerjack.net with local (Exim 4.69) (envelope-from <tyler@yi.org>) id 1LkTsx-0007dx-Df for bug-Linux-Fuser@rt.cpan.org; Thu, 19 Mar 2009 18:50:59 -0700
Delivered-To: cpan-bug+Linux-Fuser@diesel.bestpractical.com
Subject: Re: [rt.cpan.org #43979] Please include file descriptor numbers as part of proccess objects
User-Agent: Mutt/1.5.18 (2008-05-17)
Return-Path: <tyler@yi.org>
X-Spam-Check-BY: 16.mx.develooper.com
X-Original-To: bug-Linux-Fuser@rt.cpan.org
Date: Thu, 19 Mar 2009 18:50:59 -0700
X-Spam-Level: *
To: Jonathan Stowe via RT <bug-Linux-Fuser@rt.cpan.org>
From: Tyler MacDonald <tyler@yi.org>
RT-Message-ID: <rt-3.6.HEAD-25907-1237513888-1432.43979-0-0@rt.cpan.org>
Content-Length: 620
Jonathan Stowe via RT <bug-Linux-Fuser@rt.cpan.org> wrote:
Show quoted text
> I've uploaded Linux::Fuser 1.5 which provides a filedes() method to > the Linux::Fuser::Procinfo which returns a Linx::Fuser::FileDescriptor > which provides access to the FD number and the details from > /proc/$pid/fdinfo > > Bear in mind that the fdinfo is only available in relatively recent > kernels (from 2.6.22 onwards) and may change at some point (there are > pending patches I've seen)
Nice!! I've uploaded File::Lock::Multi 0.03 up to CPAN, which takes advantage of this, and provides a (messier) solution for non-linux users. Thanks, Tyler
MIME-Version: 1.0
X-Mailer: MIME-tools 5.504 (Entity 5.504)
Content-Disposition: inline
X-RT-Interface: Web
Content-Type: text/plain; charset="utf-8"
Message-ID: <rt-4.0.16-14887-1382869465-1642.43979-0-0@rt.cpan.org>
Content-Transfer-Encoding: binary
X-RT-Original-Encoding: utf-8
X-RT-Encrypt: 0
X-RT-Sign: 0
Content-Length: 14
Uploaded a 1.6


This service runs on Request Tracker, is sponsored by The Perl Foundation, and maintained by Best Practical Solutions.

Please report any issues with rt.cpan.org to rt-cpan-admin@bestpractical.com.