Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 7 Jun 2023 22:37:25 GMT
From:      Kirk McKusick <mckusick@FreeBSD.org>
To:        src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org
Subject:   git: 77cbed11b2ea - stable/13 - Do not try to adjust a directory depth when its reconnection is declined.
Message-ID:  <202306072237.357MbPTO082204@gitrepo.freebsd.org>

next in thread | raw e-mail | index | archive | help
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",



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202306072237.357MbPTO082204>