30 lines
1.4 KiB
Diff
30 lines
1.4 KiB
Diff
|
From 60f500e59bb92fa80a032f663ee889624fa4a95d Mon Sep 17 00:00:00 2001
|
||
|
From: Michal Reznik <mreznik@redhat.com>
|
||
|
Date: Thu, 6 Jun 2024 18:17:29 +0200
|
||
|
Subject: [PATCH 83/92] Skip "directory-hash" files
|
||
|
|
||
|
They are not owned by any package and can dynamically grow to
|
||
|
a huge amount of files causing hitting open files limit
|
||
|
---
|
||
|
.../actors/targetuserspacecreator/libraries/userspacegen.py | 4 ++++
|
||
|
1 file changed, 4 insertions(+)
|
||
|
|
||
|
diff --git a/repos/system_upgrade/common/actors/targetuserspacecreator/libraries/userspacegen.py b/repos/system_upgrade/common/actors/targetuserspacecreator/libraries/userspacegen.py
|
||
|
index 4a61ccb4..7d9c4d64 100644
|
||
|
--- a/repos/system_upgrade/common/actors/targetuserspacecreator/libraries/userspacegen.py
|
||
|
+++ b/repos/system_upgrade/common/actors/targetuserspacecreator/libraries/userspacegen.py
|
||
|
@@ -313,6 +313,10 @@ def _get_files_owned_by_rpms(context, dirpath, pkgs=None, recursive=False):
|
||
|
for root, _, files in os.walk(searchdir):
|
||
|
for filename in files:
|
||
|
relpath = os.path.relpath(os.path.join(root, filename), searchdir)
|
||
|
+ # "directory-hash" files are not owned by any package and can dynamically
|
||
|
+ # grow to a huge amount of files causing hitting open files limit
|
||
|
+ if 'directory-hash' in relpath:
|
||
|
+ continue
|
||
|
file_list.append(relpath)
|
||
|
else:
|
||
|
file_list = os.listdir(searchdir)
|
||
|
--
|
||
|
2.42.0
|
||
|
|