From 627484b2b0bbcdaac30281560a1a52601823336b Mon Sep 17 00:00:00 2001 From: Missael Palacios Date: Mon, 26 Aug 2024 20:20:16 -0600 Subject: [PATCH] Changed flags for _ltfs_search_index_wp --- src/libltfs/ltfs.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/libltfs/ltfs.c b/src/libltfs/ltfs.c index baa7aae..7b74b37 100644 --- a/src/libltfs/ltfs.c +++ b/src/libltfs/ltfs.c @@ -1673,7 +1673,8 @@ int ltfs_mount(bool force_full, bool deep_recovery, bool recover_extra, bool rec (unsigned long long)vol->dp_coh.volume_change_ref, (unsigned long long)volume_change_ref); - ret = _ltfs_search_index_wp(recover_symlink, false, &seekpos, vol); + /* Index of IP could be corrupted. So set skip flag */ + ret = _ltfs_search_index_wp(recover_symlink, true, &seekpos, vol); if (ret < 0) goto out_unlock; @@ -1702,8 +1703,7 @@ int ltfs_mount(bool force_full, bool deep_recovery, bool recover_extra, bool rec (unsigned long long)vol->dp_coh.volume_change_ref, (unsigned long long)volume_change_ref); - /* Index of IP could be corrupted. So set skip flag */ - ret = _ltfs_search_index_wp(recover_symlink, true, &seekpos, vol); + ret = _ltfs_search_index_wp(recover_symlink, false, &seekpos, vol); if (ret < 0) goto out_unlock;