TEST.SSDFS(8)
π test.ssdfs(8) β the SSDFS file system tester, bestie
okay so real talk: this page is test.ssdfs, and the (8) means it lives in the System Administration Commands corner of the manual (very "we run things around here" of it, honestly). It's the unit-testing utility for the SSDFS file system, and yes, she's the friend who actually checks your work. π₯
πΈ NAME
test.ssdfs β test SSDFS file system. that's it, that's the whole name, periodt.
β¨ SYNOPSIS
test.ssdfs [options] device|image-file
you give her a device or an image-file and some options, and she goes to work. π
π¦ DESCRIPTION
test.ssdfs performs unit tests for SSDFS file system subsystems. not vibes-based testing, actual unit tests π
β this utility provides comprehensive testing capabilities for various file system components including btrees, bitmaps, mapping tables, and memory primitives. lowkey iconic, no cap.
β OPTIONS
-a,--allβ test all subsystems. the "do everything" button, main character energy fr fr π-b,--block-bitmapcapacity=value,pre-alloc=value,alloc=value,invalidate=value,reserve=valueβ define block bitmap testing options with capacity, pre-allocation, allocation, invalidation, and reservation parameters. five whole knobs to turn ποΈ-d,--shared-dictionarynames_number=value,name_len=value,step_factor=valueβ define shared dictionary testing options including number of names, name length, and step factor.-D,--shared-extents-treeextents_number=value,extent_len=value,ref_count_max=valueβ define shared extents tree testing options with number of extents, extent length, and maximum reference count.-e,--extentmax_len=valueβ define extent related thresholds with maximum length. just the one threshold, she's low-maintenance πΈ-f,--filemax_count=value,max_size=valueβ define file related thresholds including maximum count and size.-h,--helpβ display help message and exit. your emergency exit, we love her π-m,--mapping-tableiterations=value,mappings_per_iter=value,add_migrations_per_iter=value,exclude_migrations_per_iter=valueβ define PEB mapping table testing options with iterations and migration parameters. note the lowercase-mvs the uppercase-Mlater, don't mix them up bestie π-M,--memory-primitivesiterations=value,capacity=value,count=value,item_size=value,test_folio_vector,test_folio_array,test_dynamic_array,test_allβ define memory primitives testing options for various data structures. she's got flags inside her flags, meta ik π-n,--snapshots-treesnapshots_number=valueβ define snapshots tree testing options with number of snapshots.-o,--offset-tablecapacity=valueβ define offsets table testing options with capacity parameter.-p,--pagesizesize β page size of target device. supported sizes:4096,8192,16384,32768bytes. those four, exactly those four, no improvising π«Ά-s,--subsystemsubsystem_list β define testing subsystems. options:dentries_tree,extents_tree,block_bitmap,offset_table,mapping_table,memory_primitives,segment_bitmap,shared_dictionary,xattr_tree,shared_extents_tree,snapshots_tree. eleven of them, full roster β¨-S,--segment-bitmapiterations=value,using_segs_per_iter=value,used_segs_per_iter=value,pre_dirty_segs_per_iter=value,dirty_segs_per_iter=value,cleaned_segs_per_iter=valueβ define segment bitmap testing options with various segment state parameters.-V,--versionβ print version and exit.-x,--xattr-treexattrs_number=value,name_len=value,step_factor=value,blob_len=value,blob_pattern=valueβ define xattrs tree testing options with extended attributes parameters.
π§ TESTABLE SUBSYSTEMS
test.ssdfs can test the following subsystems β here's the whole squad, no one left out π
dentries_treeβ directory entries btree operations and consistency.extents_treeβ file extents btree operations and management.block_bitmapβ block allocation bitmap functionality.offset_tableβ block-to-offset translation table operations.mapping_tableβ Physical Erase Block (PEB) mapping table operations.memory_primitivesβ low-level memory management structures (folio arrays, dynamic arrays).segment_bitmapβ segment state bitmap operations.shared_dictionaryβ shared string dictionary functionality.xattr_treeβ extended attributes btree operations.shared_extents_treeβ shared extents reference tracking.snapshots_treeβ file system snapshots management.
π EXIT STATUS
test.ssdfs exits with status 0 if all tests pass, or with non-zero status if any test fails. so like, 0 = she's proud of you π₯Ή, anything else = something's wrong and she WILL tell you.
π EXAMPLES
test all subsystems:
# test.ssdfs -a /dev/sdb1
test specific subsystem:
# test.ssdfs -s block_bitmap /dev/sdb1
test block bitmap with custom parameters:
# test.ssdfs -b capacity=1024,pre-alloc=100,alloc=200 /dev/sdb1
test mapping table with specific iterations:
# test.ssdfs -m iterations=100,mappings_per_iter=10 /dev/sdb1
test multiple subsystems:
# test.ssdfs -s dentries_tree,extents_tree,block_bitmap /dev/sdb1
test with custom page size:
# test.ssdfs -p 8192 -a /dev/sdb1
π NOTES
test.ssdfs is primarily intended for SSDFS file system development and validation. Test operations may modify the target device/image file, so use with caution on production systems. π seriously bestie, she WRITES to the thing β do not just point her at prod and walk away.
some tests may take considerable time to complete, especially with large iteration counts or capacity values. like, go make a snack, she's busy π
testing helps ensure the reliability and correctness of SSDFS file system implementations across different configurations and workloads. it's giving "character development arc" but for filesystems π
π₯ SEE ALSO
mkfs.ssdfs(8), fsck.ssdfs(8), dump.ssdfs(8) β the rest of the friend group, go say hi π
π«Ά AUTHORS
Viacheslav Dubeyko <slava@dubeyko.com>
π COPYRIGHT
Copyright (c) 2021-2026 Viacheslav Dubeyko SPDX-License-Identifier: BSD-3-Clause-Clear
aaaand that's the page! brought to you by ssdfs-utils, dated 2025-08-30 β which is literally the same 2025-08-30 stamped in the TEST.SSDFS(8) footer, so jot that down. mwah π β¨
π¦ where this page comes from
- nixos 26.05: ssdfs-utils 4.68
- nixpkgs unstable: ssdfs-utils 4.68
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms