Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 21 Mar 2002 21:22:45 +1100 (EST)
From:      Bruce Evans <bde@zeta.org.au>
To:        Poul-Henning Kamp <phk@critter.freebsd.dk>
Cc:        Mike Barcroft <mike@FreeBSD.org>, <cvs-committers@FreeBSD.org>, <cvs-all@FreeBSD.org>
Subject:   Re: cvs commit: src/sbin/mdconfig mdconfig.c 
Message-ID:  <20020321210754.A13516-100000@gamplex.bde.org>
In-Reply-To: <1028.1016701582@critter.freebsd.dk>

next in thread | previous in thread | raw e-mail | index | archive | help
On Thu, 21 Mar 2002, Poul-Henning Kamp wrote:

> In message <20020321035618.U56122@espresso.q9media.com>, Mike Barcroft writes:
> >Poul-Henning Kamp <phk@critter.freebsd.dk> 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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20020321210754.A13516-100000>