git: 77cbed11b2ea - stable/13 - Do not try to adjust a directory depth when its reconnection is declined.
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Wed, 07 Jun 2023 22:37:25 UTC
The branch stable/13 has been updated by mckusick:
URL: https://cgit.FreeBSD.org/src/commit/?id=77cbed11b2eabaa811963c60e83e83fd6677fca3
commit 77cbed11b2eabaa811963c60e83e83fd6677fca3
Author: Kirk McKusick <mckusick@FreeBSD.org>
AuthorDate: 2023-05-27 05:55:11 +0000
Commit: Kirk McKusick <mckusick@FreeBSD.org>
CommitDate: 2023-06-07 22:36:39 +0000
Do not try to adjust a directory depth when its reconnection is declined.
Sponsored by: The FreeBSD Foundation
(cherry picked from commit 49943856eb2710c6a6debdfa40d89d31d3fdb8ea)
---
sbin/fsck_ffs/pass3.c | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/sbin/fsck_ffs/pass3.c b/sbin/fsck_ffs/pass3.c
index b9d24f18371b..49cb43620392 100644
--- a/sbin/fsck_ffs/pass3.c
+++ b/sbin/fsck_ffs/pass3.c
@@ -100,10 +100,10 @@ pass3(void)
if (linkup(orphan, inp->i_dotdot, NULL)) {
inp->i_parent = inp->i_dotdot = lfdir;
inoinfo(lfdir)->ino_linkcnt--;
+ inoinfo(orphan)->ino_state = DFOUND;
+ check_dirdepth(inp);
+ propagate();
}
- inoinfo(orphan)->ino_state = DFOUND;
- check_dirdepth(inp);
- propagate();
continue;
}
pfatal("ORPHANED DIRECTORY LOOP DETECTED I=%lu",