Usenet comp.os.linux.announce (1993-2013)
 help / color / mirror / Atom feed
From: qx@shire.math.columbia.edu (Qi Xia)
Subject: ANNOUNCE: lfs-0.6 test release.
Date: Mon, 18 Jan 1993 21:23:22 GMT	[thread overview]
Message-ID: <1993Jan18.212322.22027@klaava.Helsinki.FI> (raw)

After one week bussy testing/debugging my lfs file system, when I come back
to school try to post lfs in channal for testing. I found some one use the
similar name for his modified minix file system. Since "lfs" is coded in
my code, mostly for error reporting, I don't like to spend a few days to
go through my code just for renaming (If necessary, I may do it later).

I guess I should post here instead of the channal just let people know
what I am working on to avoid possible duplicate efferts. 

I have upload 

xia-lfs-0.6.tar.Z
Image.992.06

to sunsite:Incoming and tsx-11:incoming.


Here is my release note

  
Release note of lfs 0.6 (See source code for Copyright info.)

Q. Frank Xia (qx@math.columbia.edu)
Jan 20, 1993.


Here is my lfs (Linux file system).  This is a Alpha test release. 

LFS is a file system designed and implemented for Linux OS which is
designed and implemented by Linus Trovalds with the help of many others
all over the world. lfs is based on Linus' minix file system.
lfs provides following functions among others against minix file system.

    o   long file name.  248 chars maximum.
    o   large file system.  2GB maximum.
    o   multi-size block ready.  (waiting for kernel support) 
    o   defragment.
    o   support simple bootstrip.

Thanks to the virtual file system support in Linux, the implement,
test and transition from minix fs to lfs is much easer.


How stable it is ?  Well, It passed all tests of running some regular
utilities which expected calling each file system related system call.
And, Linux-0.99.2 with lfs was untared and compiled under lfs. 
The process repeated again under new built kernel. The lfsck report no 
error. But anyway, this is

	!!! Alpha test release. !!!

The src code and some doc are packaged in lfs-0.6.tar.Z which contains

    1)	release-note
		This file.

    2)	992lfs06.diff
		diff against linux-0.99.pl2

    3)  lfspgm/mklfs
		lfs file system maker.

    4)  lfspgm/lfsck
		lfs file system checker.

    5)  lfspgm/Makefile
		make file for mklfs and lfsck.

    6)  Image.992.06
		A kernel image with FPU-emu, minix, lfs, tcp/ip, nfs
		compiled in. No SCSI.  This file is not in this package.
		You may get it from where you get lfs-0.6.tar.Z


Installation:
	Unpack lfs-0.6.tar.Z, apply the .diff, make a new kernel and
	in lfspgm, type make and make install.  mklfs and lfsck go to
	/bin and you are all set.


Guide line of testing:

	First as always, backup your hard disk to avoid possible disaster.
	Although I do not believe lfs will destroy your file in other
	partition, just in case.

	Run mklfs to make a lfs file system. Switch "-c" checks bad sector,
	"-l file" records the number in the "file" as bad block, and
	"-k size" reserves "size" KB for kernel image, which may be used
	for a simple bootstrip I have not write yet. For instance,

	mklfs -k 512  /dev/hdb3 160000

	make a 160MB lfs file system in third partition of second disk with
	512KB reserved for kernel image. Linus promised the kernel will
	always be smaller than 512KB (Am I right Linus ?). So if you
	some day want use my not-yet written simple booter, use "-k 512".

	mklfs -k 320 /dev/fd0 1440

	prepare a bootable root disk.

	mklfs /dev/hda2 60000

	make a 60MB lfs file system on hda2, no space reserved for kernel.


	After you made a lfs file system, mount it by typing

	mount -t lfs /dev/hdb3 /usr/test

	for instance.

	Check lfs file system regularly. Before run lfsck, make sure you
	sync twice.  switch "-s" checks super block and report super info,
	"-r" prompts for repair, "-a" for auto-repair (not recommended).
	Run lfsck until no error message. A typical session is

	# sync
	# sync
	# lfsck -r /dev/hdb3

	If inconsistence found do repair, and run lfsck again until no
	error reported.

	Due to the internal structure, I am interested in the report
	of file systems with size both smaller or larger than 128MB.  
	I need both success and bug reports. If you are a lfs tester,
	let me know how is things going.

		!!! do not put critical data on lfs at this moment. !!!

	You may compile some application your get from the net, play games
	view some interesting .gif, etc.


Time table and Version number:

	0.6	Now released.  All functions I want it has are
		implemented. It has some race conditions inherited from
		Linux minix file system. But it should not introduce more.

	0.7     In two weeks or a litter longer, depend on how many testers
		lfs get and how many bugs are found. 0.7 will be a bug fix
		version of 0.6.  Thanks to the stable minix file system
		which 0.6 based on. This version should be as stable as
		minix file system.  The race condition inherited from 
		minix fs will not be fixed. This version should be
		considered as Beta release. And may released to public. 

	0.8     in another two weeks or so.  Advisory locking for inode
		may implemented (unless I am convinced it is not a good
		idea). Rewrite some routines to eliminate race conditions.

	0.9	bug fix of 0.8

	1.0	Maybe some day. If Linus think lfs is good enough to be 
		integrated into official kernel distribution as the 
		default file system, This will never show up. The day 
		version number disappeared the day 1.0 is release. 


Internal structure:

	The layout is similar to minix fs.  Zone 0 is the super zone
	(zone 1 in minix.). Super data start at 512. Super zone followed
	by imap zones, and zmap zones. After zmap zone is the optional
	zones reserved for kernel image. The reset are data zones.

	The directory is a BSD-like one, which support long file name up to
	248 char's.  32 bit disk address permits potentially 4TB file
	system size. Current 2GB supported. Maximum file size is 64 MB.
	This should be enough for a while.  The implement of lfs is 
	multi-size block ready. i.e., if the other part of kernel support
	1KB, 2KB and 4KB buffer, then no or minor modification is needed
	to support these block sizes.  Currently, one can implement 
	multi-size block support on 1KB buffers. But it will make code
	ugly.  I'd like to leave it where it should go. Once multi-size
	buffer is supported, 2KB block size permits 512MB file.
	Applications need file size larger than 64MB probably need their
	own file management.  

	To reserve space for kernel image is make in the hope the one
	can write a simple booter. Start at first 512 byte in super block,
	load kernel image into core, and jump to it.  Currently I still
	boot from floppy because I just confused by all these options 
	provided by most booter. This may also make a single bootable
	root disk possible and simple.

	Now, the interesting port --- defragment.  One choice is BSD's 
	approach.  This is rejected due to it's complicity.  The 
	approach used in lfs is "use fragment to defragment".  When
	there is a need to allocate a new block for a file, the search
	for a new block is start at the block right after the previous
	block in the file.  This algorithm secures the blocks in the 
	right order, there are no need to jump back and forth to read
	and write. This should work nice when the disk is not too full.
	It is easy to make a worst case in which the block used by
	a file locate randomly. But in practice, the average performance
	should be close to BSD's approach if not better. We will see.
	Here we left one question, where to start to look for first
	block of a file.  In lfs 0.6, inode number times 4 is used.
	When thoroughly tested, it will be changed to random number.
	This is the place we need to do fine tuning.

	Another place need fine tuning is in core bitmap. A 250MB file
	system will eat 40KB for bitmap alone.  If you think 40KB is nothing, 
	think about a file server with multi-GB disk space. If bitmap is 
	small, all bitmap are load into core until the fs unmounted. If it 
	is large, a cache is used.  In lfs 0.6, the line is 128MB file
	system size. Because, there probably are few people have more
	than 250MB space available for testing. When lfs thoroughly
	tested, it may be changed to 40KB, i.e., a 250MB file system.


			### the end of release note ###


                 reply	other threads:[~1993-01-18 21:23 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed
read-only archive

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox