Skip to contentSkip to conversation

btrfs: print message when tree-log replay starts

PATCH In review David Sterba 3 participants 3 messages Feb 7, 2020 – Feb 10, 2020

Subsystems (2)
lore
Share & tools
lore

David Sterba

author maintainer
#0 lore raw

PATCH v2 1/1 btrfs: print message when tree-log replay starts

There's no logged information about tree-log replay although this is something that points to previous unclean unmount. Other filesystems report that as well.

---

* add missing fs_info to btrfs_info

 fs/btrfs/disk-io.c | 1 +
 1 file changed, 1 insertion(+)
fs/btrfs/disk-io.c +1 -0
index 8fee95916be4..db16014abd64 100644
@@ -3224,6 +3224,7 @@ int __cold open_ctree(struct super_block *sb, struct btrfs_fs_devices *fs_device
 	/* do not make disk changes in broken FS or nologreplay is given */
 	if (btrfs_super_log_root(disk_super) != 0 &&
 	    !btrfs_test_opt(fs_info, NOLOGREPLAY)) {
+		btrfs_info(fs_info, "start tree-log replay");
 		ret = btrfs_replay_log(fs_info, fs_devices);
 		if (ret) {
 			err = ret;
Signature · 1 line
2.25.0