tech-kern archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

NiLFS(2) import

Hi folks,

as some of you might have learned, i'd like to import my work on NiLFS
support. 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 The on-disc format is not completely frozen and i expect
at least one monor 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

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.

If noone has serious objects to this import, i'll commit it soon.

With regards,
Reinoud Zandijk

M sbin/Makefile
A sbin/mount_nilfs/Makefile
A sbin/mount_nilfs/mount_nilfs.8
A sbin/mount_nilfs/mount_nilfs.c
A sbin/mount_nilfs/mount_nilfs.h
M sys/conf/files
M sys/fs/Makefile
A sys/fs/nilfs/Makefile
A sys/fs/nilfs/files.nilfs
A sys/fs/nilfs/nilfs.h
A sys/fs/nilfs/nilfs_bswap.h
A sys/fs/nilfs/nilfs_fs.h
A sys/fs/nilfs/nilfs_mount.h
A sys/fs/nilfs/nilfs_subr.c
A sys/fs/nilfs/nilfs_subr.h
A sys/fs/nilfs/nilfs_vfsops.c
A sys/fs/nilfs/nilfs_vnops.c
M sys/modules/Makefile
A sys/modules/nilfs/Makefile
M sys/rump/fs/Makefile.rumpfs
A sys/rump/fs/lib/libnilfs/Makefile
A sys/rump/fs/lib/libnilfs/shlib_version
M sys/sys/disklabel.h
M sys/sys/mount.h
M sys/sys/vnode.h

Attachment: pgpsfrqGha0Wt.pgp
Description: PGP signature

Home | Main Index | Thread Index | Old Index