Current-Users archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: 'drvctl -d' problem



What happens if you cd to /dev first?  Or, specify

	drvctl -d /dev/iwn0

There could be a problem with lookup of the device node... It's happened before, although I thought it had been fixed.


On Wed, 21 Feb 2018, Makoto Fujiwara wrote:

I'm often use /sbin/drvctl, usually with -d device argument.
(the situation is after waked up from sleep).

Recently I'm getting syntax error and resulting help shown.
The good version is at 8.99.4, and bad example is at 8.99.12.
my 8.99.12 version is kept with the name drvctl-8.99.12.

Following is the log for above symptom.

cf-j10@makoto 11:16:56/180221(..sbin/drvctl)% sudo /sbin/drvctl-8.99.12 -d iwn0
Usage: drvctl-8.99.12 -r [-a attribute] busdevice [locator ...]
      drvctl-8.99.12 -d device
      drvctl-8.99.12 [-nt] -l [device]
      drvctl-8.99.12 [-n] -p device [property]
      drvctl-8.99.12 -Q device
      drvctl-8.99.12 -R device
      drvctl-8.99.12 -S device

cf-j10@makoto 11:17:12/180221(..sbin/drvctl)% sudo /sbin/drvctl  -d iwn0
cf-j10@makoto 11:17:29/180221(..sbin/drvctl)% sudo /sbin/drvctl  -r pci3
cf-j10@makoto 11:17:36/180221(..sbin/drvctl)%
cf-j10@makoto 11:17:51/180221(..sbin/drvctl)% ls -l /sbin/drvctl*
-r-xr-xr-x  1 root  wheel  19384 Oct 12 18:53 /sbin/drvctl
-r-xr-xr-x  1 root  wheel  19376 Jan 29 00:00 /sbin/drvctl-8.99.12

checked the commit log for drvctl.c, but I did not get the meaningfull
diffs. Please help me to fix the problem, thank you.
--
makoto%ki.nu@localhost
mef%NetBSD.org@localhost
-----------------------------------------------------
Makoto Fujiwara,
Chiba, Japan, Narita Airport and Disneyland prefecture.

!DSPAM:5a8cdcdb185711760256429!



+------------------+--------------------------+----------------------------+
| Paul Goyette     | PGP Key fingerprint:     | E-mail addresses:          |
| (Retired)        | FA29 0E3B 35AF E8AE 6651 | paul at whooppee dot com   |
| Kernel Developer | 0786 F758 55DE 53BA 7731 | pgoyette at netbsd dot org |
+------------------+--------------------------+----------------------------+


Home | Main Index | Thread Index | Old Index