Source-Changes archive

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

CVS commit: src

Module Name:    src
Committed By:   reinoud
Date:           Sat Jul 18 16:31:44 UTC 2009

Modified Files:
        src/sbin: Makefile
        src/sys/arch/i386/conf: GENERIC XEN3_DOMU
        src/sys/conf: files
        src/sys/fs: Makefile
        src/sys/modules: Makefile
        src/sys/rump/fs: Makefile.rumpfs
        src/sys/sys: disklabel.h mount.h vnode.h
Added Files:
        src/sbin/mount_nilfs: Makefile mount_nilfs.8 mount_nilfs.c
        src/sys/fs/nilfs: Makefile files.nilfs nilfs.h nilfs_bswap.h nilfs_fs.h
            nilfs_mount.h nilfs_subr.c nilfs_subr.h nilfs_vfsops.c
        src/sys/modules/nilfs: Makefile
        src/sys/rump/fs/lib/libnilfs: Makefile shlib_version

Log Message:
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 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

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.

To generate a diff of this commit:
cvs rdiff -u -r1.113 -r1.114 src/sbin/Makefile
cvs rdiff -u -r0 -r1.1 src/sbin/mount_nilfs/Makefile \
    src/sbin/mount_nilfs/mount_nilfs.8 src/sbin/mount_nilfs/mount_nilfs.c \
cvs rdiff -u -r1.934 -r1.935 src/sys/arch/i386/conf/GENERIC
cvs rdiff -u -r1.16 -r1.17 src/sys/arch/i386/conf/XEN3_DOMU
cvs rdiff -u -r1.949 -r1.950 src/sys/conf/files
cvs rdiff -u -r1.17 -r1.18 src/sys/fs/Makefile
cvs rdiff -u -r0 -r1.1 src/sys/fs/nilfs/Makefile src/sys/fs/nilfs/files.nilfs \
    src/sys/fs/nilfs/nilfs.h src/sys/fs/nilfs/nilfs_bswap.h \
    src/sys/fs/nilfs/nilfs_fs.h src/sys/fs/nilfs/nilfs_mount.h \
    src/sys/fs/nilfs/nilfs_subr.c src/sys/fs/nilfs/nilfs_subr.h \
    src/sys/fs/nilfs/nilfs_vfsops.c src/sys/fs/nilfs/nilfs_vnops.c
cvs rdiff -u -r1.29 -r1.30 src/sys/modules/Makefile
cvs rdiff -u -r0 -r1.1 src/sys/modules/nilfs/Makefile
cvs rdiff -u -r1.13 -r1.14 src/sys/rump/fs/Makefile.rumpfs
cvs rdiff -u -r0 -r1.1 src/sys/rump/fs/lib/libnilfs/Makefile \
cvs rdiff -u -r1.104 -r1.105 src/sys/sys/disklabel.h
cvs rdiff -u -r1.190 -r1.191 src/sys/sys/mount.h
cvs rdiff -u -r1.207 -r1.208 src/sys/sys/vnode.h

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Home | Main Index | Thread Index | Old Index