all lists on lists.proxmox.com
 help / color / mirror / Atom feed
From: Maximiliano Sandoval <m.sandoval@proxmox.com>
To: pbs-devel@lists.proxmox.com
Subject: [pbs-devel] [PATCH backup 4/4] fs: update comment to reflect usage of C-string literals
Date: Thu, 20 Jun 2024 11:00:08 +0200	[thread overview]
Message-ID: <20240620090008.1823043-4-m.sandoval@proxmox.com> (raw)
In-Reply-To: <20240620090008.1823043-1-m.sandoval@proxmox.com>

Signed-off-by: Maximiliano Sandoval <m.sandoval@proxmox.com>
---
 src/tools/fs.rs | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/tools/fs.rs b/src/tools/fs.rs
index 4eab0d56..78ecc3b8 100644
--- a/src/tools/fs.rs
+++ b/src/tools/fs.rs
@@ -13,8 +13,8 @@ pub async fn fs_info(path: PathBuf) -> Result<proxmox_sys::fs::FileSystemInforma
 
 /// `proxmox_sys::fs::fs_into` wrapped in a `spawn_blocking` call.
 ///
-/// We cannot use `&'static CStr` in the above as we get from `proxmox_lang::c_str!` because
-/// `NixPath` is only implemented directly on `CStr`, not on `&CStr`.
+/// We cannot use `&'static CStr` in the above as we get from a C-string literal
+/// because `NixPath` is only implemented directly on `CStr`, not on `&CStr`.
 pub async fn fs_info_static(
     path: &'static CStr,
 ) -> Result<proxmox_sys::fs::FileSystemInformation, Error> {
-- 
2.39.2



_______________________________________________
pbs-devel mailing list
pbs-devel@lists.proxmox.com
https://lists.proxmox.com/cgi-bin/mailman/listinfo/pbs-devel




  parent reply	other threads:[~2024-06-20  9:00 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-06-20  9:00 [pbs-devel] [PATCH backup 1/4] cargo: use default-features Maximiliano Sandoval
2024-06-20  9:00 ` [pbs-devel] [PATCH backup 2/4] use C-string literals Maximiliano Sandoval
2024-06-20  9:00 ` [pbs-devel] [PATCH backup 3/4] datastore: use std::mem::ofset_of! Maximiliano Sandoval
2024-06-20  9:00 ` Maximiliano Sandoval [this message]
2024-06-20 10:27 ` [pbs-devel] applied-series: [PATCH backup 1/4] cargo: use default-features Wolfgang Bumiller

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20240620090008.1823043-4-m.sandoval@proxmox.com \
    --to=m.sandoval@proxmox.com \
    --cc=pbs-devel@lists.proxmox.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.
Service provided by Proxmox Server Solutions GmbH | Privacy | Legal