Commit 0c4fb877641c5c72d4a3ce8921a256bfe44055c0

Authored by Ryusuke Konishi
Committed by Linus Torvalds
1 parent 7942b919f7

nilfs2: update makefile and Kconfig

This adds a Makefile for the nilfs2 file system, and updates the
makefile and Kconfig file in the file system directory.

Signed-off-by: Ryusuke Konishi <konishi.ryusuke@lab.ntt.co.jp>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>

Showing 3 changed files with 32 additions and 1 deletions Side-by-side Diff

... ... @@ -175,8 +175,33 @@
175 175 source "fs/romfs/Kconfig"
176 176 source "fs/sysv/Kconfig"
177 177 source "fs/ufs/Kconfig"
178   -
179 178 source "fs/exofs/Kconfig"
  179 +
  180 +config NILFS2_FS
  181 + tristate "NILFS2 file system support (EXPERIMENTAL)"
  182 + depends on BLOCK && EXPERIMENTAL
  183 + select CRC32
  184 + help
  185 + NILFS2 is a log-structured file system (LFS) supporting continuous
  186 + snapshotting. In addition to versioning capability of the entire
  187 + file system, users can even restore files mistakenly overwritten or
  188 + destroyed just a few seconds ago. Since this file system can keep
  189 + consistency like conventional LFS, it achieves quick recovery after
  190 + system crashes.
  191 +
  192 + NILFS2 creates a number of checkpoints every few seconds or per
  193 + synchronous write basis (unless there is no change). Users can
  194 + select significant versions among continuously created checkpoints,
  195 + and can change them into snapshots which will be preserved for long
  196 + periods until they are changed back to checkpoints. Each
  197 + snapshot is mountable as a read-only file system concurrently with
  198 + its writable mount, and this feature is convenient for online backup.
  199 +
  200 + Some features including atime, extended attributes, and POSIX ACLs,
  201 + are not supported yet.
  202 +
  203 + To compile this file system support as a module, choose M here: the
  204 + module will be called nilfs2. If unsure, say N.
180 205  
181 206 endif # MISC_FILESYSTEMS
182 207  
... ... @@ -114,6 +114,7 @@
114 114 obj-$(CONFIG_XFS_FS) += xfs/
115 115 obj-$(CONFIG_9P_FS) += 9p/
116 116 obj-$(CONFIG_AFS_FS) += afs/
  117 +obj-$(CONFIG_NILFS2_FS) += nilfs2/
117 118 obj-$(CONFIG_BEFS_FS) += befs/
118 119 obj-$(CONFIG_HOSTFS) += hostfs/
119 120 obj-$(CONFIG_HPPFS) += hppfs/
  1 +obj-$(CONFIG_NILFS2_FS) += nilfs2.o
  2 +nilfs2-y := inode.o file.o dir.o super.o namei.o page.o mdt.o \
  3 + btnode.o bmap.o btree.o direct.o dat.o recovery.o \
  4 + the_nilfs.o segbuf.o segment.o cpfile.o sufile.o \
  5 + ifile.o alloc.o gcinode.o ioctl.o gcdat.o