From owner-freebsd-stable@FreeBSD.ORG Wed Mar 15 17:42:44 2006 Return-Path: X-Original-To: freebsd-stable@freebsd.org Delivered-To: freebsd-stable@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 4FD5216A401 for ; Wed, 15 Mar 2006 17:42:44 +0000 (UTC) (envelope-from b.candler@pobox.com) Received: from rune.pobox.com (rune.pobox.com [208.210.124.79]) by mx1.FreeBSD.org (Postfix) with ESMTP id F006643D45 for ; Wed, 15 Mar 2006 17:42:41 +0000 (GMT) (envelope-from b.candler@pobox.com) Received: from rune (localhost [127.0.0.1]) by rune.pobox.com (Postfix) with ESMTP id 351A93374F for ; Wed, 15 Mar 2006 12:43:03 -0500 (EST) Received: from mappit.local.linnet.org (212-74-113-67.static.dsl.as9105.com [212.74.113.67]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by rune.sasl.smtp.pobox.com (Postfix) with ESMTP id 0D6903328B for ; Wed, 15 Mar 2006 12:43:02 -0500 (EST) Received: from lists by mappit.local.linnet.org with local (Exim 4.60 (FreeBSD)) (envelope-from ) id 1FJa19-000FeL-7o for freebsd-stable@freebsd.org; Wed, 15 Mar 2006 17:42:39 +0000 Date: Wed, 15 Mar 2006 17:42:38 +0000 From: Brian Candler To: freebsd-stable@freebsd.org Message-ID: <20060315174238.GA60143@uk.tiscali.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.4.2.1i Subject: Strangeness with /dev nodes and mknod X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 15 Mar 2006 17:42:44 -0000 I have a box running 6.0-STABLE as of 10 Nov last year. Previously I had created device nodes for /dev/random within chroot environments (this was for building and testing openssl). However now they don't work. I am left with the strange situation that device nodes from devfs work, but seemingly indentical device nodes created with mknod don't. # dd if=/dev/random bs=1 count=8 | hexdump 8+0 records in 8+0 records out 8 bytes transferred in 0.000070 secs (114131 bytes/sec) 0000000 6eaf 1d71 513b 8d8c 0000008 # mknod /tmp/test1 c 0 24 root:wheel # mknod /tmp/test2 c 24 0 root:wheel # chmod 666 /tmp/test1 /tmp/test2 # ls -l /tmp/test1 /tmp/test2 crw-rw-rw- 1 root wheel 0, 24 Mar 15 17:45 /tmp/test1 crw-rw-rw- 1 root wheel 24, 0 Mar 15 17:45 /tmp/test2 # dd if=/tmp/test1 bs=1 count=8 | hexdump dd: /tmp/test1: Operation not supported # dd if=/tmp/test2 bs=1 count=8 | hexdump dd: /tmp/test2: Operation not supported Why do my lovingly hand-created device nodes fail with "Operation not supported"? Thanks, Brian.