Bug 217605
Summary: | unttached inode after power cut with orphan file feature enabled | ||
---|---|---|---|
Product: | File System | Reporter: | Zhihao Cheng (chengzhihao1) |
Component: | ext4 | Assignee: | fs_ext4 (fs_ext4) |
Status: | NEW --- | ||
Severity: | normal | ||
Priority: | P3 | ||
Hardware: | All | ||
OS: | Linux | ||
Kernel Version: | Subsystem: | ||
Regression: | No | Bisected commit-id: | |
Attachments: |
diff
test.sh |
Description
Zhihao Cheng
2023-06-28 13:19:02 UTC
reproducer: 1. ./test.sh [ 73.704796] inject err for ino 13 creation [ 73.705523] wait commit journal [ 75.741472] commit trans [ 76.550550] reboot: Restarting system 2. mount /dev/sda temp umount temp [ 82.683096] orphan replay: reserve 13 3. fsck.ext4 -fn /dev/sda e2fsck 1.47.0 (5-Feb-2023) Pass 1: Checking inodes, blocks, and sizes Pass 2: Checking directory structure Pass 3: Checking directory connectivity Pass 4: Checking reference counts Unattached zero-length inode 13. Clear? no Unattached inode 13 Connect to /lost+found? no Pass 5: Checking group summary information /dev/sda: ********** WARNING: Filesystem still has errors ********** /dev/sda: 13/25584 files (0.0% non-contiguous), 12113/102400 block Created attachment 304497 [details]
diff
Created attachment 304498 [details]
test.sh
(In reply to Zhihao Cheng from comment #1) Apply diff first of all > reproducer: > 1. ./test.sh > [ 73.704796] inject err for ino 13 creation > [ 73.705523] wait commit journal > [ 75.741472] commit trans > [ 76.550550] reboot: Restarting system > > 2. mount /dev/sda temp > umount temp > [ 82.683096] orphan replay: reserve 13 > > 3. fsck.ext4 -fn /dev/sda > e2fsck 1.47.0 (5-Feb-2023) > Pass 1: Checking inodes, blocks, and sizes > Pass 2: Checking directory structure > Pass 3: Checking directory connectivity > Pass 4: Checking reference counts > Unattached zero-length inode 13. Clear? no > > Unattached inode 13 > Connect to /lost+found? no > > Pass 5: Checking group summary information > > /dev/sda: ********** WARNING: Filesystem still has errors ********** > > /dev/sda: 13/25584 files (0.0% non-contiguous), 12113/102400 block |