···101101=============102102103103104104-====================== ============================================================105105-background_gc=%s Turn on/off cleaning operations, namely garbage106106- collection, triggered in background when I/O subsystem is107107- idle. If background_gc=on, it will turn on the garbage108108- collection and if background_gc=off, garbage collection109109- will be turned off. If background_gc=sync, it will turn110110- on synchronous garbage collection running in background.111111- Default value for this option is on. So garbage112112- collection is on by default.113113-disable_roll_forward Disable the roll-forward recovery routine114114-norecovery Disable the roll-forward recovery routine, mounted read-115115- only (i.e., -o ro,disable_roll_forward)116116-discard/nodiscard Enable/disable real-time discard in f2fs, if discard is117117- enabled, f2fs will issue discard/TRIM commands when a118118- segment is cleaned.119119-no_heap Disable heap-style segment allocation which finds free120120- segments for data from the beginning of main area, while121121- for node from the end of main area.122122-nouser_xattr Disable Extended User Attributes. Note: xattr is enabled123123- by default if CONFIG_F2FS_FS_XATTR is selected.124124-noacl Disable POSIX Access Control List. Note: acl is enabled125125- by default if CONFIG_F2FS_FS_POSIX_ACL is selected.126126-active_logs=%u Support configuring the number of active logs. In the127127- current design, f2fs supports only 2, 4, and 6 logs.128128- Default number is 6.129129-disable_ext_identify Disable the extension list configured by mkfs, so f2fs130130- does not aware of cold files such as media files.131131-inline_xattr Enable the inline xattrs feature.132132-noinline_xattr Disable the inline xattrs feature.133133-inline_xattr_size=%u Support configuring inline xattr size, it depends on134134- flexible inline xattr feature.135135-inline_data Enable the inline data feature: New created small(<~3.4k)136136- files can be written into inode block.137137-inline_dentry Enable the inline dir feature: data in new created138138- directory entries can be written into inode block. The139139- space of inode block which is used to store inline140140- dentries is limited to ~3.4k.141141-noinline_dentry Disable the inline dentry feature.142142-flush_merge Merge concurrent cache_flush commands as much as possible143143- to eliminate redundant command issues. If the underlying144144- device handles the cache_flush command relatively slowly,145145- recommend to enable this option.146146-nobarrier This option can be used if underlying storage guarantees147147- its cached data should be written to the novolatile area.148148- If this option is set, no cache_flush commands are issued149149- but f2fs still guarantees the write ordering of all the150150- data writes.151151-fastboot This option is used when a system wants to reduce mount152152- time as much as possible, even though normal performance153153- can be sacrificed.154154-extent_cache Enable an extent cache based on rb-tree, it can cache155155- as many as extent which map between contiguous logical156156- address and physical address per inode, resulting in157157- increasing the cache hit ratio. Set by default.158158-noextent_cache Disable an extent cache based on rb-tree explicitly, see159159- the above extent_cache mount option.160160-noinline_data Disable the inline data feature, inline data feature is161161- enabled by default.162162-data_flush Enable data flushing before checkpoint in order to163163- persist data of regular and symlink.164164-reserve_root=%d Support configuring reserved space which is used for165165- allocation from a privileged user with specified uid or166166- gid, unit: 4KB, the default limit is 0.2% of user blocks.167167-resuid=%d The user ID which may use the reserved blocks.168168-resgid=%d The group ID which may use the reserved blocks.169169-fault_injection=%d Enable fault injection in all supported types with170170- specified injection rate.171171-fault_type=%d Support configuring fault injection type, should be172172- enabled with fault_injection option, fault type value173173- is shown below, it supports single or combined type.104104+======================== ============================================================105105+background_gc=%s Turn on/off cleaning operations, namely garbage106106+ collection, triggered in background when I/O subsystem is107107+ idle. If background_gc=on, it will turn on the garbage108108+ collection and if background_gc=off, garbage collection109109+ will be turned off. If background_gc=sync, it will turn110110+ on synchronous garbage collection running in background.111111+ Default value for this option is on. So garbage112112+ collection is on by default.113113+disable_roll_forward Disable the roll-forward recovery routine114114+norecovery Disable the roll-forward recovery routine, mounted read-115115+ only (i.e., -o ro,disable_roll_forward)116116+discard/nodiscard Enable/disable real-time discard in f2fs, if discard is117117+ enabled, f2fs will issue discard/TRIM commands when a118118+ segment is cleaned.119119+no_heap Disable heap-style segment allocation which finds free120120+ segments for data from the beginning of main area, while121121+ for node from the end of main area.122122+nouser_xattr Disable Extended User Attributes. Note: xattr is enabled123123+ by default if CONFIG_F2FS_FS_XATTR is selected.124124+noacl Disable POSIX Access Control List. Note: acl is enabled125125+ by default if CONFIG_F2FS_FS_POSIX_ACL is selected.126126+active_logs=%u Support configuring the number of active logs. In the127127+ current design, f2fs supports only 2, 4, and 6 logs.128128+ Default number is 6.129129+disable_ext_identify Disable the extension list configured by mkfs, so f2fs130130+ does not aware of cold files such as media files.131131+inline_xattr Enable the inline xattrs feature.132132+noinline_xattr Disable the inline xattrs feature.133133+inline_xattr_size=%u Support configuring inline xattr size, it depends on134134+ flexible inline xattr feature.135135+inline_data Enable the inline data feature: New created small(<~3.4k)136136+ files can be written into inode block.137137+inline_dentry Enable the inline dir feature: data in new created138138+ directory entries can be written into inode block. The139139+ space of inode block which is used to store inline140140+ dentries is limited to ~3.4k.141141+noinline_dentry Disable the inline dentry feature.142142+flush_merge Merge concurrent cache_flush commands as much as possible143143+ to eliminate redundant command issues. If the underlying144144+ device handles the cache_flush command relatively slowly,145145+ recommend to enable this option.146146+nobarrier This option can be used if underlying storage guarantees147147+ its cached data should be written to the novolatile area.148148+ If this option is set, no cache_flush commands are issued149149+ but f2fs still guarantees the write ordering of all the150150+ data writes.151151+fastboot This option is used when a system wants to reduce mount152152+ time as much as possible, even though normal performance153153+ can be sacrificed.154154+extent_cache Enable an extent cache based on rb-tree, it can cache155155+ as many as extent which map between contiguous logical156156+ address and physical address per inode, resulting in157157+ increasing the cache hit ratio. Set by default.158158+noextent_cache Disable an extent cache based on rb-tree explicitly, see159159+ the above extent_cache mount option.160160+noinline_data Disable the inline data feature, inline data feature is161161+ enabled by default.162162+data_flush Enable data flushing before checkpoint in order to163163+ persist data of regular and symlink.164164+reserve_root=%d Support configuring reserved space which is used for165165+ allocation from a privileged user with specified uid or166166+ gid, unit: 4KB, the default limit is 0.2% of user blocks.167167+resuid=%d The user ID which may use the reserved blocks.168168+resgid=%d The group ID which may use the reserved blocks.169169+fault_injection=%d Enable fault injection in all supported types with170170+ specified injection rate.171171+fault_type=%d Support configuring fault injection type, should be172172+ enabled with fault_injection option, fault type value173173+ is shown below, it supports single or combined type.174174175175- =================== ===========176176- Type_Name Type_Value177177- =================== ===========178178- FAULT_KMALLOC 0x000000001179179- FAULT_KVMALLOC 0x000000002180180- FAULT_PAGE_ALLOC 0x000000004181181- FAULT_PAGE_GET 0x000000008182182- FAULT_ALLOC_BIO 0x000000010183183- FAULT_ALLOC_NID 0x000000020184184- FAULT_ORPHAN 0x000000040185185- FAULT_BLOCK 0x000000080186186- FAULT_DIR_DEPTH 0x000000100187187- FAULT_EVICT_INODE 0x000000200188188- FAULT_TRUNCATE 0x000000400189189- FAULT_READ_IO 0x000000800190190- FAULT_CHECKPOINT 0x000001000191191- FAULT_DISCARD 0x000002000192192- FAULT_WRITE_IO 0x000004000193193- =================== ===========194194-mode=%s Control block allocation mode which supports "adaptive"195195- and "lfs". In "lfs" mode, there should be no random196196- writes towards main area.197197-io_bits=%u Set the bit size of write IO requests. It should be set198198- with "mode=lfs".199199-usrquota Enable plain user disk quota accounting.200200-grpquota Enable plain group disk quota accounting.201201-prjquota Enable plain project quota accounting.202202-usrjquota=<file> Appoint specified file and type during mount, so that quota203203-grpjquota=<file> information can be properly updated during recovery flow,204204-prjjquota=<file> <quota file>: must be in root directory;205205-jqfmt=<quota type> <quota type>: [vfsold,vfsv0,vfsv1].206206-offusrjquota Turn off user journelled quota.207207-offgrpjquota Turn off group journelled quota.208208-offprjjquota Turn off project journelled quota.209209-quota Enable plain user disk quota accounting.210210-noquota Disable all plain disk quota option.211211-whint_mode=%s Control which write hints are passed down to block212212- layer. This supports "off", "user-based", and213213- "fs-based". In "off" mode (default), f2fs does not pass214214- down hints. In "user-based" mode, f2fs tries to pass215215- down hints given by users. And in "fs-based" mode, f2fs216216- passes down hints with its policy.217217-alloc_mode=%s Adjust block allocation policy, which supports "reuse"218218- and "default".219219-fsync_mode=%s Control the policy of fsync. Currently supports "posix",220220- "strict", and "nobarrier". In "posix" mode, which is221221- default, fsync will follow POSIX semantics and does a222222- light operation to improve the filesystem performance.223223- In "strict" mode, fsync will be heavy and behaves in line224224- with xfs, ext4 and btrfs, where xfstest generic/342 will225225- pass, but the performance will regress. "nobarrier" is226226- based on "posix", but doesn't issue flush command for227227- non-atomic files likewise "nobarrier" mount option.175175+ =================== ===========176176+ Type_Name Type_Value177177+ =================== ===========178178+ FAULT_KMALLOC 0x000000001179179+ FAULT_KVMALLOC 0x000000002180180+ FAULT_PAGE_ALLOC 0x000000004181181+ FAULT_PAGE_GET 0x000000008182182+ FAULT_ALLOC_BIO 0x000000010183183+ FAULT_ALLOC_NID 0x000000020184184+ FAULT_ORPHAN 0x000000040185185+ FAULT_BLOCK 0x000000080186186+ FAULT_DIR_DEPTH 0x000000100187187+ FAULT_EVICT_INODE 0x000000200188188+ FAULT_TRUNCATE 0x000000400189189+ FAULT_READ_IO 0x000000800190190+ FAULT_CHECKPOINT 0x000001000191191+ FAULT_DISCARD 0x000002000192192+ FAULT_WRITE_IO 0x000004000193193+ =================== ===========194194+mode=%s Control block allocation mode which supports "adaptive"195195+ and "lfs". In "lfs" mode, there should be no random196196+ writes towards main area.197197+io_bits=%u Set the bit size of write IO requests. It should be set198198+ with "mode=lfs".199199+usrquota Enable plain user disk quota accounting.200200+grpquota Enable plain group disk quota accounting.201201+prjquota Enable plain project quota accounting.202202+usrjquota=<file> Appoint specified file and type during mount, so that quota203203+grpjquota=<file> information can be properly updated during recovery flow,204204+prjjquota=<file> <quota file>: must be in root directory;205205+jqfmt=<quota type> <quota type>: [vfsold,vfsv0,vfsv1].206206+offusrjquota Turn off user journelled quota.207207+offgrpjquota Turn off group journelled quota.208208+offprjjquota Turn off project journelled quota.209209+quota Enable plain user disk quota accounting.210210+noquota Disable all plain disk quota option.211211+whint_mode=%s Control which write hints are passed down to block212212+ layer. This supports "off", "user-based", and213213+ "fs-based". In "off" mode (default), f2fs does not pass214214+ down hints. In "user-based" mode, f2fs tries to pass215215+ down hints given by users. And in "fs-based" mode, f2fs216216+ passes down hints with its policy.217217+alloc_mode=%s Adjust block allocation policy, which supports "reuse"218218+ and "default".219219+fsync_mode=%s Control the policy of fsync. Currently supports "posix",220220+ "strict", and "nobarrier". In "posix" mode, which is221221+ default, fsync will follow POSIX semantics and does a222222+ light operation to improve the filesystem performance.223223+ In "strict" mode, fsync will be heavy and behaves in line224224+ with xfs, ext4 and btrfs, where xfstest generic/342 will225225+ pass, but the performance will regress. "nobarrier" is226226+ based on "posix", but doesn't issue flush command for227227+ non-atomic files likewise "nobarrier" mount option.228228test_dummy_encryption229229test_dummy_encryption=%s230230- Enable dummy encryption, which provides a fake fscrypt231231- context. The fake fscrypt context is used by xfstests.232232- The argument may be either "v1" or "v2", in order to233233- select the corresponding fscrypt policy version.234234-checkpoint=%s[:%u[%]] Set to "disable" to turn off checkpointing. Set to "enable"235235- to reenable checkpointing. Is enabled by default. While236236- disabled, any unmounting or unexpected shutdowns will cause237237- the filesystem contents to appear as they did when the238238- filesystem was mounted with that option.239239- While mounting with checkpoint=disabled, the filesystem must240240- run garbage collection to ensure that all available space can241241- be used. If this takes too much time, the mount may return242242- EAGAIN. You may optionally add a value to indicate how much243243- of the disk you would be willing to temporarily give up to244244- avoid additional garbage collection. This can be given as a245245- number of blocks, or as a percent. For instance, mounting246246- with checkpoint=disable:100% would always succeed, but it may247247- hide up to all remaining free space. The actual space that248248- would be unusable can be viewed at /sys/fs/f2fs/<disk>/unusable249249- This space is reclaimed once checkpoint=enable.250250-compress_algorithm=%s Control compress algorithm, currently f2fs supports "lzo",251251- "lz4", "zstd" and "lzo-rle" algorithm.252252-compress_log_size=%u Support configuring compress cluster size, the size will253253- be 4KB * (1 << %u), 16KB is minimum size, also it's254254- default size.255255-compress_extension=%s Support adding specified extension, so that f2fs can enable256256- compression on those corresponding files, e.g. if all files257257- with '.ext' has high compression rate, we can set the '.ext'258258- on compression extension list and enable compression on259259- these file by default rather than to enable it via ioctl.260260- For other files, we can still enable compression via ioctl.261261-====================== ============================================================230230+ Enable dummy encryption, which provides a fake fscrypt231231+ context. The fake fscrypt context is used by xfstests.232232+ The argument may be either "v1" or "v2", in order to233233+ select the corresponding fscrypt policy version.234234+checkpoint=%s[:%u[%]] Set to "disable" to turn off checkpointing. Set to "enable"235235+ to reenable checkpointing. Is enabled by default. While236236+ disabled, any unmounting or unexpected shutdowns will cause237237+ the filesystem contents to appear as they did when the238238+ filesystem was mounted with that option.239239+ While mounting with checkpoint=disabled, the filesystem must240240+ run garbage collection to ensure that all available space can241241+ be used. If this takes too much time, the mount may return242242+ EAGAIN. You may optionally add a value to indicate how much243243+ of the disk you would be willing to temporarily give up to244244+ avoid additional garbage collection. This can be given as a245245+ number of blocks, or as a percent. For instance, mounting246246+ with checkpoint=disable:100% would always succeed, but it may247247+ hide up to all remaining free space. The actual space that248248+ would be unusable can be viewed at /sys/fs/f2fs/<disk>/unusable249249+ This space is reclaimed once checkpoint=enable.250250+compress_algorithm=%s Control compress algorithm, currently f2fs supports "lzo",251251+ "lz4", "zstd" and "lzo-rle" algorithm.252252+compress_log_size=%u Support configuring compress cluster size, the size will253253+ be 4KB * (1 << %u), 16KB is minimum size, also it's254254+ default size.255255+compress_extension=%s Support adding specified extension, so that f2fs can enable256256+ compression on those corresponding files, e.g. if all files257257+ with '.ext' has high compression rate, we can set the '.ext'258258+ on compression extension list and enable compression on259259+ these file by default rather than to enable it via ioctl.260260+ For other files, we can still enable compression via ioctl.261261+======================== ============================================================262262263263Debugfs Entries264264===============
···323323 $rec_sphinx_upgrade = 1;324324 return;325325 }326326- if ($cur_version lt $min_pdf_version) {327327- $rec_sphinx_upgrade = 1;328328- return;329329- }330326331327 # On version check mode, just assume Sphinx has all mandatory deps332328 exit (0) if ($version_check);