From owner-freebsd-questions@freebsd.org Mon Aug 28 22:49:16 2017 Return-Path: Delivered-To: freebsd-questions@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 9A1ABE156EB for ; Mon, 28 Aug 2017 22:49:16 +0000 (UTC) (envelope-from amvandemore@gmail.com) Received: from mail-wm0-x233.google.com (mail-wm0-x233.google.com [IPv6:2a00:1450:400c:c09::233]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 3FE1F67AE4 for ; Mon, 28 Aug 2017 22:49:16 +0000 (UTC) (envelope-from amvandemore@gmail.com) Received: by mail-wm0-x233.google.com with SMTP id y71so11173160wmd.0 for ; Mon, 28 Aug 2017 15:49:16 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=u+oTB5Ye88kd5XY2ZRmZiSU1o42D6UPhq2F0iHKoRCU=; b=eB6Swb5cho1EIBeCHV85xN5QsiFhmEdEhMG0mCJ6LrU7BBEANYp822QVMK6uSCFL/Z mTO1DLMrj1JVoX1CdN+H7Yh6+rMC6HexdLQ0nfOiwykO5i5lvWO3CWMnU15Y4B7fmLjx JVDH7MyoJnOzj69tWUJG04TjbAPcaZ88umrKjbgqfTyn7ewx/dzDmTTD90OeXvLtDpXY So6d6vufbFCjSOiynIaV3UFsbcsMT1kqvbS1PhQ33jJVqBiMCbZKWR12zhdyiq2d2V/U 42umaOrArGE019fXNeb5bGZ9CqxUSQt+latrwfKJEH9Dy3OnnF2wL2nyRNh/WCtVXigF gwPg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=u+oTB5Ye88kd5XY2ZRmZiSU1o42D6UPhq2F0iHKoRCU=; b=f5/iZeWjzH5HgDzhCpDK9YfjeucxayGzdhLp9CqI8zQO6sEve9EeqK7njFm/+TIiUs ooTjgBw/zrrqVE228YoJTTFnbjs+jSkvwUTiqkH+VVLU63pAqdzbPDFVKinQ+rr1pBEd V8hnmGP709ug0OBt7jOrunODY95bIGEGZ59C3PFHItORanK904SQRViPagMUdt5Hv42m 8Iza/PS77vxd/rJtYkICFViRxEEO3pu0O1Lu5K4eUt/4InwWuCOTipvWIfKq6FIqLOT5 n5EIlsJPJJOdmkuc8Mp2pCubQFBPyU32rOAcM1ekxjQJ20/HG7aCqxumnWS/++bYnnSJ 4ejw== X-Gm-Message-State: AHYfb5jrgjwNsArrc+NGE1KFCWAbSprccxiCGskvM/fj+hBxEq+TBMP0 s4vqJJB+87qZmKcdI5l1G07V6iXnLA== X-Received: by 10.80.181.29 with SMTP id y29mr1654468edd.132.1503960554433; Mon, 28 Aug 2017 15:49:14 -0700 (PDT) MIME-Version: 1.0 Received: by 10.80.192.138 with HTTP; Mon, 28 Aug 2017 15:49:13 -0700 (PDT) In-Reply-To: References: From: Adam Vande More Date: Mon, 28 Aug 2017 17:49:13 -0500 Message-ID: Subject: Re: mknod to create /dev/null equivalent not working To: "James E. Pace" Cc: FreeBSD Questions Content-Type: text/plain; charset="UTF-8" X-Content-Filtered-By: Mailman/MimeDel 2.1.23 X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 28 Aug 2017 22:49:16 -0000 On Mon, Aug 28, 2017 at 5:44 PM, James E. Pace wrote: > After "mknod /foo/dev/null c 0 0x1b": > > $ \ls -l /dev/null /foo/dev/null > crw-rw-rw- 1 root wheel 0x1b Aug 28 15:34 /foo/dev/null > crw-rw-rw- 1 root wheel 0x1b Aug 28 15:36 /dev/null > $ cat /etc/hosts > /dev/null > $ cat /etc/hosts > /foo/dev/null > /foo/dev/null: Operation not supported. > > What am I doing wrong? Why isn't the device I created acting like > /dev/null? > > Tried on FreeBSD 11.1. > You must have missed the big header in the mknod man page. I think you may want devfs(5) instead. -- Adam