From owner-freebsd-current@FreeBSD.ORG Thu Jan 15 18:31:35 2004 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 5D7A616A4CE; Thu, 15 Jan 2004 18:31:35 -0800 (PST) Received: from mail.sandvine.com (sandvine.com [199.243.201.138]) by mx1.FreeBSD.org (Postfix) with ESMTP id AD3BD43D5C; Thu, 15 Jan 2004 18:31:33 -0800 (PST) (envelope-from ljwu@sandvine.com) Received: by mail.sandvine.com with Internet Mail Service (5.5.2657.72) id ; Thu, 15 Jan 2004 21:31:23 -0500 Message-ID: From: Loh John Wu To: "'freebsd-hackers@freebsd.org'" Date: Thu, 15 Jan 2004 21:31:18 -0500 MIME-Version: 1.0 X-Mailer: Internet Mail Service (5.5.2657.72) Content-Type: text/plain; charset="iso-8859-1" cc: "'freebsd-current@freebsd.org'" Subject: devfs error on RELENG_5_2 X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 16 Jan 2004 02:31:35 -0000 Hello, I'm running a RELENG_5_2 box and I'm trying to use the devfs to change the file permissions on /dev/ttyd1. After perusing through the man page, I tried to change the permissions by doing this # ls -ol /dev/ttyd1 crw------- 1 root wheel - 28, 1 Jan 15 20:47 /dev/ttyd1 # devfs rule add path ttyd1 mode 666 devfs rule: ioctl DEVFSIO_RADD: Input/output error # ls -ol /dev/ttyd1 crw------- 1 root wheel - 28, 1 Jan 15 20:47 /dev/ttyd1 but it fails and I'm not sure why. I'll have to do devfs rule applyset if the rule add succeeds since the node /dev/ttyd1 has already been created but I haven't got that far yet... I've also tried using the example in the man page with /dev/speaker, but it also fails with the same error. # ls -ol /dev/speaker crw------- 1 root wheel - 26, 0 Jan 15 21:24 /dev/speaker # dmesg | grep speaker speaker0: at port 0x61 on isa0 # devfs rule add path speaker mode 666 devfs rule: ioctl DEVFSIO_RADD: Input/output error # ls -ol /dev/speaker crw------- 1 root wheel - 26, 0 Jan 15 21:24 /dev/speaker Any thoughts on this would be greatly appreciated. Thanks, John