public inbox for pbs-devel@lists.proxmox.com
 help / color / mirror / Atom feed
From: Christian Ebner <c.ebner@proxmox.com>
To: pbs-devel@lists.proxmox.com
Subject: [pbs-devel] [PATCH pxar] format: Document source of format const values
Date: Fri, 28 Apr 2023 10:54:43 +0200	[thread overview]
Message-ID: <20230428085444.1676443-1-c.ebner@proxmox.com> (raw)

Signed-off-by: Christian Ebner <c.ebner@proxmox.com>
---
 examples/mk-format-hashes.rs | 1 +
 src/format/mod.rs            | 1 +
 2 files changed, 2 insertions(+)

diff --git a/examples/mk-format-hashes.rs b/examples/mk-format-hashes.rs
index 4ab6fff..1ad606c 100644
--- a/examples/mk-format-hashes.rs
+++ b/examples/mk-format-hashes.rs
@@ -54,6 +54,7 @@ const CONSTANTS: &[(&str, &str, &str)] = &[
 ];
 
 fn main() {
+    println!("// Generated by `cargo run --example mk-format-hashes`");
     for constant in CONSTANTS {
         if !constant.0.is_empty() {
             println!("/// {}", constant.0);
diff --git a/src/format/mod.rs b/src/format/mod.rs
index 742e126..72a193c 100644
--- a/src/format/mod.rs
+++ b/src/format/mod.rs
@@ -78,6 +78,7 @@ pub mod mode {
     pub const ISVTX  : u64 = 0o0001000;
 }
 
+// Generated by `cargo run --example mk-format-hashes`
 /// Beginning of an entry (current version).
 pub const PXAR_ENTRY: u64 = 0xd5956474e588acef;
 /// Previous version of the entry struct
-- 
2.30.2





             reply	other threads:[~2023-04-28  8:55 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-04-28  8:54 Christian Ebner [this message]
2023-05-17  9:27 ` [pbs-devel] applied: " Thomas Lamprecht

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=20230428085444.1676443-1-c.ebner@proxmox.com \
    --to=c.ebner@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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
Service provided by Proxmox Server Solutions GmbH | Privacy | Legal