2 .\" Copyright (c) 2010 Semihalf
3 .\" All rights reserved.
5 .\" Redistribution and use in source and binary forms, with or without
6 .\" modification, are permitted provided that the following conditions
8 .\" 1. Redistributions of source code must retain the above copyright
9 .\" notice, this list of conditions and the following disclaimer.
10 .\" 2. Redistributions in binary form must reproduce the above copyright
11 .\" notice, this list of conditions and the following disclaimer in the
12 .\" documentation and/or other materials provided with the distribution.
14 .\" THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND
15 .\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
16 .\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
17 .\" ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE
18 .\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
19 .\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
20 .\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
21 .\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
22 .\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
23 .\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
33 .Nd NAND Flash file system
35 To compile support for the
37 place the following in your kernel configuration file:
38 .Bd -ragged -offset indent
42 Even though the NAND FS can be used with any storage media, it has been
43 optimized and designed towards NAND Flash devices, so typically the following
45 .Bd -ragged -offset indent
53 with support for NAND-oriented file system.
55 It is a log-structured style file system with the following major features and
59 Hard links, symbolic links support
65 Snapshots (continuous, taken automatically, simultaneously mountable)
67 Quick crash recovery at mount time
69 64-bit data structures; supports many files, large files and volumes
71 POSIX file permissions
76 The most common usage is mounting the file system:
78 .Dl "mount -t nandfs /dev/<gnandN> /mnt"
81 .Dl "mount_nandfs /dev/<gnandN> /mnt"
85 is the GEOM device representing a Flash partition (slice) containing the
91 It is possible to define an entry in
96 /dev/gnand0 /flash nandfs rw 0 0
101 partition at the specified mount point during system boot.
111 The NAND FS concepts are based on NILFS principles and initial implementation
112 was derived from early NILFS NetBSD code (read only). Since then the NAND FS
113 code diverged significantly and is by no means compatible with NILFS.
115 The NAND Flash file system first appeared in
118 The NAND FS was written by
119 .An Grzegorz Bernacki with the help of
121 based on the NetBSD code created by
122 .An Reinoud Zandijk .
123 Additional help and support by
127 This manual page was written by
128 .An Rafal Jaworowski .