[pve-devel] [PATCH proxmox-offline-mirror v2 2/5] pool: drop superfluous check for impossible path combination

Stoiko Ivanov s.ivanov at proxmox.com
Tue Jul 9 12:47:02 CEST 2024


commit c598cb154ef3fa6e1a8af840ded40f713d973d3d changed the pool
layout to have the pool directory (.pool for a mirror) on the same
level as the link directory (instead of below), to enable pool-sharing
across multiple mirrors.

the condition will never be true, drop the if statement to avoid
confusion in the future.

Signed-off-by: Stoiko Ivanov <s.ivanov at proxmox.com>
---
 src/pool.rs | 3 ---
 1 file changed, 3 deletions(-)

diff --git a/src/pool.rs b/src/pool.rs
index f20f5ea..611dcc9 100644
--- a/src/pool.rs
+++ b/src/pool.rs
@@ -265,9 +265,6 @@ impl PoolLockGuard<'_> {
 
         for link_entry in WalkDir::new(&self.pool.link_dir).into_iter() {
             let path = link_entry?.into_path();
-            if self.path_in_pool(&path) {
-                continue;
-            };
 
             let meta = path.metadata()?;
             if !meta.is_file() {
-- 
2.39.2





More information about the pve-devel mailing list