€•$¹Œsphinx.addnodes”Œdocument”“”)�”}”(Œ rawsource”Œ”Œchildren”]”(Œ translations”Œ LanguagesNode”“”)�”}”(hhh]”(hŒ pending_xref”“”)�”}”(hhh]”Œdocutils.nodes”ŒText”“”ŒChinese (Simplified)”…”�”}”Œparent”hsbaŒ attributes”}”(Œids”]”Œclasses”]”Œnames”]”Œdupnames”]”Œbackrefs”]”Œ refdomain”Œstd”Œreftype”Œdoc”Œ reftarget”Œ&/translations/zh_CN/filesystems/nilfs2”Œmodname”NŒ classname”NŒ refexplicit”ˆuŒtagname”hhh ubh)�”}”(hhh]”hŒChinese (Traditional)”…”�”}”hh2sbah}”(h]”h ]”h"]”h$]”h&]”Œ refdomain”h)Œreftype”h+Œ reftarget”Œ&/translations/zh_TW/filesystems/nilfs2”Œmodname”NŒ classname”NŒ refexplicit”ˆuh1hhh ubh)�”}”(hhh]”hŒItalian”…”�”}”hhFsbah}”(h]”h ]”h"]”h$]”h&]”Œ refdomain”h)Œreftype”h+Œ reftarget”Œ&/translations/it_IT/filesystems/nilfs2”Œmodname”NŒ classname”NŒ refexplicit”ˆuh1hhh ubh)�”}”(hhh]”hŒJapanese”…”�”}”hhZsbah}”(h]”h ]”h"]”h$]”h&]”Œ refdomain”h)Œreftype”h+Œ reftarget”Œ&/translations/ja_JP/filesystems/nilfs2”Œmodname”NŒ classname”NŒ refexplicit”ˆuh1hhh ubh)�”}”(hhh]”hŒKorean”…”�”}”hhnsbah}”(h]”h ]”h"]”h$]”h&]”Œ refdomain”h)Œreftype”h+Œ reftarget”Œ&/translations/ko_KR/filesystems/nilfs2”Œmodname”NŒ classname”NŒ refexplicit”ˆuh1hhh ubh)�”}”(hhh]”hŒPortuguese (Brazilian)”…”�”}”hh‚sbah}”(h]”h ]”h"]”h$]”h&]”Œ refdomain”h)Œreftype”h+Œ reftarget”Œ&/translations/pt_BR/filesystems/nilfs2”Œmodname”NŒ classname”NŒ refexplicit”ˆuh1hhh ubh)�”}”(hhh]”hŒSpanish”…”�”}”hh–sbah}”(h]”h ]”h"]”h$]”h&]”Œ refdomain”h)Œreftype”h+Œ reftarget”Œ&/translations/sp_SP/filesystems/nilfs2”Œmodname”NŒ classname”NŒ refexplicit”ˆuh1hhh ubeh}”(h]”h ]”h"]”h$]”h&]”Œcurrent_language”ŒEnglish”uh1h hhŒ _document”hŒsource”NŒline”NubhŒcomment”“”)�”}”(hŒ SPDX-License-Identifier: GPL-2.0”h]”hŒ SPDX-License-Identifier: GPL-2.0”…”�”}”hh·sbah}”(h]”h ]”h"]”h$]”h&]”Œ xml:space”Œpreserve”uh1hµhhh²hh³Œ@/var/lib/git/docbuild/linux/Documentation/filesystems/nilfs2.rst”h´KubhŒsection”“”)�”}”(hhh]”(hŒtitle”“”)�”}”(hŒNILFS2”h]”hŒNILFS2”…”�”}”(hhÏh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hÍhhÊh²hh³hÇh´KubhŒ paragraph”“”)�”}”(hXUNILFS2 is a log-structured file system (LFS) supporting continuous snapshotting. In addition to versioning capability of the entire file system, users can even restore files mistakenly overwritten or destroyed just a few seconds ago. Since NILFS2 can keep consistency like conventional LFS, it achieves quick recovery after system crashes.”h]”hXUNILFS2 is a log-structured file system (LFS) supporting continuous snapshotting. In addition to versioning capability of the entire file system, users can even restore files mistakenly overwritten or destroyed just a few seconds ago. Since NILFS2 can keep consistency like conventional LFS, it achieves quick recovery after system crashes.”…”�”}”(hhßh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hÝh³hÇh´KhhÊh²hubhÞ)�”}”(hX*NILFS2 creates a number of checkpoints every few seconds or per synchronous write basis (unless there is no change). Users can select significant versions among continuously created checkpoints, and can change them into snapshots which will be preserved until they are changed back to checkpoints.”h]”hX*NILFS2 creates a number of checkpoints every few seconds or per synchronous write basis (unless there is no change). Users can select significant versions among continuously created checkpoints, and can change them into snapshots which will be preserved until they are changed back to checkpoints.”…”�”}”(hhíh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hÝh³hÇh´KhhÊh²hubhÞ)�”}”(hŒ×There is no limit on the number of snapshots until the volume gets full. Each snapshot is mountable as a read-only file system concurrently with its writable mount, and this feature is convenient for online backup.”h]”hŒ×There is no limit on the number of snapshots until the volume gets full. Each snapshot is mountable as a read-only file system concurrently with its writable mount, and this feature is convenient for online backup.”…”�”}”(hhûh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hÝh³hÇh´KhhÊh²hubhÞ)�”}”(hX@The userland tools are included in nilfs-utils package, which is available from the following download page. At least "mkfs.nilfs2", "mount.nilfs2", "umount.nilfs2", and "nilfs_cleanerd" (so called cleaner or garbage collector) are required. Details on the tools are described in the man pages included in the package.”h]”hXPThe userland tools are included in nilfs-utils package, which is available from the following download page. At least “mkfs.nilfs2â€�, “mount.nilfs2â€�, “umount.nilfs2â€�, and “nilfs_cleanerdâ€� (so called cleaner or garbage collector) are required. Details on the tools are described in the man pages included in the package.”…”�”}”(hj h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hÝh³hÇh´KhhÊh²hubhŒ field_list”“”)�”}”(hhh]”(hŒfield”“”)�”}”(hhh]”(hŒ field_name”“”)�”}”(hŒProject web page”h]”hŒProject web page”…”�”}”(hj#h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1j!hjh³hÇh´KubhŒ field_body”“”)�”}”(hŒhttps://nilfs.sourceforge.io/”h]”hÞ)�”}”(hj5h]”hŒ reference”“”)�”}”(hj5h]”hŒhttps://nilfs.sourceforge.io/”…”�”}”(hj<h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”Œrefuri”j5uh1j:hj7ubah}”(h]”h ]”h"]”h$]”h&]”uh1hÝh³hÇh´Khj3ubah}”(h]”h ]”h"]”h$]”h&]”uh1j1hjubeh}”(h]”h ]”h"]”h$]”h&]”uh1jh³hÇh´Khjh²hubj)�”}”(hhh]”(j")�”}”(hŒ Download page”h]”hŒ Download page”…”�”}”(hj_h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1j!hj\h³hÇh´Kubj2)�”}”(hŒ-https://nilfs.sourceforge.io/en/download.html”h]”hÞ)�”}”(hjoh]”j;)�”}”(hjoh]”hŒ-https://nilfs.sourceforge.io/en/download.html”…”�”}”(hjth²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”Œrefuri”jouh1j:hjqubah}”(h]”h ]”h"]”h$]”h&]”uh1hÝh³hÇh´K hjmubah}”(h]”h ]”h"]”h$]”h&]”uh1j1hj\ubeh}”(h]”h ]”h"]”h$]”h&]”uh1jh³hÇh´K hjh²hubj)�”}”(hhh]”(j")�”}”(hŒ List info”h]”hŒ List info”…”�”}”(hj—h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1j!hj”h³hÇh´Kubj2)�”}”(hŒ3http://vger.kernel.org/vger-lists.html#linux-nilfs ”h]”hÞ)�”}”(hŒ2http://vger.kernel.org/vger-lists.html#linux-nilfs”h]”j;)�”}”(hj«h]”hŒ2http://vger.kernel.org/vger-lists.html#linux-nilfs”…”�”}”(hj­h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”Œrefuri”j«uh1j:hj©ubah}”(h]”h ]”h"]”h$]”h&]”uh1hÝh³hÇh´K!hj¥ubah}”(h]”h ]”h"]”h$]”h&]”uh1j1hj”ubeh}”(h]”h ]”h"]”h$]”h&]”uh1jh³hÇh´K!hjh²hubeh}”(h]”h ]”h"]”h$]”h&]”uh1jhhÊh²hh³hÇh´KubhÉ)�”}”(hhh]”(hÎ)�”}”(hŒCaveats”h]”hŒCaveats”…”�”}”(hjÖh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hÍhjÓh²hh³hÇh´K$ubhÞ)�”}”(hŒ+Features which NILFS2 does not support yet:”h]”hŒ+Features which NILFS2 does not support yet:”…”�”}”(hjäh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hÝh³hÇh´K&hjÓh²hubhŒ block_quote”“”)�”}”(hŒM- atime - extended attributes - POSIX ACLs - quotas - fsck - defragmentation ”h]”hŒ bullet_list”“”)�”}”(hhh]”(hŒ list_item”“”)�”}”(hŒatime”h]”hÞ)�”}”(hjh]”hŒatime”…”�”}”(hjh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hÝh³hÇh´K(hjÿubah}”(h]”h ]”h"]”h$]”h&]”uh1jýhjúubjþ)�”}”(hŒextended attributes”h]”hÞ)�”}”(hjh]”hŒextended attributes”…”�”}”(hjh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hÝh³hÇh´K)hjubah}”(h]”h ]”h"]”h$]”h&]”uh1jýhjúubjþ)�”}”(hŒ POSIX ACLs”h]”hÞ)�”}”(hj/h]”hŒ POSIX ACLs”…”�”}”(hj1h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hÝh³hÇh´K*hj-ubah}”(h]”h ]”h"]”h$]”h&]”uh1jýhjúubjþ)�”}”(hŒquotas”h]”hÞ)�”}”(hjFh]”hŒquotas”…”�”}”(hjHh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hÝh³hÇh´K+hjDubah}”(h]”h ]”h"]”h$]”h&]”uh1jýhjúubjþ)�”}”(hŒfsck”h]”hÞ)�”}”(hj]h]”hŒfsck”…”�”}”(hj_h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hÝh³hÇh´K,hj[ubah}”(h]”h ]”h"]”h$]”h&]”uh1jýhjúubjþ)�”}”(hŒdefragmentation ”h]”hÞ)�”}”(hŒdefragmentation”h]”hŒdefragmentation”…”�”}”(hjvh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hÝh³hÇh´K-hjrubah}”(h]”h ]”h"]”h$]”h&]”uh1jýhjúubeh}”(h]”h ]”h"]”h$]”h&]”Œbullet”Œ-”uh1jøh³hÇh´K(hjôubah}”(h]”h ]”h"]”h$]”h&]”uh1jòh³hÇh´K(hjÓh²hubeh}”(h]”Œcaveats”ah ]”h"]”Œcaveats”ah$]”h&]”uh1hÈhhÊh²hh³hÇh´K$ubhÉ)�”}”(hhh]”(hÎ)�”}”(hŒ Mount options”h]”hŒ Mount options”…”�”}”(hj£h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hÍhj h²hh³hÇh´K0ubhÞ)�”}”(hŒ;NILFS2 supports the following mount options: (*) == default”h]”hŒ;NILFS2 supports the following mount options: (*) == default”…”�”}”(hj±h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hÝh³hÇh´K2hj h²hubhŒtable”“”)�”}”(hhh]”hŒtgroup”“”)�”}”(hhh]”(hŒcolspec”“”)�”}”(hhh]”h}”(h]”h ]”h"]”h$]”h&]”Œcolwidth”Kuh1jÉhjÆubjÊ)�”}”(hhh]”h}”(h]”h ]”h"]”h$]”h&]”Œcolwidth”K7uh1jÉhjÆubhŒtbody”“”)�”}”(hhh]”(hŒrow”“”)�”}”(hhh]”(hŒentry”“”)�”}”(hhh]”hÞ)�”}”(hŒ barrier(*)”h]”hŒ barrier(*)”…”�”}”(hjîh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hÝh³hÇh´K6hjëubah}”(h]”h ]”h"]”h$]”h&]”uh1jéhjæubjê)�”}”(hhh]”hÞ)�”}”(hŒ6This enables/disables the use of write barriers. This”h]”hŒ6This enables/disables the use of write barriers. This”…”�”}”(hjh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hÝh³hÇh´K6hjubah}”(h]”h ]”h"]”h$]”h&]”uh1jéhjæubeh}”(h]”h ]”h"]”h$]”h&]”uh1jähjáubjå)�”}”(hhh]”(jê)�”}”(hhh]”hÞ)�”}”(hŒ nobarrier”h]”hŒ nobarrier”…”�”}”(hj%h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hÝh³hÇh´K7hj"ubah}”(h]”h ]”h"]”h$]”h&]”uh1jéhjubjê)�”}”(hhh]”hÞ)�”}”(hŒ…requires an IO stack which can support barriers, and if nilfs gets an error on a barrier write, it will disable again with a warning.”h]”hŒ…requires an IO stack which can support barriers, and if nilfs gets an error on a barrier write, it will disable again with a warning.”…”�”}”(hj<h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hÝh³hÇh´K7hj9ubah}”(h]”h ]”h"]”h$]”h&]”uh1jéhjubeh}”(h]”h ]”h"]”h$]”h&]”uh1jähjáubjå)�”}”(hhh]”(jê)�”}”(hhh]”hÞ)�”}”(hŒerrors=continue”h]”hŒerrors=continue”…”�”}”(hj\h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hÝh³hÇh´K:hjYubah}”(h]”h ]”h"]”h$]”h&]”uh1jéhjVubjê)�”}”(hhh]”hÞ)�”}”(hŒ!Keep going on a filesystem error.”h]”hŒ!Keep going on a filesystem error.”…”�”}”(hjsh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hÝh³hÇh´K:hjpubah}”(h]”h ]”h"]”h$]”h&]”uh1jéhjVubeh}”(h]”h ]”h"]”h$]”h&]”uh1jähjáubjå)�”}”(hhh]”(jê)�”}”(hhh]”hÞ)�”}”(hŒerrors=remount-ro(*)”h]”hŒerrors=remount-ro(*)”…”�”}”(hj“h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hÝh³hÇh´K;hj�ubah}”(h]”h ]”h"]”h$]”h&]”uh1jéhj�ubjê)�”}”(hhh]”hÞ)�”}”(hŒ-Remount the filesystem read-only on an error.”h]”hŒ-Remount the filesystem read-only on an error.”…”�”}”(hjªh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hÝh³hÇh´K;hj§ubah}”(h]”h ]”h"]”h$]”h&]”uh1jéhj�ubeh}”(h]”h ]”h"]”h$]”h&]”uh1jähjáubjå)�”}”(hhh]”(jê)�”}”(hhh]”hÞ)�”}”(hŒ errors=panic”h]”hŒ errors=panic”…”�”}”(hjÊh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hÝh³hÇh´K /dev/block_device /snap_dir”h]”hŒ<# mount -t nilfs2 -r -o cp= /dev/block_device /snap_dir”…”�”}”hjK sbah}”(h]”h ]”h"]”h$]”h&]”hÅhÆuh1jûh³hÇh´K±hjÜh²hubhÞ)�”}”(hŒ5where is the checkpoint number of the snapshot.”h]”hŒ5where is the checkpoint number of the snapshot.”…”�”}”(hjY h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hÝh³hÇh´K³hjÜh²hubhÞ)�”}”(hŒ7To unmount the NILFS2 mount point or snapshot, simply::”h]”hŒ6To unmount the NILFS2 mount point or snapshot, simply:”…”�”}”(hjg h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hÝh³hÇh´KµhjÜh²hubjü)�”}”(hŒ # umount /dir”h]”hŒ # umount /dir”…”�”}”hju sbah}”(h]”h ]”h"]”h$]”h&]”hÅhÆuh1jûh³hÇh´K·hjÜh²hubhÞ)�”}”(hŒaThen, the cleaner daemon is automatically shut down by the umount helper program (umount.nilfs2).”h]”hŒaThen, the cleaner daemon is automatically shut down by the umount helper program (umount.nilfs2).”…”�”}”(hjƒ h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hÝh³hÇh´K¹hjÜh²hubeh}”(h]”Œ nilfs2-usage”ah ]”h"]”Œ nilfs2 usage”ah$]”h&]”uh1hÈhhÊh²hh³hÇh´K›ubhÉ)�”}”(hhh]”(hÎ)�”}”(hŒ Disk format”h]”hŒ Disk format”…”�”}”(hjœ h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hÍhj™ h²hh³hÇh´K½ubhÞ)�”}”(hŒþA nilfs2 volume is equally divided into a number of segments except for the super block (SB) and segment #0. A segment is the container of logs. Each log is composed of summary information blocks, payload blocks, and an optional super root block (SR)::”h]”hŒýA nilfs2 volume is equally divided into a number of segments except for the super block (SB) and segment #0. A segment is the container of logs. Each log is composed of summary information blocks, payload blocks, and an optional super root block (SR):”…”�”}”(hjª h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hÝh³hÇh´K¿hj™ h²hubjü)�”}”(hX% ______________________________________________________ | |SB| | Segment | Segment | Segment | ... | Segment | | |_|__|_|____0____|____1____|____2____|_____|____N____|_| 0 +1K +4K +8M +16M +24M +(8MB x N) . . (Typical offsets for 4KB-block) . . .______________________. | log | log |... | log | |__1__|__2__|____|__m__| . . . . . . .______________________________. | Summary | Payload blocks |SR| |_blocks__|_________________|__|”h]”hX% ______________________________________________________ | |SB| | Segment | Segment | Segment | ... | Segment | | |_|__|_|____0____|____1____|____2____|_____|____N____|_| 0 +1K +4K +8M +16M +24M +(8MB x N) . . (Typical offsets for 4KB-block) . . .______________________. | log | log |... | log | |__1__|__2__|____|__m__| . . . . . . .______________________________. | Summary | Payload blocks |SR| |_blocks__|_________________|__|”…”�”}”hj¸ sbah}”(h]”h ]”h"]”h$]”h&]”hÅhÆuh1jûh³hÇh´KÄhj™ h²hubhÞ)�”}”(hŒiThe payload blocks are organized per file, and each file consists of data blocks and B-tree node blocks::”h]”hŒhThe payload blocks are organized per file, and each file consists of data blocks and B-tree node blocks:”…”�”}”(hjÆ h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hÝh³hÇh´KÔhj™ h²hubjü)�”}”(hX |<--- File-A --->|<--- File-B --->| _______________________________________________________________ | Data blocks | B-tree blocks | Data blocks | B-tree blocks | ... _|_____________|_______________|_____________|_______________|_”h]”hX |<--- File-A --->|<--- File-B --->| _______________________________________________________________ | Data blocks | B-tree blocks | Data blocks | B-tree blocks | ... _|_____________|_______________|_____________|_______________|_”…”�”}”hjÔ sbah}”(h]”h ]”h"]”h$]”h&]”hÅhÆuh1jûh³hÇh´K×hj™ h²hubhÞ)�”}”(hŒsSince only the modified blocks are written in the log, it may have files without data blocks or B-tree node blocks.”h]”hŒsSince only the modified blocks are written in the log, it may have files without data blocks or B-tree node blocks.”…”�”}”(hjâ h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hÝh³hÇh´KÝhj™ h²hubhÞ)�”}”(hŒÔThe organization of the blocks is recorded in the summary information blocks, which contains a header structure (nilfs_segment_summary), per file structures (nilfs_finfo), and per block structures (nilfs_binfo)::”h]”hŒÓThe organization of the blocks is recorded in the summary information blocks, which contains a header structure (nilfs_segment_summary), per file structures (nilfs_finfo), and per block structures (nilfs_binfo):”…”�”}”(hjð h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hÝh³hÇh´Kàhj™ h²hubjü)�”}”(hŒà _________________________________________________________________________ | Summary | finfo | binfo | ... | binfo | finfo | binfo | ... | binfo |... |_blocks__|___A___|_(A,1)_|_____|(A,Na)_|___B___|_(B,1)_|_____|(B,Nb)_|___”h]”hŒà _________________________________________________________________________ | Summary | finfo | binfo | ... | binfo | finfo | binfo | ... | binfo |... |_blocks__|___A___|_(A,1)_|_____|(A,Na)_|___B___|_(B,1)_|_____|(B,Nb)_|___”…”�”}”hjþ sbah}”(h]”h ]”h"]”h$]”h&]”hÅhÆuh1jûh³hÇh´Kähj™ h²hubhÞ)�”}”(hŒðThe logs include regular files, directory files, symbolic link files and several meta data files. The meta data files are the files used to maintain file system meta data. The current version of NILFS2 uses the following meta data files::”h]”hŒïThe logs include regular files, directory files, symbolic link files and several meta data files. The meta data files are the files used to maintain file system meta data. The current version of NILFS2 uses the following meta data files:”…”�”}”(hj h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hÝh³hÇh´Kéhj™ h²hubjü)�”}”(hX“1) Inode file (ifile) -- Stores on-disk inodes 2) Checkpoint file (cpfile) -- Stores checkpoints 3) Segment usage file (sufile) -- Stores allocation state of segments 4) Data address translation file -- Maps virtual block numbers to usual (DAT) block numbers. This file serves to make on-disk blocks relocatable.”h]”hX“1) Inode file (ifile) -- Stores on-disk inodes 2) Checkpoint file (cpfile) -- Stores checkpoints 3) Segment usage file (sufile) -- Stores allocation state of segments 4) Data address translation file -- Maps virtual block numbers to usual (DAT) block numbers. This file serves to make on-disk blocks relocatable.”…”�”}”hj sbah}”(h]”h ]”h"]”h$]”h&]”hÅhÆuh1jûh³hÇh´Kîhj™ h²hubhÞ)�”}”(hŒ?The following figure shows a typical organization of the logs::”h]”hŒ>The following figure shows a typical organization of the logs:”…”�”}”(hj( h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hÝh³hÇh´Kõhj™ h²hubjü)�”}”(hŒâ _________________________________________________________________________ | Summary | regular file | file | ... | ifile | cpfile | sufile | DAT |SR| |_blocks__|_or_directory_|_______|_____|_______|________|________|_____|__|”h]”hŒâ _________________________________________________________________________ | Summary | regular file | file | ... | ifile | cpfile | sufile | DAT |SR| |_blocks__|_or_directory_|_______|_____|_______|________|________|_____|__|”…”�”}”hj6 sbah}”(h]”h ]”h"]”h$]”h&]”hÅhÆuh1jûh³hÇh´K÷hj™ h²hubhÞ)�”}”(hX4To stride over segment boundaries, this sequence of files may be split into multiple logs. The sequence of logs that should be treated as logically one log, is delimited with flags marked in the segment summary. The recovery code of nilfs2 looks at this boundary information to ensure atomicity of updates.”h]”hX4To stride over segment boundaries, this sequence of files may be split into multiple logs. The sequence of logs that should be treated as logically one log, is delimited with flags marked in the segment summary. The recovery code of nilfs2 looks at this boundary information to ensure atomicity of updates.”…”�”}”(hjD h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hÝh³hÇh´Kühj™ h²hubhÞ)�”}”(hX‡The super root block is inserted for every checkpoints. It includes three special inodes, inodes for the DAT, cpfile, and sufile. Inodes of regular files, directories, symlinks and other special files, are included in the ifile. The inode of ifile itself is included in the corresponding checkpoint entry in the cpfile. Thus, the hierarchy among NILFS2 files can be depicted as follows::”h]”hX†The super root block is inserted for every checkpoints. It includes three special inodes, inodes for the DAT, cpfile, and sufile. Inodes of regular files, directories, symlinks and other special files, are included in the ifile. The inode of ifile itself is included in the corresponding checkpoint entry in the cpfile. Thus, the hierarchy among NILFS2 files can be depicted as follows:”…”�”}”(hjR h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hÝh³hÇh´Mhj™ h²hubjü)�”}”(hXÌSuper block (SB) | v Super root block (the latest cno=xx) |-- DAT |-- sufile `-- cpfile |-- ifile (cno=c1) |-- ifile (cno=c2) ---- file (ino=i1) : : |-- file (ino=i2) `-- ifile (cno=xx) |-- file (ino=i3) : : `-- file (ino=yy) ( regular file, directory, or symlink )”h]”hXÌSuper block (SB) | v Super root block (the latest cno=xx) |-- DAT |-- sufile `-- cpfile |-- ifile (cno=c1) |-- ifile (cno=c2) ---- file (ino=i1) : : |-- file (ino=i2) `-- ifile (cno=xx) |-- file (ino=i3) : : `-- file (ino=yy) ( regular file, directory, or symlink )”…”�”}”hj` sbah}”(h]”h ]”h"]”h$]”h&]”hÅhÆuh1jûh³hÇh´M hj™ h²hubhÞ)�”}”(hŒjFor detail on the format of each file, please see nilfs2_ondisk.h located at include/uapi/linux directory.”h]”hŒjFor detail on the format of each file, please see nilfs2_ondisk.h located at include/uapi/linux directory.”…”�”}”(hjn h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hÝh³hÇh´Mhj™ h²hubhÞ)�”}”(hŒøThere are no patents or other intellectual property that we protect with regard to the design of NILFS2. It is allowed to replicate the design in hopes that other operating systems could share (mount, read, write, etc.) data stored in this format.”h]”hŒøThere are no patents or other intellectual property that we protect with regard to the design of NILFS2. It is allowed to replicate the design in hopes that other operating systems could share (mount, read, write, etc.) data stored in this format.”…”�”}”(hj| h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hÝh³hÇh´Mhj™ h²hubeh}”(h]”Œ disk-format”ah ]”h"]”Œ disk format”ah$]”h&]”uh1hÈhhÊh²hh³hÇh´K½ubeh}”(h]”Œnilfs2”ah ]”h"]”Œnilfs2”ah$]”h&]”uh1hÈhhh²hh³hÇh´Kubeh}”(h]”h ]”h"]”h$]”h&]”Œsource”hÇuh1hŒcurrent_source”NŒ current_line”NŒsettings”Œdocutils.frontend”ŒValues”“”)�”}”(hÍNŒ generator”NŒ datestamp”NŒ source_link”NŒ source_url”NŒ toc_backlinks”jéŒfootnote_backlinks”KŒ sectnum_xform”KŒstrip_comments”NŒstrip_elements_with_classes”NŒ strip_classes”NŒ report_level”KŒ halt_level”KŒexit_status_level”KŒdebug”NŒwarning_stream”NŒ traceback”ˆŒinput_encoding”Œ utf-8-sig”Œinput_encoding_error_handler”Œstrict”Œoutput_encoding”Œutf-8”Œoutput_encoding_error_handler”j¼ Œerror_encoding”Œutf-8”Œerror_encoding_error_handler”Œbackslashreplace”Œ language_code”Œen”Œrecord_dependencies”NŒconfig”NŒ id_prefix”hŒauto_id_prefix”Œid”Œ dump_settings”NŒdump_internals”NŒdump_transforms”NŒdump_pseudo_xml”NŒexpose_internals”NŒstrict_visitor”NŒ_disable_config”NŒ_source”hÇŒ _destination”NŒ _config_files”]”Œ7/var/lib/git/docbuild/linux/Documentation/docutils.conf”aŒfile_insertion_enabled”ˆŒ raw_enabled”KŒline_length_limit”M'Œpep_references”NŒ pep_base_url”Œhttps://peps.python.org/”Œpep_file_url_template”Œpep-%04d”Œrfc_references”NŒ rfc_base_url”Œ&https://datatracker.ietf.org/doc/html/”Œ tab_width”KŒtrim_footnote_reference_space”‰Œsyntax_highlight”Œlong”Œ smart_quotes”ˆŒsmartquotes_locales”]”Œcharacter_level_inline_markup”‰Œdoctitle_xform”‰Œ docinfo_xform”KŒsectsubtitle_xform”‰Œ image_loading”Œlink”Œembed_stylesheet”‰Œcloak_email_addresses”ˆŒsection_self_link”‰Œenv”NubŒreporter”NŒindirect_targets”]”Œsubstitution_defs”}”Œsubstitution_names”}”Œrefnames”}”Œrefids”}”Œnameids”}”(j— j” j�jšj]jZjÙjÖj– j“ j� jŒ uŒ nametypes”}”(j— ‰j�‰j]‰jÙ‰j– ‰j� ‰uh}”(j” hÊjšjÓjZj jÖj`j“ jÜjŒ j™ uŒ footnote_refs”}”Œ citation_refs”}”Œ autofootnotes”]”Œautofootnote_refs”]”Œsymbol_footnotes”]”Œsymbol_footnote_refs”]”Œ footnotes”]”Œ citations”]”Œautofootnote_start”KŒsymbol_footnote_start”KŒ id_counter”Œ collections”ŒCounter”“”}”…”R”Œparse_messages”]”Œtransform_messages”]”Œ transformer”NŒ include_log”]”Œ decoration”Nh²hub.