From: Dominik Csapak <d.csapak@proxmox.com>
To: Proxmox Backup Server development discussion
<pbs-devel@lists.proxmox.com>,
Christian Ebner <c.ebner@proxmox.com>
Subject: Re: [pbs-devel] [PATCH v6 proxmox-backup 61/65] client: pxar: add archive creation with reference test
Date: Thu, 23 May 2024 12:04:56 +0200 [thread overview]
Message-ID: <40542da1-4552-477e-8880-02f2d1eff904@proxmox.com> (raw)
In-Reply-To: <20240514103421.289431-62-c.ebner@proxmox.com>
interestingly this test runs through
but if do
./target/debug/pxar list ./tests/pxar/backup-client-pxar-expected.mpxar
i get the following error:
"/"
"/"
"/"
"/folder_0"
"/folder_0/file_0"
Error: unexpected entry type: UNKNOWN header (ef00315f656c6966)
is that expected ?
On 5/14/24 12:34, Christian Ebner wrote:
> Add a basic regression test for archive creation with reference
> metadata archive and index.
>
> Signed-off-by: Christian Ebner <c.ebner@proxmox.com>
> ---
> pbs-client/src/pxar/create.rs | 242 ++++++++++++++++++
> tests/pxar/backup-client-pxar-data.mpxar | Bin 0 -> 15070 bytes
> tests/pxar/backup-client-pxar-data.ppxar.didx | Bin 0 -> 8096 bytes
> tests/pxar/backup-client-pxar-expected.mpxar | Bin 0 -> 15086 bytes
> 4 files changed, 242 insertions(+)
> create mode 100644 tests/pxar/backup-client-pxar-data.mpxar
> create mode 100644 tests/pxar/backup-client-pxar-data.ppxar.didx
> create mode 100644 tests/pxar/backup-client-pxar-expected.mpxar
>
> diff --git a/pbs-client/src/pxar/create.rs b/pbs-client/src/pxar/create.rs
> index 287e47655..9349dd8bb 100644
> --- a/pbs-client/src/pxar/create.rs
> +++ b/pbs-client/src/pxar/create.rs
> @@ -1811,3 +1811,245 @@ fn generate_pxar_excludes_cli(patterns: &[MatchEntry]) -> Vec<u8> {
>
> content
> }
> +
> +#[cfg(test)]
> +mod tests {
> + use std::ffi::OsString;
> + use std::fs::File;
> + use std::fs::OpenOptions;
> + use std::io::{self, BufReader, Seek, SeekFrom, Write};
> + use std::pin::Pin;
> + use std::process::Command;
> + use std::sync::mpsc;
> + use std::task::{Context, Poll};
> +
> + use pbs_datastore::dynamic_index::DynamicIndexReader;
> + use pxar::accessor::sync::FileReader;
> + use pxar::encoder::SeqWrite;
> +
> + use crate::pxar::extract::Extractor;
> + use crate::pxar::OverwriteFlags;
> +
> + use super::*;
> +
> + struct DummyWriter {
> + file: Option<File>,
> + }
> +
> + impl DummyWriter {
> + fn new<P: AsRef<Path>>(path: Option<P>) -> Result<Self, Error> {
> + let file = if let Some(path) = path {
> + Some(
> + OpenOptions::new()
> + .read(true)
> + .write(true)
> + .truncate(true)
> + .create(true)
> + .open(path)?,
> + )
> + } else {
> + None
> + };
> + Ok(Self { file })
> + }
> + }
> +
> + impl Write for DummyWriter {
> + fn write(&mut self, data: &[u8]) -> io::Result<usize> {
> + if let Some(file) = self.file.as_mut() {
> + file.write_all(data)?;
> + }
> + Ok(data.len())
> + }
> +
> + fn flush(&mut self) -> io::Result<()> {
> + if let Some(file) = self.file.as_mut() {
> + file.flush()?;
> + }
> + Ok(())
> + }
> + }
> +
> + impl SeqWrite for DummyWriter {
> + fn poll_seq_write(
> + mut self: Pin<&mut Self>,
> + _cx: &mut Context,
> + buf: &[u8],
> + ) -> Poll<io::Result<usize>> {
> + Poll::Ready(self.as_mut().write(buf))
> + }
> +
> + fn poll_flush(mut self: Pin<&mut Self>, _cx: &mut Context) -> Poll<Result<(), io::Error>> {
> + Poll::Ready(self.as_mut().flush())
> + }
> + }
> +
> + fn prepare<P: AsRef<Path>>(dir_path: P) -> Result<(), Error> {
> + let dir = nix::dir::Dir::open(dir_path.as_ref(), OFlag::O_DIRECTORY, Mode::empty())?;
> +
> + let fs_magic = detect_fs_type(dir.as_raw_fd()).unwrap();
> + let stat = nix::sys::stat::fstat(dir.as_raw_fd()).unwrap();
> + let mut fs_feature_flags = Flags::from_magic(fs_magic);
> + let metadata = get_metadata(
> + dir.as_raw_fd(),
> + &stat,
> + fs_feature_flags,
> + fs_magic,
> + &mut fs_feature_flags,
> + false,
> + )?;
> +
> + let mut extractor = Extractor::new(
> + dir,
> + metadata.clone(),
> + true,
> + OverwriteFlags::empty(),
> + fs_feature_flags,
> + );
> +
> + let dir_metadata = Metadata {
> + stat: pxar::Stat::default().mode(0o777u64).set_dir().gid(0).uid(0),
> + ..Default::default()
> + };
> +
> + let file_metadata = Metadata {
> + stat: pxar::Stat::default()
> + .mode(0o777u64)
> + .set_regular_file()
> + .gid(0)
> + .uid(0),
> + ..Default::default()
> + };
> +
> + extractor.enter_directory(
> + OsString::from(format!("testdir")),
> + dir_metadata.clone(),
> + true,
> + )?;
> +
> + let size = 1024 * 1024;
> + let mut cursor = BufReader::new(std::io::Cursor::new(vec![0u8; size]));
> + for i in 0..10 {
> + extractor.enter_directory(
> + OsString::from(format!("folder_{i}")),
> + dir_metadata.clone(),
> + true,
> + )?;
> + for j in 0..10 {
> + cursor.seek(SeekFrom::Start(0))?;
> + extractor.extract_file(
> + CString::new(format!("file_{j}").as_str())?.as_c_str(),
> + &file_metadata,
> + size as u64,
> + &mut cursor,
> + true,
> + )?;
> + }
> + extractor.leave_directory()?;
> + }
> +
> + extractor.leave_directory()?;
> +
> + Ok(())
> + }
> +
> + #[test]
> + fn test_create_archive_with_reference() -> Result<(), Error> {
> + let mut testdir = PathBuf::from("./target/testout");
> + testdir.push(std::module_path!());
> +
> + let _ = std::fs::remove_dir_all(&testdir);
> + let _ = std::fs::create_dir_all(&testdir);
> +
> + prepare(testdir.as_path())?;
> +
> + let previous_payload_index = Some(DynamicIndexReader::new(File::open(
> + "../tests/pxar/backup-client-pxar-data.ppxar.didx",
> + )?)?);
> + let metadata_archive = File::open("../tests/pxar/backup-client-pxar-data.mpxar").unwrap();
> + let metadata_size = metadata_archive.metadata()?.len();
> + let reader: MetadataArchiveReader = Arc::new(FileReader::new(metadata_archive));
> +
> + let rt = tokio::runtime::Runtime::new().unwrap();
> + let (suggested_boundaries, _rx) = mpsc::channel();
> + let (forced_boundaries, _rx) = mpsc::channel();
> +
> + rt.block_on(async move {
> + testdir.push("testdir");
> + let source_dir =
> + nix::dir::Dir::open(testdir.as_path(), OFlag::O_DIRECTORY, Mode::empty()).unwrap();
> +
> + let fs_magic = detect_fs_type(source_dir.as_raw_fd()).unwrap();
> + let stat = nix::sys::stat::fstat(source_dir.as_raw_fd()).unwrap();
> + let mut fs_feature_flags = Flags::from_magic(fs_magic);
> +
> + let metadata = get_metadata(
> + source_dir.as_raw_fd(),
> + &stat,
> + fs_feature_flags,
> + fs_magic,
> + &mut fs_feature_flags,
> + false,
> + )?;
> +
> + let mut writer =
> + DummyWriter::new(Some("./target/backup-client-pxar-run.mpxar")).unwrap();
> + let mut payload_writer = Some(DummyWriter::new::<PathBuf>(None).unwrap());
> +
> + let mut encoder =
> + Encoder::new(&mut writer, &metadata, payload_writer.as_mut(), Some(&[])).await?;
> +
> + let mut archiver = Archiver {
> + feature_flags: Flags::from_magic(fs_magic),
> + fs_feature_flags: Flags::from_magic(fs_magic),
> + fs_magic,
> + callback: Box::new(|_| Ok(())),
> + patterns: Vec::new(),
> + catalog: None,
> + path: PathBuf::new(),
> + entry_counter: 0,
> + entry_limit: 1024,
> + current_st_dev: stat.st_dev,
> + device_set: None,
> + hardlinks: HashMap::new(),
> + file_copy_buffer: vec::undefined(4 * 1024 * 1024),
> + skip_e2big_xattr: false,
> + forced_boundaries: Some(forced_boundaries),
> + previous_payload_index,
> + suggested_boundaries: Some(suggested_boundaries),
> + cached_entries: Vec::new(),
> + cached_range: Range::default(),
> + cached_last_chunk: None,
> + cached_hardlinks: HashSet::new(),
> + caching_enabled: false,
> + reuse_stats: ReuseStats::default(),
> + };
> +
> + let accessor = Accessor::new(reader, metadata_size, None).await.unwrap();
> + let root = accessor.open_root().await.ok();
> + archiver
> + .archive_dir_contents(&mut encoder, root, source_dir, true)
> + .await
> + .unwrap();
> +
> + archiver
> + .flush_cached_reusing_if_below_threshold(&mut encoder, false)
> + .await
> + .unwrap();
> +
> + encoder.finish().await.unwrap();
> + encoder.close().await.unwrap();
> +
> + let status = Command::new("diff")
> + .args([
> + "../tests/pxar/backup-client-pxar-expected.mpxar",
> + "./target/backup-client-pxar-run.mpxar",
> + ])
> + .status()
> + .expect("failed to execute diff");
> + assert!(status.success());
> +
> + Ok::<(), Error>(())
> + })
> + }
> +}
> diff --git a/tests/pxar/backup-client-pxar-data.mpxar b/tests/pxar/backup-client-pxar-data.mpxar
> new file mode 100644
> index 0000000000000000000000000000000000000000..00f3dc295fb38062c23e6cf7cac9ae110beb0a65
> GIT binary patch
> literal 15070
> zcmeI3ZD<@t7{_Pd4&n>F7EIfqb#1^FO6}HK%_)tWO2s0r+iLp7VpnN`+SqK3@uiTk
> z0g)mo3n~RgSX7jP#Z`-;wUEWA!B4JW5kF|x5580@T|bDmXzQ8GN@tzklRN*x`)~`#
> z+|A9+Z+4!U-!r*zm%i41e0X5q&>}W-sk}V(=Du$q+4;h;F8=yl4}ZdoA2i1PeiW~F
> z7gkDF&G*_D^Edhj2X^*7yu)JuwZnyZhYt+&$+{a8M{=R@jqX44;jVQr_n5qS`Ja!?
> zJj=%~;8y>8^bO)nmIG_xu7%+&Cf=v??$*F?HnW6jmEx|0;T&euxV12x%N!baJq+hD
> zm&V-y!}-jkaa}N6z<e54f#E_H2)HYTj;(+Fj+3hvDKpg*+uC;ZZa5IH;Qkxr`*hRW
> zPwf8mu1mHb<?ZtNpKkkPvV3Urmo~1zy#C9{-_I`n@$iyOh4%etZrOKo^U622=`*~%
> zeP!$T7i*WVKk;~>pO3D*w{v9smfybSqt4rptjHd`|MLm<Vqu)Wo?ABc{O-rP2Mg^x
> z7k_iMt1TS)zR-W~W!=Mf|9sD>XZd*YdB}HcLEjPq_HYs}F67(1L&2w#Y%n&v?uz=3
> zSjazEo-U<0$><xz#Vn$6IDIE9rg1oZr!1jyIDKa<rExfYGbN*OIDMBD#vM>&W#aU0
> zDplb0RRf39x22dg4ySKhu>@R8-*xF*Vx%6v7kKeM>Dy6kA+B?*Z&z_>oMf`bW;a>I
> z<m4$Xjl=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ar.didx b/tests/pxar/backup-client-pxar-data.ppxar.didx
> new file mode 100644
> index 0000000000000000000000000000000000000000..a646218b5d504196443b17d62f3b22d171f011b8
> GIT binary patch
> literal 8096
> zcmeIw&x=k`9LMqR`E|?Ga2Ha_;uI^9yBJNz!Z9f+>6R!pO*b*jh^~^|JnlRqSshV|
> z%`G8TSEgiYa;C7OyU<J|9b=l(l;<{OBpc7nKj5>pIN$Ya@$KDb%dI01H%~o(*K{tQ
> zJ~q6+^=PT==^y&xJ9`F3sC!@cUYwa2-S=W{^1`mZr(YJX_P=dkztmp8Zd>P0&yH!m
> zYQlvAp+G1Q3WNfoKqwFjgaV;JC=d#S0-?bFT|iU3_TbPp*KU10`+DQ}SnEW!^~!_6
> zmE|WN7T?dES$;Kh@A!s<^qNZtPc0p`(~IYOPkMW9;>Of`Ykp<tpHIL1?CtT1yY~$x
> zkW0xxE~6B3Ic1P5D2JS-0&*o;$W>HA&QS%qnjGXj)sSn*LylMjxtI}Kh5y=%W?c!m
> zglWhbmOw6L267ooA(yiZas|sFXITNcl3B=Atc09n736B>Am>>PxrTYj5pN(DbK=OZ
> zH1A4ee_TV(@C0%xH;~JC3b~wTkSll&Im-*kmE1zE;w9u9uOL@*2RYAc$Ti$Ujzj~w
> zSdc(=rA1dF`x6>+MkJ6+g@IfqQpn{ZgIpnU$XQW9t`rt>l_(+SL<PB8ILLWXL#`1X
> zawHqb#gZhlD=oVc*`L&qGcti(Dh=c^nL;j?8RQC?L(a+qa;3D8t7Hi|Co9O+(m~G4
> z8gh;FkR#PVE>@(FU1`;o$o`auoKXqnQe_~QsT6X#${<&$9CB6_kSmpiT%}6LIaNWf
> zRt|Dr)sSnHha5!><l=}TWLG-sN@RbLhMb8K$YqgPb4Mq~o{fC&+#LA+d)TeK+0;Jx
> Tczf@GpWkK|cE3#e4vqc=((xEu
>
> literal 0
> HcmV?d00001
>
> diff --git a/tests/pxar/backup-client-pxar-expected.mpxar b/tests/pxar/backup-client-pxar-expected.mpxar
> new file m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v#p`;Q1yj%ond`PYCz*~`i|9*#^Lmxs1c2mY=tJHMXJU$4yW%-O=uiW-%Lws
> z98TY+meDwzzKa^;Z^zaNy*PbanknGg`ff<yl0(!Q`nI*oMxrt}T=wl~7LCK{+tq9u
> zhts#GIW!KZZ(nn1oMh)U87%_Mqj5NWhni30aQcq4fX3nU9cv+t!|6NGA_3RdcSHJ?
> z?CRFgcdEt0y3TO+ooNY;!|9vpDUHMF+tf1}htqdaXZ(ZnIvE^J-<EFDILStDGFsSr
> zWqwp*fz!96TQm-*Z&$Zz98TY!?g+THz8liFWSg~yzJ1*l)^&#U9q1m7!|6NJeHw?;
> zccce24yW%}4{01u--#a4IGnyyJ*IJzbJb+D$n=E9;q=Xnl*ZxoZ5o+?YwNoqeM{E8
> zHS}FHm_g<^xHnHM!=!OIecMK5epCjB)3;+-G!Cb4*RW|EPT!v4&^VmFeZ!@3IDH3(
> zN8=>NxXEY{8a|D~={qt40oT@dL;991L~H0fHbP-tXE^&#jEKhJ^qm?pjl=0XGZGqy
> z(>E)mG!Cb4vyjm^oW6?%Rv<$!PTy9+q;WWX+l9*fsKi2IjV7aoQ?LYFTi<eh*FG2J
> zj$IqN55JH;UaBtE1U~`Yb8ea1@!r7e`F&pYE#KEQ^-Sr+2Um#gyFMG*bL4>?H~rZu
> z)_=9&wV}e=gCCw=D%N*-1HIR*@Be;$g;;;lbJs3=_UU*2DlHc47oFa}W{!4S$F7B9
> o{h^z+M~)BcqpN0%^>=T6<;?i3wfjde7VGn`GkwA5n}40@Z-J;Sk^lez
>
> literal 0
> HcmV?d00001
>
_______________________________________________
pbs-devel mailing list
pbs-devel@lists.proxmox.com
https://lists.proxmox.com/cgi-bin/mailman/listinfo/pbs-devel
next prev parent reply other threads:[~2024-05-23 10:05 UTC|newest]
Thread overview: 98+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-05-14 10:33 [pbs-devel] [PATCH v5 pxar proxmox-backup 00/62] fix #3174: improve file-level backup Christian Ebner
2024-05-14 10:33 ` [pbs-devel] [PATCH v6 pxar 01/14] format/examples: add header type `PXAR_PAYLOAD_REF` Christian Ebner
2024-05-14 10:33 ` [pbs-devel] [PATCH v6 pxar 02/14] decoder: add method to read payload references Christian Ebner
2024-05-14 10:33 ` [pbs-devel] [PATCH v6 pxar 03/14] decoder: factor out skip part from skip_entry Christian Ebner
2024-05-14 10:33 ` [pbs-devel] [PATCH v6 pxar 04/14] encoder: add optional output writer for file payloads Christian Ebner
2024-05-21 10:06 ` Dominik Csapak
2024-05-21 10:21 ` Christian Ebner
2024-05-14 10:33 ` [pbs-devel] [PATCH v6 pxar 05/14] encoder: move to stack based state tracking Christian Ebner
2024-05-14 10:33 ` [pbs-devel] [PATCH v6 pxar 06/14] decoder/accessor: add optional payload input stream Christian Ebner
2024-05-14 10:33 ` [pbs-devel] [PATCH v6 pxar 07/14] decoder: set payload input range when decoding via accessor Christian Ebner
2024-05-14 10:33 ` [pbs-devel] [PATCH v6 pxar 08/14] encoder: add payload reference capability Christian Ebner
2024-05-14 10:33 ` [pbs-devel] [PATCH v6 pxar 09/14] encoder: add payload position capability Christian Ebner
2024-05-14 10:33 ` [pbs-devel] [PATCH v6 pxar 10/14] encoder: add payload advance capability Christian Ebner
2024-05-14 10:33 ` [pbs-devel] [PATCH v6 pxar 11/14] encoder/format: finish payload stream with marker Christian Ebner
2024-05-14 10:33 ` [pbs-devel] [PATCH v6 pxar 12/14] format: add payload stream start marker Christian Ebner
2024-05-14 10:33 ` [pbs-devel] [PATCH v6 pxar 13/14] format/encoder/decoder: new pxar entry type `Version` Christian Ebner
2024-05-14 10:33 ` [pbs-devel] [PATCH v6 pxar 14/14] format/encoder/decoder: new pxar entry type `Prelude` Christian Ebner
2024-05-14 10:33 ` [pbs-devel] [PATCH v6 proxmox-backup 15/65] client: pxar: switch to stack based encoder state Christian Ebner
2024-05-14 10:33 ` [pbs-devel] [PATCH v6 proxmox-backup 16/65] client: backup: factor out extension from backup target Christian Ebner
2024-05-14 10:33 ` [pbs-devel] [PATCH v6 proxmox-backup 17/65] client: pxar: combine writers into struct Christian Ebner
2024-05-21 10:29 ` Dominik Csapak
2024-05-21 13:30 ` Christian Ebner
2024-05-14 10:33 ` [pbs-devel] [PATCH v6 proxmox-backup 18/65] client: pxar: add optional pxar payload writer instance Christian Ebner
2024-05-14 10:33 ` [pbs-devel] [PATCH v6 proxmox-backup 19/65] client: pxar: optionally split metadata and payload streams Christian Ebner
2024-05-14 10:33 ` [pbs-devel] [PATCH v6 proxmox-backup 20/65] client: helper: add helpers for creating reader instances Christian Ebner
2024-05-21 12:26 ` Dominik Csapak
2024-05-14 10:33 ` [pbs-devel] [PATCH v6 proxmox-backup 21/65] client: helper: add method for split archive name mapping Christian Ebner
2024-05-14 10:33 ` [pbs-devel] [PATCH v6 proxmox-backup 22/65] client: restore: read payload from dedicated index Christian Ebner
2024-05-21 12:44 ` Dominik Csapak
2024-05-24 6:45 ` Christian Ebner
2024-05-14 10:33 ` [pbs-devel] [PATCH v6 proxmox-backup 23/65] tools: cover extension for split pxar archives Christian Ebner
2024-05-14 10:33 ` [pbs-devel] [PATCH v6 proxmox-backup 24/65] restore: " Christian Ebner
2024-05-14 10:33 ` [pbs-devel] [PATCH v6 proxmox-backup 25/65] client: mount: make split pxar archives mountable Christian Ebner
2024-05-21 12:54 ` Dominik Csapak
2024-05-14 10:33 ` [pbs-devel] [PATCH v6 proxmox-backup 26/65] api: datastore: refactor getting local chunk reader Christian Ebner
2024-05-14 10:33 ` [pbs-devel] [PATCH v6 proxmox-backup 27/65] api: datastore: attach optional payload " Christian Ebner
2024-05-21 13:12 ` Dominik Csapak
2024-05-24 6:48 ` Christian Ebner
2024-05-14 10:33 ` [pbs-devel] [PATCH v6 proxmox-backup 28/65] catalog: shell: make split pxar archives accessible Christian Ebner
2024-05-14 10:33 ` [pbs-devel] [PATCH v6 proxmox-backup 29/65] www: cover metadata extension for pxar archives Christian Ebner
2024-05-14 10:33 ` [pbs-devel] [PATCH v6 proxmox-backup 30/65] file restore: factor out getting pxar reader Christian Ebner
2024-05-21 13:19 ` Dominik Csapak
2024-05-21 14:07 ` Christian Ebner
2024-05-14 10:33 ` [pbs-devel] [PATCH v6 proxmox-backup 31/65] file restore: cover split metadata and payload archives Christian Ebner
2024-05-21 13:25 ` Dominik Csapak
2024-05-14 10:33 ` [pbs-devel] [PATCH v6 proxmox-backup 32/65] file restore: show more error context when extraction fails Christian Ebner
2024-05-14 10:33 ` [pbs-devel] [PATCH v6 proxmox-backup 33/65] pxar: add optional payload input for achive restore Christian Ebner
2024-05-14 10:33 ` [pbs-devel] [PATCH v6 proxmox-backup 34/65] pxar: add more context to extraction error Christian Ebner
2024-05-14 10:33 ` [pbs-devel] [PATCH v6 proxmox-backup 35/65] client: pxar: include payload offset in entry listing Christian Ebner
2024-05-14 10:33 ` [pbs-devel] [PATCH v6 proxmox-backup 36/65] pxar: show padding in debug output on archive list Christian Ebner
2024-05-14 10:33 ` [pbs-devel] [PATCH v6 proxmox-backup 37/65] datastore: dynamic index: add method to get digest Christian Ebner
2024-05-14 10:33 ` [pbs-devel] [PATCH v6 proxmox-backup 38/65] client: pxar: helper for lookup of reusable dynamic entries Christian Ebner
2024-05-14 10:33 ` [pbs-devel] [PATCH v6 proxmox-backup 39/65] upload stream: implement reused chunk injector Christian Ebner
2024-05-14 10:33 ` [pbs-devel] [PATCH v6 proxmox-backup 40/65] client: chunk stream: add struct to hold injection state Christian Ebner
2024-05-14 10:33 ` [pbs-devel] [PATCH v6 proxmox-backup 41/65] chunker: add method to reset chunker state Christian Ebner
2024-05-14 10:33 ` [pbs-devel] [PATCH v6 proxmox-backup 42/65] client: streams: add channels for dynamic entry injection Christian Ebner
2024-05-22 9:56 ` Dominik Csapak
2024-05-24 6:57 ` Christian Ebner
2024-05-14 10:33 ` [pbs-devel] [PATCH v6 proxmox-backup 43/65] specs: add backup detection mode specification Christian Ebner
2024-05-22 13:07 ` Dominik Csapak
2024-05-24 6:59 ` Christian Ebner
2024-05-14 10:34 ` [pbs-devel] [PATCH v6 proxmox-backup 44/65] client: implement prepare reference method Christian Ebner
2024-05-14 10:34 ` [pbs-devel] [PATCH v6 proxmox-backup 45/65] client: pxar: add method for metadata comparison Christian Ebner
2024-05-14 10:34 ` [pbs-devel] [PATCH v6 proxmox-backup 46/65] pxar: caching: add look-ahead cache types Christian Ebner
2024-05-14 10:34 ` [pbs-devel] [PATCH v6 proxmox-backup 47/65] fix #3174: client: pxar: enable caching and meta comparison Christian Ebner
2024-05-22 14:45 ` Dominik Csapak
2024-05-24 8:50 ` Christian Ebner
2024-05-14 10:34 ` [pbs-devel] [PATCH v6 proxmox-backup 48/65] client: backup writer: add injected chunk count to stats Christian Ebner
2024-05-14 10:34 ` [pbs-devel] [PATCH v6 proxmox-backup 49/65] pxar: create: keep track of reused chunks and files Christian Ebner
2024-05-14 10:34 ` [pbs-devel] [PATCH v6 proxmox-backup 50/65] pxar: create: show chunk injection stats debug output Christian Ebner
2024-05-14 10:34 ` [pbs-devel] [PATCH v6 proxmox-backup 51/65] client: pxar: add helper to handle optional preludes Christian Ebner
2024-05-23 8:47 ` Dominik Csapak
2024-05-14 10:34 ` [pbs-devel] [PATCH v6 proxmox-backup 52/65] client: pxar: opt encode cli exclude patterns as Prelude Christian Ebner
2024-05-14 10:34 ` [pbs-devel] [PATCH v6 proxmox-backup 53/65] docs: file formats: describe split pxar archive file layout Christian Ebner
2024-05-14 10:34 ` [pbs-devel] [PATCH v6 proxmox-backup 54/65] docs: add section describing change detection mode Christian Ebner
2024-05-23 9:28 ` Dominik Csapak
2024-05-14 10:34 ` [pbs-devel] [PATCH v6 proxmox-backup 55/65] test-suite: add detection mode change benchmark Christian Ebner
2024-05-14 10:34 ` [pbs-devel] [PATCH v6 proxmox-backup 56/65] test-suite: add bin to deb, add shell completions Christian Ebner
2024-05-23 9:32 ` Dominik Csapak
2024-05-14 10:34 ` [pbs-devel] [PATCH v6 proxmox-backup 57/65] datastore: chunker: add Chunker trait Christian Ebner
2024-05-14 10:34 ` [pbs-devel] [PATCH v6 proxmox-backup 58/65] datastore: chunker: implement chunker for payload stream Christian Ebner
2024-05-14 10:34 ` [pbs-devel] [PATCH v6 proxmox-backup 59/65] client: chunk stream: switch payload stream chunker Christian Ebner
2024-05-14 10:34 ` [pbs-devel] [PATCH v6 proxmox-backup 60/65] client: pxar: allow to restore prelude to optional path Christian Ebner
2024-05-14 10:34 ` [pbs-devel] [PATCH v6 proxmox-backup 61/65] client: pxar: add archive creation with reference test Christian Ebner
2024-05-23 10:04 ` Dominik Csapak [this message]
2024-05-23 10:17 ` Christian Ebner
2024-05-23 10:17 ` Dominik Csapak
2024-05-27 11:05 ` Christian Ebner
2024-05-27 11:17 ` Christian Ebner
2024-05-14 10:34 ` [pbs-devel] [PATCH v6 proxmox-backup 62/65] client: tools: add helper to raise nofile rlimit Christian Ebner
2024-05-14 10:34 ` [pbs-devel] [PATCH v6 proxmox-backup 63/65] client: pxar: set cache limit based on " Christian Ebner
2024-05-14 10:34 ` [pbs-devel] [PATCH v6 proxmox-backup 64/65] chunker: tests: add regression tests for payload chunker Christian Ebner
2024-05-21 11:23 ` Dominik Csapak
2024-05-21 11:27 ` Christian Ebner
2024-05-14 10:34 ` [pbs-devel] [PATCH v6 proxmox-backup 65/65] chunk stream: " Christian Ebner
2024-05-21 11:21 ` Dominik Csapak
2024-05-14 10:45 ` [pbs-devel] [PATCH v5 pxar proxmox-backup 00/62] fix #3174: improve file-level backup Christian Ebner
2024-05-27 14:35 ` Christian Ebner
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=40542da1-4552-477e-8880-02f2d1eff904@proxmox.com \
--to=d.csapak@proxmox.com \
--cc=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