Skip Menu |

This queue is for tickets about the Device-Blkid CPAN distribution.

Report information
The Basics
Id: 77825
Status: rejected
Priority: 0/
Queue: Device-Blkid

People
Owner: BASTIAN [...] cpan.org
Requestors: jbmere [...] gmail.com
Cc:
AdminCc:

Bug Information
Severity: (no value)
Broken in: (no value)
Fixed in: (no value)



Subject: Bug in Blkid_devno_to_devicename($dev)
Date: Thu, 14 Jun 2012 16:45:28 +0200
To: bug-Device-Blkid [...] rt.cpan.org
From: J_Ordieres <jbmere [...] gmail.com>
Hello I'm using ubuntu 12.04 and I'm trying to use Device::Blkid to find the relationship between a file and the UUID of the device where it is stored. Basically I gahter the device number by using stat and then I order (after setting up the cache variable, etc.) a Blkid_devno_to_devname($dev) and sometimes it works and sometimes it doesnot. When it works it returns '/dev/sda1' for instance but when it doesnot it returns an empty variable. Could I have a workarround to this issue ? Thanks in advance. I've forget to mention that the file /etc/blkid.tab is properly populated.
Download signature.asc
application/pgp-signature 262b

Message body not shown because it is not plain text.

Subject: Re: Bug in Blkid_devno_to_devicename($dev)
Date: Thu, 14 Jun 2012 16:49:00 +0200
To: bug-Device-Blkid [...] rt.cpan.org
From: J_Ordieres <jbmere [...] gmail.com>
Sorry again I forgot to mention the official data: Device::Blkid version: 0.9.1 Perl version: 5.14.2 Operating system: Linux i686 kernel 3.2.0-24-generic #39-Ubuntu SMP On 14/06/12 16:45, J_Ordieres wrote: Show quoted text
> Hello > > I'm using ubuntu 12.04 and I'm trying to use Device::Blkid to find the > relationship between a file and the UUID of the device where it is stored. > > Basically I gahter the device number by using stat and then I order > (after setting up the cache variable, etc.) a > Blkid_devno_to_devname($dev) and sometimes it works and sometimes it > doesnot. > > When it works it returns '/dev/sda1' for instance but when it doesnot it > returns an empty variable. > > Could I have a workarround to this issue ? > > Thanks in advance. > > I've forget to mention that the file /etc/blkid.tab is properly populated. >
Download signature.asc
application/pgp-signature 262b

Message body not shown because it is not plain text.

Hi, Am Do 14. Jun 2012, 10:45:54, jbmere@gmail.com schrieb: Show quoted text
> I'm using ubuntu 12.04 and I'm trying to use Device::Blkid to find the > relationship between a file and the UUID of the device where it is stored. > > Basically I gahter the device number by using stat and then I order > (after setting up the cache variable, etc.) a > Blkid_devno_to_devname($dev) and sometimes it works and sometimes it > doesnot.
I'm very sorry for not answering any earlier. Your messages got a little lost between quite a bunch of things I need to do. Unfortunately, I'm not really sure what to answer. I have neither experienced problems similar to what you describe, nor do I have any idea of what is going wrong here. From what you are writing (cache populated) I guess that you are not currently running your code with root permissions. What happens when you do so? Can you find any common properties of runs where you get correct/incorrent responses? Thx Bastian
Subject: Re: [rt.cpan.org #77825] Bug in Blkid_devno_to_devicename($dev)
Date: Wed, 01 Aug 2012 14:18:33 +0200
To: bug-Device-Blkid [...] rt.cpan.org
From: J_Ordieres <jbmere [...] gmail.com>
Hi there Thank you very much for your answer. In fact, the point that even if you run the code as root user you always need to run before a blkid in order to have the cache loaded. No way to get it loaded from the software itself. Thanks again JoaquĆ­n On 01/08/12 12:42, Bastian Friedrich via RT wrote: Show quoted text
> <URL: https://rt.cpan.org/Ticket/Display.html?id=77825 > > > Hi, > > Am Do 14. Jun 2012, 10:45:54, jbmere@gmail.com schrieb:
>> I'm using ubuntu 12.04 and I'm trying to use Device::Blkid to find the >> relationship between a file and the UUID of the device where it is stored. >> >> Basically I gahter the device number by using stat and then I order >> (after setting up the cache variable, etc.) a >> Blkid_devno_to_devname($dev) and sometimes it works and sometimes it >> doesnot.
> I'm very sorry for not answering any earlier. Your messages got a little > lost between quite a bunch of things I need to do. > > Unfortunately, I'm not really sure what to answer. I have neither > experienced problems similar to what you describe, nor do I have any > idea of what is going wrong here. >
> >From what you are writing (cache populated) I guess that you are not
> currently running your code with root permissions. What happens when you > do so? Can you find any common properties of runs where you get > correct/incorrent responses? > > Thx > Bastian >
Download signature.asc
application/pgp-signature 262b

Message body not shown because it is not plain text.