Skip to content

Commit

Permalink
Changed flags for _ltfs_search_index_wp
Browse files Browse the repository at this point in the history
  • Loading branch information
Missael Palacios committed Aug 27, 2024
1 parent 29b6f34 commit 627484b
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/libltfs/ltfs.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down Expand Up @@ -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;

Expand Down

0 comments on commit 627484b

Please sign in to comment.