all lists on lists.proxmox.com
 help / color / mirror / Atom feed
From: "Fabian Grünbichler" <f.gruenbichler@proxmox.com>
To: Proxmox Backup Server development discussion
	<pbs-devel@lists.proxmox.com>,
	 Dietmar Maurer <dietmar@proxmox.com>
Subject: Re: [pbs-devel] [PATCH proxmox v2] sys: pass create options as reference
Date: Wed, 29 May 2024 12:22:51 +0200 (CEST)	[thread overview]
Message-ID: <103715843.2056.1716978171391@webmail.proxmox.com> (raw)
In-Reply-To: <20240529095502.938695-1-dietmar@proxmox.com>


> Dietmar Maurer <dietmar@proxmox.com> hat am 29.05.2024 11:55 CEST geschrieben:
> 
>  
> Signed-off-by: Dietmar Maurer <dietmar@proxmox.com>
> ---
> 
> Changes in v2: change everywhere, so "cargo build --all --all-features" works again

what about proxmox-backup (and potentially other crates using it)?

I guess we could make a note for the next proxmox-sys bump we do for other reasons, but bumping half the world just for this seems a lot of work for little gain?

> 
>  proxmox-acme-api/src/account_config.rs        |  2 +-
>  proxmox-acme-api/src/config.rs                |  2 +-
>  proxmox-openid/src/auth_state.rs              |  4 ++--
>  .../src/filesystem_helpers.rs                 | 10 +++++-----
>  proxmox-rest-server/src/api_config.rs         |  4 ++--
>  proxmox-rest-server/src/daemon.rs             |  2 +-
>  proxmox-rest-server/src/file_logger.rs        |  2 +-
>  proxmox-rest-server/src/lib.rs                |  2 +-
>  proxmox-rest-server/src/worker_task.rs        | 10 +++++-----
>  proxmox-rrd/src/cache.rs                      |  4 ++--
>  proxmox-rrd/src/cache/journal.rs              |  4 ++--
>  proxmox-rrd/src/cache/rrd_map.rs              |  4 ++--
>  proxmox-rrd/src/rrd.rs                        |  2 +-
>  proxmox-subscription/src/files.rs             |  4 ++--
>  proxmox-sys/src/fs/dir.rs                     | 20 +++++++++----------
>  proxmox-sys/src/fs/file.rs                    |  8 ++++----
>  proxmox-sys/src/logrotate.rs                  |  2 +-
>  .../src/dns/resolv_conf.rs                    |  2 +-
>  18 files changed, 44 insertions(+), 44 deletions(-)
> 

[..]

> diff --git a/proxmox-subscription/src/files.rs b/proxmox-subscription/src/files.rs
> index 37008f4a..f0ff9bf4 100644
> --- a/proxmox-subscription/src/files.rs
> +++ b/proxmox-subscription/src/files.rs
> @@ -127,7 +127,7 @@ pub fn write_subscription<P: AsRef<Path>>(
>          format!("{}\n{}\n{}\n", info.key.as_ref().unwrap(), csum, encoded)
>      };
>  
> -    replace_file(path, raw.as_bytes(), file_opts, true)?;
> +    replace_file(path, raw.as_bytes(), &file_opts, true)?;
>  
>      Ok(())
>  }
> @@ -152,7 +152,7 @@ pub fn update_apt_auth<P: AsRef<Path>>(

this at least itself takes it as non-ref, shouldn't that be updated as well then?

>              let conf = format!("machine {url}\n login {}\n password {}\n", key, password,);
>  
>              // we use a namespaced .conf file, so just overwrite..
> -            replace_file(path, conf.as_bytes(), file_opts, true)
> +            replace_file(path, conf.as_bytes(), &file_opts, true)
>                  .map_err(|e| format_err!("Error saving apt auth config - {}", e))?;
>          }
>          _ => match std::fs::remove_file(path) {


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


  reply	other threads:[~2024-05-29 10:23 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-05-29  9:55 Dietmar Maurer
2024-05-29 10:22 ` Fabian Grünbichler [this message]
2024-05-29 10:48   ` Dietmar Maurer
2024-05-29 12:44   ` Dietmar Maurer
2024-06-03 12:21     ` Fabian Grünbichler

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=103715843.2056.1716978171391@webmail.proxmox.com \
    --to=f.gruenbichler@proxmox.com \
    --cc=dietmar@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