NetBSD/sys/fs
reinoud 69a586f230 Import read-only part of the NiLFS (v2) implementation for NetBSD. It has been
tested with a DEBUG+DIAGNOSTIC+LOCKDEBUG kernel. To summerise NiLFS, i'll
repeat my posting to tech-kern here:

NiLFS stands for New implementation of Logging File System; LFS done
right they claim :) It is at version 2 now and is being developed by NTT, the
Japanese telecom company and recently put into the linux source tree. See
http://www.nilfs.org. The on-disc format is not completely frozen and i expect
at least one minor revision to come in time.

The benefits of NiLFS are build-in fine-grained checkpointing, persistent
snapshots, multiple mounts and very large file and media support. Every
checkpoint can be transformed into a snapshot and v.v. It is said to perform
very well on flash media since it is not overwriting pieces apart from a
incidental update of the superblock, but that might change. It is accompanied
by a cleaner to clean up the segments and recover lost space.

My work is not a port of the linux code; its a new implementation. Porting the
code would be more work since its very linux oriented and never written to be
ported outside linux. The goal is to be fully interchangable. The code is non
intrusive to other parts of the kernel. It is also very light-weight.

The current state of the code is read-only access to both clean and dirty
NiLFS partitions. On mounting a dirty partition it rolls forward the log to
the last checkpoint. Full read-write support is however planned!

Just as the linux code, mount_nilfs allows for the `head' to be mounted
read/write and allows multiple read-only snapshots/checkpoint mounts next to
it.

By allowing the RW mount at a different snapshot for read-write it should be
possible eventually to revert back to a previous state; i.e. try to upgrade a
system and being able to revert to the exact state prior to the upgrade.

Compared to other FS's its pretty light-weight, suitable for embedded use and
on flash media. The read-only code is currently 17kb object code on
NetBSD/i386. I doubt the read-write code will surpass the 50 or 60. Compared
this to FFS being 156kb, UDF being 84 kb and NFS being 130kb. Run-time memory
usage is most likely not very different from other uses though maybe a bit
higher than FFS.
2009-07-18 16:31:41 +00:00
..
adosfs Where possible, extract the file-system's access() routine to two internal 2009-07-03 21:17:40 +00:00
cd9660 Where possible, extract the file-system's access() routine to two internal 2009-07-03 21:17:40 +00:00
efs Fix utterly botched previous commit. efs compiles now and apprears 2009-07-03 22:25:51 +00:00
filecorefs Where possible, extract the file-system's access() routine to two internal 2009-07-03 21:17:40 +00:00
hfs Initialise the "fork" local variable in hfslib_get_file_extents(). 2009-07-14 21:12:18 +00:00
msdosfs Where possible, extract the file-system's access() routine to two internal 2009-07-03 21:17:40 +00:00
nilfs Import read-only part of the NiLFS (v2) implementation for NetBSD. It has been 2009-07-18 16:31:41 +00:00
ntfs Where possible, extract the file-system's access() routine to two internal 2009-07-03 21:17:40 +00:00
ptyfs Where possible, extract the file-system's access() routine to two internal 2009-07-03 21:17:40 +00:00
puffs add some todo-items, based on a file which was lingering in my 2009-05-18 15:47:28 +00:00
smbfs make this build w/o SMB_VNODE_DEBUG 2009-07-04 07:36:46 +00:00
sysvbfs Define error before using it. 2009-07-03 22:38:08 +00:00
tmpfs Where possible, extract the file-system's access() routine to two internal 2009-07-03 21:17:40 +00:00
udf Fix alternating oddity in RMW strategy. Even when in the reading state it 2009-07-08 19:04:08 +00:00
union Convert 67 namei call sites to use namei_simple, in these functions: 2009-06-29 05:08:15 +00:00
unionfs Remove extra whitespace added by a stupid tool. 2009-04-18 14:58:02 +00:00
Makefile Import read-only part of the NiLFS (v2) implementation for NetBSD. It has been 2009-07-18 16:31:41 +00:00
unicode.h Remove clause 3 and 4 from TNF licenses 2008-04-28 20:22:51 +00:00