resize.f2fs fails with "Error: Device size is not sufficient for F2FS volume, more segment needed"

Bug #2071645 reported by Andreas Kübrich
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
f2fs-tools (Ubuntu)
New
Undecided
Unassigned

Bug Description

Terminal transcript of a simple reproduction:

kuebi@twobuntu:/tmp$ truncate -s 512M testfs # create a (sparse) file to hold a test filesystem
kuebi@twobuntu:/tmp$ mkfs.f2fs testfs

 F2FS-tools: mkfs.f2fs Ver: 1.14.0 (2020-08-24)

Info: Disable heap-based policy
Info: Debug level = 0
Info: Trim is enabled
Info: Segments per section = 1
Info: Sections per zone = 1
Info: sector size = 512
Info: total sectors = 1048576 (512 MB)
Info: zone aligned segment0 blkaddr: 512
Info: format version with
  "Linux version 6.5.0-35-generic (buildd@lcy02-amd64-079) (x86_64-linux-gnu-gcc-12 (Ubuntu 12.3.0-1ubuntu1~22.04) 12.3.0, GNU ld (GNU Binutils for Ubuntu) 2.38) #35~22.04.1-Ubuntu SMP PREEMPT_DYNAMIC Tue May 7 09:00:52 UTC 2"
Info: [testfs] Discarding device
Info: Overprovision ratio = 10.000%
Info: Overprovision segments = 50 (GC reserved = 28)
Info: format successful
kuebi@twobuntu:/tmp$ truncate -s 1G testfs # grow the backing storage
kuebi@twobuntu:/tmp$ resize.f2fs testfs # try to resize to fit
Info: Segments per section = 1
Info: Sections per zone = 1
Info: sector size = 512
Info: total sectors = 2097152 (1024 MB)
Info: MKFS version
  "Linux version 6.5.0-35-generic (buildd@lcy02-amd64-079) (x86_64-linux-gnu-gcc-12 (Ubuntu 12.3.0-1ubuntu1~22.04) 12.3.0, GNU ld (GNU Binutils for Ubuntu) 2.38) #35~22.04.1-Ubuntu SMP PREEMPT_DYNAMIC Tue May 7 09:00:52 UTC 2"
Info: FSCK version
  from "Linux version 6.5.0-35-generic (buildd@lcy02-amd64-079) (x86_64-linux-gnu-gcc-12 (Ubuntu 12.3.0-1ubuntu1~22.04) 12.3.0, GNU ld (GNU Binutils for Ubuntu) 2.38) #35~22.04.1-Ubuntu SMP PREEMPT_DYNAMIC Tue May 7 09:00:52 UTC 2"
    to "Linux version 6.5.0-35-generic (buildd@lcy02-amd64-079) (x86_64-linux-gnu-gcc-12 (Ubuntu 12.3.0-1ubuntu1~22.04) 12.3.0, GNU ld (GNU Binutils for Ubuntu) 2.38) #35~22.04.1-Ubuntu SMP PREEMPT_DYNAMIC Tue May 7 09:00:52 UTC 2"
Info: superblock features = 0 :
Info: superblock encrypt level = 0, salt = 00000000000000000000000000000000
Info: total FS sectors = 1048576 (512 MB)
Info: CKPT version = 420523bb
Info: Duplicate valid checkpoint to mirror position 512 -> 1024
Info: Write valid nat_bits in checkpoint
 Error: Device size is not sufficient for F2FS volume, more segment needed =19508kuebi@twobuntu:/tmp$

ProblemType: Bug
DistroRelease: Ubuntu 22.04
Package: f2fs-tools 1.14.0-2build1
ProcVersionSignature: Ubuntu 6.5.0-35.35~22.04.1-generic 6.5.13
Uname: Linux 6.5.0-35-generic x86_64
ApportVersion: 2.20.11-0ubuntu82.5
Architecture: amd64
CasperMD5CheckResult: pass
CurrentDesktop: ubuntu:GNOME
Date: Mon Jul 1 19:39:01 2024
InstallationDate: Installed on 2021-07-14 (1083 days ago)
InstallationMedia: Ubuntu 21.04 "Hirsute Hippo" - Release amd64 (20210420)
SourcePackage: f2fs-tools
UpgradeStatus: Upgraded to jammy on 2022-05-14 (779 days ago)
modified.conffile..etc.init.d.apport: [modified]
mtime.conffile..etc.init.d.apport: 2021-03-24T15:58:15

Revision history for this message
Andreas Kübrich (akuebrich) wrote :
description: updated
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.