Skip to contentSkip to conversation

New: Roll-Forward recovery recover deleted file

f2fs-dev [email protected] 1 participant 3 messages Sep 28, 2021 – Dec 12, 2021

lore
Share & tools
lore
#0 lore raw

https://bugzilla.kernel.org/show_bug.cgi?id=214551

Bug ID: 214551
Summary: Roll-Forward recovery recover deleted file
Product: File System
Version: 2.5
Kernel Version: 5.4
Hardware: ARM
OS: Linux
Tree: Mainline
Status: NEW
Severity: normal
Priority: P1
Component: f2fs
Assignee: [email protected]
Reporter: [email protected]
Regression: No

reproduce step:
dd if=/dev/zero of=test count=256
fsync test
rm test
Trigger an abnormal reboot immediately.

After successful reboot, from dmesg, we can see f2fs recover this deleted test file:

[    4.421237] F2FS-fs (dm-10): recover_inode: ino = 652d, name = test, inline
= 21
[    4.421407] F2FS-fs (dm-10): recover_dentry: ino = 652d, name = test, dir =

5985, err = 0

Signature · 9 lines
You may reply to this email to add a comment.

You are receiving this mail because:
You are watching the assignee of the bug.

_______________________________________________
Linux-f2fs-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/linux-f2fs-devel
#1 lore raw

[f2fs-dev] [Bug 214551] Roll-Forward recovery recover deleted file

https://bugzilla.kernel.org/show_bug.cgi?id=214551

Chao Yu ([email protected]) changed:

What |Removed |Added
----------------------------------------------------------------------------

             Status|NEW                         |ASSIGNED
                 CC|                            |[email protected]

--- Comment #1 from Chao Yu ([email protected]) ---
(In reply to li jiazi from comment #0)

Quoted 8 lines

reproduce step:
dd if=/dev/zero of=test count=256
fsync test
rm test
Trigger an abnormal reboot immediately.

After successful reboot, from dmesg, we can see f2fs recover this deleted test file:

If you want to see the status that file has been deleted after recovery, you must call fsync on parent directory of test before SPO.

Signature · 9 lines
You may reply to this email to add a comment.

You are receiving this mail because:
You are watching the assignee of the bug.

_______________________________________________
Linux-f2fs-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/linux-f2fs-devel
#2 lore raw

[f2fs-dev] [Bug 214551] Roll-Forward recovery recover deleted file

In reply to [email protected]

https://bugzilla.kernel.org/show_bug.cgi?id=214551

Chao Yu ([email protected]) changed:

What |Removed |Added
----------------------------------------------------------------------------

             Status|ASSIGNED                    |RESOLVED
         Resolution|---                         |ANSWERED
Signature · 9 lines
You may reply to this email to add a comment.

You are receiving this mail because:
You are watching the assignee of the bug.

_______________________________________________
Linux-f2fs-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/linux-f2fs-devel