From owner-cvs-all Thu Mar 21 2:22:55 2002 Delivered-To: cvs-all@freebsd.org Received: from mailman.zeta.org.au (mailman.zeta.org.au [203.26.10.16]) by hub.freebsd.org (Postfix) with ESMTP id 8CD8337B400; Thu, 21 Mar 2002 02:22:45 -0800 (PST) Received: from bde.zeta.org.au (bde.zeta.org.au [203.2.228.102]) by mailman.zeta.org.au (8.9.3/8.8.7) with ESMTP id VAA09497; Thu, 21 Mar 2002 21:22:33 +1100 Date: Thu, 21 Mar 2002 21:22:45 +1100 (EST) From: Bruce Evans X-X-Sender: To: Poul-Henning Kamp Cc: Mike Barcroft , , Subject: Re: cvs commit: src/sbin/mdconfig mdconfig.c In-Reply-To: <1028.1016701582@critter.freebsd.dk> Message-ID: <20020321210754.A13516-100000@gamplex.bde.org> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-cvs-all@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG On Thu, 21 Mar 2002, Poul-Henning Kamp wrote: > In message <20020321035618.U56122@espresso.q9media.com>, Mike Barcroft writes: > >Poul-Henning Kamp writes: > >> Wouldn't it make a LOT more sense to put the error in newfs ? > > > >There is an error in newfs(8) also; it just isn't meaningful: > >first cylinder group ran out of space > >write error: 0 > >newfs: wtfs - writecombine: Read-only file system > > > >The usual procedure for creating a memory disk is: > > This applies to small floppy disks as well... Yes; mdconfig cannot know what its disks are used for; they may be subdivided into slices and partitions of any size, and newfs is not the only filesystem. mke2fs can create filesystems of size 57K, and gives better error messages for failure at 56K, and has better device-independence: %%% Script started on Thu Mar 21 21:11:17 2002 ttyp0:bde@besplex:~/bin/e2fsprogs> dd if=/dev/zero of=zz bs=1k count=56;./mke2f s zz 56+0 records in 56+0 records out 57344 bytes transferred in 0.000719 secs (79747403 bytes/sec) mke2fs 1.17, 26-Oct-1999 for EXT2 FS 0.5b, 95/08/09 zz: Not enough space to build proposed filesystem while setting up superblock ttyp0:bde@besplex:~/bin/e2fsprogs> dd if=/dev/zero of=zz bs=1k count=57;./mke2f s zz 57+0 records in 57+0 records out 58368 bytes transferred in 0.000740 secs (78882918 bytes/sec) mke2fs 1.17, 26-Oct-1999 for EXT2 FS 0.5b, 95/08/09 Filesystem label= OS type: (unknown os) Block size=1024 (log=0) Fragment size=1024 (log=0) 16 inodes, 57 blocks 2 blocks (3.51%) reserved for the super user First data block=1 1 block group 8192 blocks per group, 8192 fragments per group 16 inodes per group Writing inode tables: 0/1done Writing superblocks and filesystem accounting information: done ttyp0:bde@besplex:~/bin/e2fsprogs> exit Script done on Thu Mar 21 21:11:54 2002 %%% Bruce To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe cvs-all" in the body of the message