From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from firstgate.proxmox.com (firstgate.proxmox.com [IPv6:2a01:7e0:0:424::9]) by lore.proxmox.com (Postfix) with ESMTPS id 185431FF2C6 for ; Wed, 10 Jul 2024 15:27:55 +0200 (CEST) Received: from firstgate.proxmox.com (localhost [127.0.0.1]) by firstgate.proxmox.com (Proxmox) with ESMTP id B3A63A1E6; Wed, 10 Jul 2024 15:28:11 +0200 (CEST) From: Christoph Heiss To: pve-devel@lists.proxmox.com Date: Wed, 10 Jul 2024 15:27:41 +0200 Message-ID: <20240710132756.1149508-3-c.heiss@proxmox.com> X-Mailer: git-send-email 2.45.1 In-Reply-To: <20240710132756.1149508-1-c.heiss@proxmox.com> References: <20240710132756.1149508-1-c.heiss@proxmox.com> MIME-Version: 1.0 X-SPAM-LEVEL: Spam detection results: 0 AWL 0.009 Adjusted score from AWL reputation of From: address BAYES_00 -1.9 Bayes spam probability is 0 to 1% DMARC_MISSING 0.1 Missing DMARC policy KAM_DMARC_STATUS 0.01 Test Rule for DKIM or SPF Failure with Strict Alignment SPF_HELO_NONE 0.001 SPF: HELO does not publish an SPF Record SPF_PASS -0.001 SPF: sender matches SPF record URIBL_BLOCKED 0.001 ADMINISTRATOR NOTICE: The query to URIBL was blocked. See http://wiki.apache.org/spamassassin/DnsBlocklists#dnsbl-block for more information. [proxmox-auto-installer.rs, main.rs, partition.rs] Subject: [pve-devel] [PATCH installer 02/14] tree-wide: fix some typos X-BeenThere: pve-devel@lists.proxmox.com X-Mailman-Version: 2.1.29 Precedence: list List-Id: Proxmox VE development discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Reply-To: Proxmox VE development discussion Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Errors-To: pve-devel-bounces@lists.proxmox.com Sender: "pve-devel" No functional changes. Signed-off-by: Christoph Heiss --- .../src/bin/proxmox-auto-installer.rs | 2 +- proxmox-chroot/src/main.rs | 2 +- proxmox-fetch-answer/src/fetch_plugins/partition.rs | 12 ++++++------ 3 files changed, 8 insertions(+), 8 deletions(-) diff --git a/proxmox-auto-installer/src/bin/proxmox-auto-installer.rs b/proxmox-auto-installer/src/bin/proxmox-auto-installer.rs index 9fcec1e..bf6f8fb 100644 --- a/proxmox-auto-installer/src/bin/proxmox-auto-installer.rs +++ b/proxmox-auto-installer/src/bin/proxmox-auto-installer.rs @@ -57,7 +57,7 @@ fn auto_installer_setup(in_test_mode: bool) -> Result<(Answer, UdevInfo)> { fn main() -> ExitCode { if let Err(err) = init_log() { - panic!("could not initilize logging: {}", err); + panic!("could not initialize logging: {}", err); } let in_test_mode = match env::args().nth(1).as_deref() { diff --git a/proxmox-chroot/src/main.rs b/proxmox-chroot/src/main.rs index 519e3f3..7885ce7 100644 --- a/proxmox-chroot/src/main.rs +++ b/proxmox-chroot/src/main.rs @@ -14,7 +14,7 @@ static BINDMOUNTS: [&str; 4] = ["dev", "proc", "run", "sys"]; const TARGET_DIR: &str = "/target"; const ZPOOL_NAME: &str = "rpool"; -/// Helper tool to prepare eveything to `chroot` into an installation +/// Helper tool to prepare everything to `chroot` into an installation #[derive(Parser, Debug)] #[command(author, version, about, long_about = None)] struct Cli { diff --git a/proxmox-fetch-answer/src/fetch_plugins/partition.rs b/proxmox-fetch-answer/src/fetch_plugins/partition.rs index 0479c8f..4472922 100644 --- a/proxmox-fetch-answer/src/fetch_plugins/partition.rs +++ b/proxmox-fetch-answer/src/fetch_plugins/partition.rs @@ -45,20 +45,20 @@ fn path_exists_logged(file_name: &str, search_path: &str) -> Option { /// Searches for upper and lower case existence of the partlabel in the search_path /// -/// # Arguemnts +/// # Arguments /// * `partlabel_source` - Partition Label, used as upper and lower case -/// * `search_path` - Path where to search for the partiiton label +/// * `search_path` - Path where to search for the partition label fn scan_partlabels(partlabel: &str, search_path: &str) -> Result { let partlabel_upper_case = partlabel.to_uppercase(); if let Some(path) = path_exists_logged(&partlabel_upper_case, search_path) { - info!("Found partition with label '{partlabel_upper_case}'"); - return Ok(path); + info!("Found partition with label '{partlabel_upper_case}'"); + return Ok(path); } let partlabel_lower_case = partlabel.to_lowercase(); if let Some(path) = path_exists_logged(&partlabel_lower_case, search_path) { - info!("Found partition with label '{partlabel_lower_case}'"); - return Ok(path); + info!("Found partition with label '{partlabel_lower_case}'"); + return Ok(path); } bail!("Could not detect upper or lower case labels for '{partlabel}'"); -- 2.45.1 _______________________________________________ pve-devel mailing list pve-devel@lists.proxmox.com https://lists.proxmox.com/cgi-bin/mailman/listinfo/pve-devel