SLOAD.F2FS(8)
β¨ SLOAD.F2FS(8) β the sload.f2fs girlie is here to load ur files directly into the device π
okay so bestie, welcome to sload.f2fs from the System Manager's Manual section 8 (that's the system admin girlies only, iykyk) β¨
πΈ NAME πΈ
sload.f2fs β load directories and files into the device directly, no gatekeeping, no emulation, just pure vibes π
π¦ SYNOPSIS π¦
sload.f2fs [ -f source-directory-path ] [ -t mount-point ] [ -d
debugging-level ] [ -P ] [ -c [ -L log-of-blocks-per-cluster ] [ -a
compression-algorithm ] [ -x file-extension-to-exclude-from-compression
| -i file-extension-to-include-for-compression ] [ -m minimum-
compressed-blocks-per-cluster ] [ -r ] ] device
like yes, it's a lot of brackets, but we eat structure for breakfast π₯ the -c block is lowkey nesting like a little family of options and honestly? iconic.
π DESCRIPTION π
so sload.f2fs is literally the main character that loads directories and files into a disk partition, or an F2FS image (file). no cap, it just does the thing. π«
device could be a special file corresponding to the device (e.g. /dev/sdXX), or an F2FS image file. pick your fighter, both slay.
the exit code returned by sload.f2fs is 0 on success and -1 on failure. 0 is the good ending, -1 is the π ending. that's just how it is, periodt.
π OPTIONS π
-fsource-directory-path β specify the source directory path to be loaded. this is where ur stuff comes from bestie π-tmount-point-path β specify the mount point path in the partition to load. like where it lands in the destination, no confusion allowed β¨-ddebug-level β specify the level of debugging options. the default number is0, which shows basic debugging messages. so if u say nothing, u get the basic tea β and that's fine.-Pβ Preserve owner: user and group. The user and group of the source files will be taken into account. like it remembers WHO the files belong to and respects it, we love an attentive queen π-cβ Enable a cluster-based file compression. The file would be chopped into clusters, and each cluster is compressed independently. it's giving tiny portions, individually wrapped, chef's kiss π-Llog-of-blocks-per-cluster β Specify cluster size in power of two blocks. The minimum value is2(4 blocks, default). The maximum value is8(256 blocks). Note that a block contains4096or16384bytes. This option must be used with option-c. so it's the size of ur little cluster portions π and yes, mandatory-chookup, don't even try it alone.-acompression-algorithm β Choose the algorithm for compression. Available options are:lzo,lz4(default). This option must be used with option-c. pick ur compression algorithm like picking a playlist,lz4is the default because it's that girl β¨ and again: must be used with option-c.-ifile-extension-to-include-for-compression β Specify a file extension to include for the compression. To specify multiple file extensions, use multiple option-i's. Files having one of the listed extensions will be compressed. This option must be used with option-c. it's an allowlist bestie, only the listed extensions get the compression treatment π and yeah,-cmandatory.-xfile-extension-to-exclude-from-compression β Specify a file extension to exclude from compression. To specify multiple file extensions, use multiple option-x's. Files having one of the listed extensions won't be compressed. This option must be used with option-c. it's the blocklist energy π« extensions on this list get skipped, no compression for them, and-cis required obviously.-mminimum-compressed-blocks-per-cluster β Specify a minimum block count saved (by compression) per cluster. The minimum value is1(default). Maximum value is the cluster size in blocks minus1. If compression of a cluster fails to save at least the minimum compressed block count given by the option, the cluster will not be compressed. This option must be used with option-c. okay so it's a vibe check for each cluster: if it didn't save enough blocks, it doesn't get compressed, sorry not sorry π and yes-crequired, are we sensing a pattern? π-rβ Specify read-only flag for the compressed files. It allows filesystem to release compressed space to the users, since, without this option, filesystem should keep the space for future file updates. This option must be used with option-c. so it says "these files are read-only now" and the filesystem can free up the compressed space for the users, because without this option the filesystem has to keep the space around for future file updates. it's giving generosity, it's giving space-releasing icon π and-cmandatory, final answer.
π NOTES π
- If neither
-inor-xis used, all files will be compressed. so no filter = everything gets the compression treatment, we love a generous default π«Ά - Obviously, option
-iand-xcan not be used together. like literally obviously bestie, they're opposites, it's giving "pick a side" energy π don't combine them.
lowkey warning: those two extension options are mutually exclusive, so don't try to be cute and use both at once, it won't go how u think π
π AUTHOR π
This version of sload.f2fs has been contributed by Hou Pengyang <houpengyang@huawei.com>, Liu Shuoran <liushuoran@huawei.com>, Jaegeuk Kim <jaegeuk@kernel.org>, Robin Hsu <robinhsu@google.com>. absolute legends, we stan contributors who ship the good stuff π
π§ AVAILABILITY π§
sload.f2fs is available from <git://git.kernel.org/pub/scm/linux/kernel/git/jaegeuk/f2fs-tools.git>. go get it bestie, the source is right there β¨
π SEE ALSO π
the whole f2fs friend group honestly, they all ate π₯
π okay that's the whole page bestie, go forth and load those directories and files with confidence π
this version of the page is from the f2fs-tools source, the version that dropped way back in 2023, and it lives in section 8 of the manual. mwah, slay, periodt π«Άπ β¨
π¦ where this page comes from
- arch rolling: f2fs-tools 1.17.0-1 Β· GPL-2.0-only AND (GPL-2.0-only OR LGPL-2.1-only)
- Copyright (C) 2015 Huawei Ltd
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms