Re: [PATCH] generic/050: handle f2fs as nojournal filesystem
Zorro Lang <[email protected]>
| Newsgroups | org.kernel.vger.fstests,net.sourceforge.lists.linux-f2fs-devel |
|---|---|
| Message-ID | <aeER8AIJZecuTLIc@zlang-mailbox> |
On Tue, Apr 14, 2026 at 12:57:02AM -0700, Christoph Hellwig wrote: > On Fri, Apr 10, 2026 at 01:18:20PM +0000, Jan Prusakowski wrote: > > F2FS uses a checkpoint mechanism for metadata consistency rather than a > > traditional journal. Roll-forward recovery is only needed if there are > > fsync'd files since the last checkpoint. > > > > In this test case, files are created without fsync, so there is no > > roll-forward data to replay during mount. > > > > Therefore, F2FS does not need to write to the device to recover, and > > successfully mounts on the read-only block device. Thus, it should be > > treated as nojournal in this case. > > This looks ok, but I always wonder if we want an opt-in for this > "journaling" behavior and/or define it clear in common/. _has_traditional_journal ? _has_journal_replay ? :-D