Skip to content

not working data compression #4

Description

@brikler

hi,

in short: i am using f2fs since 2012 on my desktop linux, and i am also a wannabe compression user but it doesn't work (surprise surprise).

i found this messages in my journal, for zstd, lzo, and lz4:

#zstd
[  136.008011] cachyos kernel: F2FS-fs (nvme0n1p1): Image doesn't support compression
#lzo
[  152.691007] cachyos kernel: F2FS-fs (nvme0n1p1): Image doesn't support compression
#lz4
[  158.719668] cachyos kernel: F2FS-fs (nvme0n1p1): Image doesn't support compression

it seems something is missing, but what?
there are some threads about not working compression, but without a solution.

i am using kernel: 6.15.2-2-cachyos (cachyos is a archlinux clone) and f2fs-tools 1.16.0-3.1

loaded f2fs related modules are:


lsmod | grep f2fs
f2fs                 1105920  1
lz4hc_compress         20480  1 f2fs
lz4_compress           24576  1 f2fs

the f2fs related kernel settings::


CONFIG_F2FS_FS=m
CONFIG_F2FS_STAT_FS=y
CONFIG_F2FS_FS_XATTR=y
CONFIG_F2FS_FS_POSIX_ACL=y
CONFIG_F2FS_FS_SECURITY=y
CONFIG_F2FS_CHECK_FS=y
# CONFIG_F2FS_FAULT_INJECTION is not set
CONFIG_F2FS_FS_COMPRESSION=y
CONFIG_F2FS_FS_LZO=y
CONFIG_F2FS_FS_LZORLE=y
CONFIG_F2FS_FS_LZ4=y
CONFIG_F2FS_FS_LZ4HC=y
CONFIG_F2FS_FS_ZSTD=y
CONFIG_F2FS_IOSTAT=y
CONFIG_F2FS_UNFAIR_RWSEM=y

source: https://gitlab.archlinux.org/archlinux/packaging/packages/linux/-/blob/6.15.2.arch1-1/config

can i provide more useful information?
maybe you can me point in the right direction :)ilsystem

edit: the compression feature must be setup with the filsystem cration
mkfs.f2fs -l mylabel -O extra_attr,inode_checksum,sb_checksum,compression /dev/<>

many thanks for advance
sincerely tom

ps
hopefully your crystallball is well polished^

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions