On Sunday, 27 April 2025 11:45:59 EEST Chao Yu wrote: > On 4/25/25 09:36, nl6720 via Linux-f2fs-devel wrote: > > Some drives operate in "512e" configuration with their logical block > > size set to 512 bytes for legacy compatibility reasons while providing > > a more optimal 4096 byte value as the physical block size. > > > > Since the physical block size is the smallest unit a physical storage > > device can write atomically, prefer it over the logical block size. > > > > Closes: https://github.com/jaegeuk/f2fs-tools/issues/29 > > f2fs uses PAGE_SIZE as block size, commonly it's 4096 rather than 512?
The thing mkfs.f2fs calls "sector size" in its output is 512 on 512e drives instead of 4096. E.g.: F2FS-tools: mkfs.f2fs Ver: 1.16.0 (2023-04-11) Info: Disable heap-based policy Info: Debug level = 0 Info: Trim is enabled Info: [/dev/disk/by-partlabel/512e] Disk Model: QEMU HARDDISK Info: Segments per section = 1 Info: Sections per zone = 1 Info: sector size = 512 Info: total sectors = 124997632 (61034 MB) Info: zone aligned segment0 blkaddr: 512 Info: format version with "Linux version 6.13.8-arch1-1 (linux@archlinux) (gcc (GCC) 14.2.1 20250207, GNU ld (GNU Binutils) 2.44) #1 SMP PREEMPT_DYNAMIC Sun, 23 Mar 2025 17:17:30 +0000" Info: [/dev/disk/by-partlabel/512e] Discarding device Info: This device doesn't support BLKSECDISCARD Info: Discarded 61034 MB Info: Overprovision ratio = 0.590% Info: Overprovision segments = 179 (GC reserved = 176) Info: format successful nl6720 _______________________________________________ Linux-f2fs-devel mailing list Linux-f2fs-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/linux-f2fs-devel