playing around with f2fs

some trick to make it happen – boot system with additional kernel argument rootflags=atgc

root = "/dev/xvda1 ro console=hvc0 mitigations=off rootflags=atgc"

requires specific guest kernel

zcat /proc/config.gz | grep F2FS

also userland

    wget $mirror/slackware64/a/f2fs-tools-1.14.0-x86_64-3.txz
    installpkg --terse --root lala/ f2fs-tools-*.txz

make the fs

mkfs.f2fs -O extra_attr,inode_checksum,sb_checksum,compression /dev/drbd/by-res/$guest/0

fstab examples

/dev/xvda1 / f2fs defaults,noatime,nodiratime,compress_algorithm=lz4,compress_chksum,atgc,gc_merge,lazytime 0 1
/dev/xvda1 / f2fs defaults,noatime,nodiratime,compress_algorithm=lz4,compress_extension=*,compress_chksum,atgc,gc_merge 0 1

HOME | GUIDES | LECTURES | LAB | SMTP HEALTH | HTML5 | CONTACT
Copyright © 2024 Pierre-Philipp Braun