From: Edwin H. <ed...@co...> - 2003-02-10 13:28:25
|
[ Petr Voles wrote: ] > > Errors: > $device must be set to a directory, a local device, or a remote device > > the /dev/nst0 is sym-link to /dev/scsi/host0/bus0/target1/lun0/mtn Strange. I have $device set a symlink that points to the real one as well, that's not uncommon. The code chases the symlink and then just sees if the result is a char device or not. What does. "ls -l /dev/scsi/host0/bus0/target1/lun0/mtn" show? You can also stick a debug statement in after line 2133: 2130 # Chase links 2131 $realdev = $cfg::device; 2132 while (-l $realdev) { 2133 $realdev = readlink($realdev); print "Chased link, result is $realdev\n"; 2134 } 2135 After that there's an if statement that just checks for $realdevice being a - char device - block device - directory - remote tape (host:/dev/device) Only if all those fail does it give that error. -- Edwin Huffstutler Linux - because reboots are for hardware changes ed...@co... GnuPG Key ID: AE782DC9 |