From owner-freebsd-scsi Sun Oct 1 5:32:45 2000 Delivered-To: freebsd-scsi@freebsd.org Received: from gidora.zeta.org.au (gidora.zeta.org.au [203.26.10.25]) by hub.freebsd.org (Postfix) with SMTP id CCCB237B66D for ; Sun, 1 Oct 2000 05:32:39 -0700 (PDT) Received: (qmail 17128 invoked from network); 1 Oct 2000 12:32:34 -0000 Received: from unknown (HELO bde.zeta.org.au) (203.2.228.102) by gidora.zeta.org.au with SMTP; 1 Oct 2000 12:32:34 -0000 Date: Sun, 1 Oct 2000 23:32:29 +1100 (EST) From: Bruce Evans X-Sender: bde@besplex.bde.org To: Greg Lehey Cc: "Karsten W. Rohrbach" , Andre Albsmeier , Marc Tardif , freebsd-fs@FreeBSD.ORG, freebsd-scsi@FreeBSD.ORG Subject: Re: ccd with other filesystems In-Reply-To: <20001001114540.G43885@wantadilla.lemis.com> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-scsi@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org On Sun, 1 Oct 2000, Greg Lehey wrote: > On Sunday, 1 October 2000 at 4:09:37 +0200, Karsten W. Rohrbach wrote: > > i dont quite know why it is still possible doing a newfs on a 'c' > > partition, since the partition type is 'unused' and not > > '4.2BSD'. newfs should check this and throw an error while providing > > an expert-only-feature command line option to explicitly override > > it. > > I think this is a bug in newfs. This is a feature of newfs. It is almost device-independent. E.g., to create a filesystem in a regular file with no label in sight: dd if=/dev/zero of=foo oseek=2779 count=1 # -v and ./foo work around device dependence. # -T floppy is so that I don't have to type a lot of args for this example. newfs -v -T floppy ./foo > It should only create file systems on > partitions of type 4.2BSD. Does anybody disagree? Otherwise I'll fix > it. Disagree. The filesystem type field is normally an output of newfs, not an input. > > it is a bad thing[tm] to be able to wedge every single blockdev in your > > system by (ab)using newfs. > > Agreed. Disagree. It is a feature that write(2) works on disk devices (block devices went away) no matter how it is (ab)used. (There should be more write protection for mounted partitions, but a disk without any of its partitions mounted should be almost just a file.) Bruce To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-scsi" in the body of the message