Sample Header Ad - 728x90

fstrim: /: FITRIM ioctl failed: Structure needs cleaning

1 vote
1 answer
1918 views
On my Debian sid with custom 5.17.0-rc1 kernel installed on my new (< 1 month) SSD nvme WD SN850 my root partition is formatted as f2fs(v 1.14) I get fstrim: /: FITRIM ioctl failed: Structure needs cleaning fsck is OK no problems found and OS is running without problems
sudo fsck.f2fs /dev/nvme0n1p2
Info: Segments per section = 1
Info: Sections per zone = 1
Info: sector size = 512
Info: total sectors = 976566287 (476839 MB)
Info: MKFS version
  "Linux version 5.5.0-rc6 (u1@jeanordi) (gcc version 9.2.1 20191130 (Debian 9.2.1-21)) #1 SMP PREEMPT Thu Jan 16 00:24:17 CET 2020"
Info: FSCK version
  from "Linux version 5.5.0-rc6 (u1@jeanordi) (gcc version 9.2.1 20191130 (Debian 9.2.1-21)) #1 SMP PREEMPT Thu Jan 16 00:24:17 CET 2020"
    to "Linux version 5.5.0-rc6 (u1@jeanordi) (gcc version 9.2.1 20191130 (Debian 9.2.1-21)) #1 SMP PREEMPT Thu Jan 16 00:24:17 CET 2020"
Info: superblock features = 0 : 
Info: superblock encrypt level = 0, salt = 00000000000000000000000000000000
Info: total FS sectors = 976566280 (476839 MB)
Info: CKPT version = 1d9fb4bd
Info: checkpoint state = 55 :  crc fsck compacted_summary unmount

[FSCK] Unreachable nat entries                        [Ok..] [0x0]
[FSCK] SIT valid block bitmap checking                [Ok..]
[FSCK] Hard link checking for regular file            [Ok..] [0xb]
[FSCK] valid_block_count matching with CP             [Ok..] [0x44993b]
[FSCK] valid_node_count matching with CP (de lookup)  [Ok..] [0x16c2c]
[FSCK] valid_node_count matching with CP (nat lookup) [Ok..] [0x16c2c]
[FSCK] valid_inode_count matched with CP              [Ok..] [0x15d7c]
[FSCK] free segment_count matched with CP             [Ok..] [0x374d7]
[FSCK] next block offset is free                      [Ok..]
[FSCK] fixing SIT types
[FSCK] other corrupted bugs                           [Ok..]

Done: 2.975766 secs
Asked by Jean Molinier (63 rep)
Feb 4, 2022, 05:41 AM
Last activity: Feb 5, 2022, 03:24 AM