commit:     b30b7e9c6caa304c7a718f73ba158a0639937e26
Author:     Kerin Millar <kfm <AT> plushkava <DOT> net>
AuthorDate: Mon Jun  9 22:24:49 2025 +0000
Commit:     Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Wed Jun 11 03:26:21 2025 +0000
URL:        https://gitweb.gentoo.org/proj/portage.git/commit/?id=b30b7e9c

estrip: relocate a comment pertaining to inode collection

Recently, the position of the get_inode_number() function was changed,
along with an adjacent comment. Since the comment doesn't directly
concern the function, reposition it once more.

Signed-off-by: Kerin Millar <kfm <AT> plushkava.net>
Signed-off-by: Sam James <sam <AT> gentoo.org>

 bin/estrip | 7 +++----
 1 file changed, 3 insertions(+), 4 deletions(-)

diff --git a/bin/estrip b/bin/estrip
index 07d29ec798..1ee391c96e 100755
--- a/bin/estrip
+++ b/bin/estrip
@@ -275,10 +275,6 @@ process_ar() {
 }
 
 get_inode_number() {
-       # Since strip creates a new inode, we need to know the initial set of
-       # inodes in advance, so that we can avoid interference due to trying
-       # to strip the same (hardlinked) file multiple times in parallel.
-       # See bug #421099.
        if  [[ ${USERLAND} == BSD ]]; then
                get_inode_number() {
                        stat -f '%i' "$1"
@@ -553,6 +549,9 @@ fi
 
 cd "${tmpdir}/inodes" || die "cd failed unexpectedly"
 
+# Since strip creates a new inode, we need to know the initial set of inodes in
+# advance, so that we can avoid interference due to trying to strip the same
+# (hardlinked) file multiple times in parallel. See bug #421099.
 if (( do_prepstrip )); then
        while read -r x ; do
                inode_link=$(get_inode_number "${x}") || die "stat failed 
unexpectedly"

Reply via email to