1 |
On Saturday 12 Jun 2004 22:34, Nathaniel McCallum wrote: |
2 |
> On Sat, 2004-06-12 at 15:05, Nathaniel McCallum wrote: |
3 |
> OK, the script has been rewritten to use sysfs now. Please try it |
4 |
> again. Hopefully scsi detection should work now :). Currently it |
5 |
> should detect anything in /sys/bus/{scsi,ide}/devices. If there is |
6 |
> anything besides scsi and ide that needs to be detected, please let |
7 |
> me know. |
8 |
> |
9 |
> I hope this works... |
10 |
> Nathaniel |
11 |
> |
12 |
> PS -- URI = http://dev.gentoo.org/~npmccallum/detect_devices.py |
13 |
> |
14 |
$ detect_devices.py |
15 |
Your devices are detected by this script as: |
16 |
Traceback (most recent call last): |
17 |
File "./detect_devices.py", line 75, in ? |
18 |
for device in detect_devices(): |
19 |
File "./detect_devices.py", line 52, in detect_devices |
20 |
raise Exception, "invalid major minor in "\ |
21 |
Exception: invalid major minor |
22 |
in /sys/bus/scsi/devices/0:0:6:0/block/dev |
23 |
|
24 |
ls: /sys/bus/scsi/devices/0:0:6:0/block: No such file or directory |
25 |
|
26 |
$ ll /sys/bus/scsi/devices/0:0:6:0 |
27 |
lrwxrwxrwx 1 root root 0 Jun 11 15:36 /sys/bus/scsi/devices/0:0:6:0 |
28 |
-> ../../../devices/pci0000:00/0000:00:0c.0/host0/0:0:6:0 |
29 |
|
30 |
$ ll /sys/devices/pci0000:00/0000:00:0c.0/host0/0:0:6:0 |
31 |
total 0 |
32 |
drwxr-xr-x 3 root root 0 Jun 11 15:36 . |
33 |
drwxr-xr-x 4 root root 0 Jun 11 15:35 .. |
34 |
--w------- 1 root root 4096 Jun 11 15:36 delete |
35 |
-rw-r--r-- 1 root root 4096 Jun 11 15:36 detach_state |
36 |
-r--r--r-- 1 root root 4096 Jun 11 15:36 device_blocked |
37 |
lrwxrwxrwx 1 root root 0 Jun 11 15:36 generic |
38 |
-> ../../../../../class/scsi_generic/sg0 |
39 |
-r--r--r-- 1 root root 4096 Jun 11 15:36 model |
40 |
drwxr-xr-x 2 root root 0 Jun 11 15:36 power |
41 |
-r--r--r-- 1 root root 4096 Jun 11 15:36 queue_depth |
42 |
--w------- 1 root root 4096 Jun 11 15:36 rescan |
43 |
-r--r--r-- 1 root root 4096 Jun 11 15:36 rev |
44 |
-r--r--r-- 1 root root 4096 Jun 11 15:36 scsi_level |
45 |
-rw-r--r-- 1 root root 4096 Jun 11 15:36 state |
46 |
-rw-r--r-- 1 root root 4096 Jun 11 15:36 timeout |
47 |
-r--r--r-- 1 root root 4096 Jun 11 15:36 type |
48 |
-r--r--r-- 1 root root 4096 Jun 11 15:36 vendor |
49 |
|
50 |
-- |
51 |
Peter |
52 |
======================================================================== |
53 |
Gentoo Linux: Portage 2.0.50-r8. kernel-2.6.7-rc2. |
54 |
i686 AMD Athlon(tm) XP 3200+. gcc(GCC): 3.3.3. |
55 |
KDE: 3.2.3. Qt: 3.3.2. |
56 |
======================================================================== |
57 |
|
58 |
-- |
59 |
gentoo-dev@g.o mailing list |