From owner-freebsd-current Fri May 29 20:05:04 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id UAA03125 for freebsd-current-outgoing; Fri, 29 May 1998 20:05:04 -0700 (PDT) (envelope-from owner-freebsd-current@FreeBSD.ORG) Received: from alpo.whistle.com (alpo.whistle.com [207.76.204.38]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id UAA03102 for ; Fri, 29 May 1998 20:05:00 -0700 (PDT) (envelope-from julian@whistle.com) Received: (from daemon@localhost) by alpo.whistle.com (8.8.5/8.8.5) id TAA23777; Fri, 29 May 1998 19:58:21 -0700 (PDT) Received: from current1.whistle.com(207.76.205.22) via SMTP by alpo.whistle.com, id smtpd023771; Sat May 30 02:58:14 1998 Message-ID: <356F75C2.7566F4CF@whistle.com> Date: Fri, 29 May 1998 19:58:10 -0700 From: Julian Elischer Organization: Whistle Communications X-Mailer: Mozilla 3.0Gold (X11; I; FreeBSD 2.2.5-RELEASE i386) MIME-Version: 1.0 To: "Jordan K. Hubbard" CC: current@FreeBSD.ORG Subject: Re: I see one major problem with DEVFS... References: <199805300108.SAA16711@time.cdrom.com> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG Jordan K. Hubbard wrote: > > bash# ls -l bpf* > crw------- 1 root wheel 23, 0 May 29 08:03 bpf0 > crw------- 1 root wheel 23, 1 May 29 08:03 bpf1 > crw------- 1 root wheel 23, 2 May 29 08:03 bpf2 > crw------- 1 root wheel 23, 3 May 29 08:03 bpf4 > bash# rm bpf4 > bash# ls -l bpf* > crw------- 1 root wheel 23, 0 May 29 08:03 bpf0 > crw------- 1 root wheel 23, 1 May 29 08:03 bpf1 > crw------- 1 root wheel 23, 2 May 29 08:03 bpf2 > bash# mknod bpf4 c 23 3 > > E.g. I can shoot my foot off, but I can't sew it back on. :-) > > Also, while I'm on this topic, what is the purpose served by > DEVFS auto-mounting itself on "dummy_mount"? I'm only going to > mount it as /dev later, so I don't really get the idea behind > the first instance of it. Is it for "cloning" purposes or > something? > > - Jordan > > To Unsubscribe: send mail to majordomo@FreeBSD.org > with "unsubscribe freebsd-current" in the body of the message dummy_mount is a hack the trouble is that the root fs is mounted before /dev so the device has to come out of the kernel's internel /de blueprint (from which it makes the user alterable versions that people mount) trouble with this is that SYNC only writes back superblocks on devices that are mounted from filesysytems in the mount list, which the internal copy is not (or it was not). to ge tthe root superblock SYNC'd I needed to add that internal copy to the mount list.. I've since decided that in the DEVFS/SLICE case, a better answer would be to special-case that and just do it and the mount list as well julian To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message