Thread (41 messages) 41 messages, 10 authors, 2011-06-01

Re: Storage device enumeration script

From: Phil Turmel <hidden>
Date: 2011-05-26 18:02:41

Hi Roman,

On 05/26/2011 01:54 PM, Roman Mamedov wrote:
On Thu, 26 May 2011 13:46:59 -0400
Phil Turmel [off-list ref] wrote:
quoted
if you just want the latest script:

https://github.com/pturmel/lsdrv/raw/HEAD/lsdrv
I already reported this earlier, but still in this version:

Traceback (most recent call last):
  File "./lsdrv", line 274, in <module>
    probe_block('/sys/block/'+x)
  File "./lsdrv", line 226, in probe_block
    dev.phy = probe_device(blkpath+'/device', nodestr)
  File "./lsdrv", line 193, in probe_device
    vendor=fileline1(devpath+'/vendor'),
  File "./lsdrv", line 49, in fileline1
    fh = open(filename, 'r')
IOError: [Errno 2] No such file or directory:
'/sys/devices/platform/floppy.0/vendor'
I used the wrong exception type.  Fix pushed.  Try again?

Phil
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help