726b9d4469 
					 
					
						
						
							
							use proxmox-sys 0.2.1 and proxmox-io 1.0.1  
						
						... 
						
						
						
						And remove unused code from pbs-tools.
Signed-off-by: Dietmar Maurer <dietmar@proxmox.com > 
						
						
					 
					
						2021-11-25 12:30:03 +01:00 
						 
				 
			
				
					
						
					 
					
						
						
							
						
						577095e2f7 
					 
					
						
						
							
							move pbs-tools/src/percent_encoding.rs to pbs-api-types/src/percent_encoding.rs  
						
						... 
						
						
						
						Signed-off-by: Dietmar Maurer <dietmar@proxmox.com > 
						
						
					 
					
						2021-11-25 11:48:52 +01:00 
						 
				 
			
				
					
						
					 
					
						
						
							
						
						e2b12ce988 
					 
					
						
						
							
							StdChannelWriter: avoid using anyhow::Error  
						
						... 
						
						
						
						Use a generic implementation to allow different error types. 
						
						
					 
					
						2021-11-25 11:14:56 +01:00 
						 
				 
			
				
					
						
					 
					
						
						
							
						
						92ef0b56d8 
					 
					
						
						
							
							move pbs-tools/src/str.rs to pbs-client/src/pxar/create.rs  
						
						... 
						
						
						
						Code is only used there.
Signed-off-by: Dietmar Maurer <dietmar@proxmox.com > 
						
						
					 
					
						2021-11-25 10:43:22 +01:00 
						 
				 
			
				
					
						
					 
					
						
						
							
						
						8a8a1850d0 
					 
					
						
						
							
							remove trait BufferedRead from pbs-tools/src/io.rs  
						
						... 
						
						
						
						We do not need it.
Signed-off-by: Dietmar Maurer <dietmar@proxmox.com > 
						
						
					 
					
						2021-11-25 09:45:47 +01:00 
						 
				 
			
				
					
						
					 
					
						
						
							
						
						fddb9bcc3e 
					 
					
						
						
							
							remove pbs-tools/src/sys.rs  
						
						... 
						
						
						
						Signed-off-by: Dietmar Maurer <dietmar@proxmox.com > 
						
						
					 
					
						2021-11-25 09:01:29 +01:00 
						 
				 
			
				
					
						
					 
					
						
						
							
						
						0df179c2b4 
					 
					
						
						
							
							remove pbs-tools/src/cli.rs  
						
						... 
						
						
						
						Code is only used once in src/bin/proxmox_backup_debug/inspect.rs, so
move it into that file.
Signed-off-by: Dietmar Maurer <dietmar@proxmox.com > 
						
						
					 
					
						2021-11-25 08:33:10 +01:00 
						 
				 
			
				
					
						
					 
					
						
						
							
						
						25877d05ac 
					 
					
						
						
							
							update to proxmox-sys 0.2 crate  
						
						... 
						
						
						
						- imported pbs-api-types/src/common_regex.rs from old proxmox crate
- use hex crate to generate/parse hex digest
- remove all reference to proxmox crate (use proxmox-sys and
  proxmox-serde instead)
Signed-off-by: Dietmar Maurer <dietmar@proxmox.com > 
						
						
					 
					
						2021-11-24 10:32:27 +01:00 
						 
				 
			
				
					
						
					 
					
						
						
							
						
						a58a5cf795 
					 
					
						
						
							
							move HumanByte to pbs-abi-types crate  
						
						... 
						
						
						
						Originally-by: Dietmar Maurer <dietmar@proxmox.com >
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com > 
						
						
					 
					
						2021-11-20 19:35:24 +01:00 
						 
				 
			
				
					
						
					 
					
						
						
							
						
						92a8f0bc82 
					 
					
						
						
							
							depend on proxmox-async 0.2  
						
						
						
						
					 
					
						2021-11-20 17:14:02 +01:00 
						 
				 
			
				
					
						
					 
					
						
						
							
						
						9a1b24b6b1 
					 
					
						
						
							
							use new proxmox-async crate  
						
						... 
						
						
						
						Signed-off-by: Dietmar Maurer <dietmar@proxmox.com > 
						
						
					 
					
						2021-11-19 18:03:22 +01:00 
						 
				 
			
				
					
						
					 
					
						
						
							
						
						daaeea8b4b 
					 
					
						
						
							
							update to base64 0.13  
						
						... 
						
						
						
						Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com > 
						
						
					 
					
						2021-11-19 11:58:17 +01:00 
						 
				 
			
				
					
						
					 
					
						
						
							
						
						d5790a9f27 
					 
					
						
						
							
							use new proxmox-sys crate  
						
						... 
						
						
						
						Signed-off-by: Dietmar Maurer <dietmar@proxmox.com > 
						
						
					 
					
						2021-11-19 11:06:35 +01:00 
						 
				 
			
				
					
						
					 
					
						
						
							
						
						860eaec58f 
					 
					
						
						
							
							use proxmox::tools::fd::fd_change_cloexec from proxmox 0.15.3  
						
						... 
						
						
						
						Depend on proxmox 0.15.3
Signed-off-by: Dietmar Maurer <dietmar@proxmox.com > 
						
						
					 
					
						2021-11-18 13:43:41 +01:00 
						 
				 
			
				
					
						
					 
					
						
						
							
						
						c42a54795d 
					 
					
						
						
							
							move fingerprint helpers from pbs-tools to pbs-api-types  
						
						... 
						
						
						
						Signed-off-by: Dietmar Maurer <dietmar@proxmox.com > 
						
						
					 
					
						2021-11-17 07:07:40 +01:00 
						 
				 
			
				
					
						
					 
					
						
						
							
						
						e0a19d3313 
					 
					
						
						
							
							use new fsync parameter to replace_file and atomic_open_or_create  
						
						... 
						
						
						
						Depend on proxmox 0.15.0 and proxmox-openid 0.8.1
Signed-off-by: Dietmar Maurer <dietmar@proxmox.com > 
						
						
					 
					
						2021-10-21 07:28:32 +02:00 
						 
				 
			
				
					
						
					 
					
						
						
							
						
						5a8726e6d2 
					 
					
						
						
							
							pbs-tools: drop borrow module  
						
						... 
						
						
						
						Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com > 
						
						
					 
					
						2021-10-13 14:14:03 +02:00 
						 
				 
			
				
					
						
					 
					
						
						
							
						
						b3f279e2d9 
					 
					
						
						
							
							use complete_file_name from proxmox-router 1.1  
						
						
						
						
					 
					
						2021-10-13 14:10:02 +02:00 
						 
				 
			
				
					
						
					 
					
						
						
							
						
						890b88cbef 
					 
					
						
						
							
							remove pbs-tools::ops::ControlFlow  
						
						... 
						
						
						
						Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com > 
						
						
					 
					
						2021-10-12 14:36:40 +02:00 
						 
				 
			
				
					
						
					 
					
						
						
							
						
						6ef1b649d9 
					 
					
						
						
							
							update to first proxmox crate split  
						
						... 
						
						
						
						Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com > 
						
						
					 
					
						2021-10-11 11:58:49 +02:00 
						 
				 
			
				
					
						
					 
					
						
						
							
						
						e3f3359c86 
					 
					
						
						
							
							bump proxmox dependency to 0.14.0 and proxmox-http to 0.5.0  
						
						... 
						
						
						
						Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com > 
						
						
					 
					
						2021-10-08 11:18:22 +02:00 
						 
				 
			
				
					
						
					 
					
						
						
							
						
						7380c48dff 
					 
					
						
						
							
							pbs-tools::io::pipe: use nix Error type  
						
						... 
						
						
						
						there's no need to upgrade to anyhow::Error there already
Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com > 
						
						
					 
					
						2021-10-06 15:28:58 +02:00 
						 
				 
			
				
					
						
					 
					
						
						
							
						
						d7eedbd24b 
					 
					
						
						
							
							tools::format: avoid some string copies  
						
						... 
						
						
						
						Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com > 
						
						
					 
					
						2021-09-30 12:43:33 +02:00 
						 
				 
			
				
					
						
					 
					
						
						
							
						
						5b17a02da4 
					 
					
						
						
							
							drop str::join helper  
						
						... 
						
						
						
						the standard join method can do this now
Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com > 
						
						
					 
					
						2021-09-30 12:43:33 +02:00 
						 
				 
			
				
					
						
					 
					
						
						
							
						
						450105b0c3 
					 
					
						
						
							
							make pbs_tools::cert not depend on pbs-buildcfg  
						
						... 
						
						
						
						Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com > 
						
						
					 
					
						2021-09-29 14:11:26 +02:00 
						 
				 
			
				
					
						
					 
					
						
						
							
						
						67678ec39c 
					 
					
						
						
							
							add all autotraits to output_or_stdout trait object  
						
						... 
						
						
						
						just in case we ever need any of them in async code that
requires them and loses it because of accessing such a trait
object...
Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com > 
						
						
					 
					
						2021-09-29 13:59:02 +02:00 
						 
				 
			
				
					
						
					 
					
						
						
							
						
						01a080215d 
					 
					
						
						
							
							drop pbs_tools::auth  
						
						... 
						
						
						
						`pbs_client::connect_to_localhost` now requires the key as
optional parameter
Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com > 
						
						
					 
					
						2021-09-29 11:08:52 +02:00 
						 
				 
			
				
					
						
					 
					
						
						
							
						
						99940358e3 
					 
					
						
						
							
							ExtJsFormatter: use ParameterError to correctly compute 'errors'  
						
						... 
						
						
						
						By default, 'errors' is now empty.
Depend on proxmox 0.13.5. 
						
						
					 
					
						2021-09-28 10:19:55 +02:00 
						 
				 
			
				
					
						
					 
					
						
						
							
						
						b446fa14c5 
					 
					
						
						
							
							WorkerTaskContext: make it Send + Sync  
						
						
						
						
					 
					
						2021-09-27 09:11:38 +02:00 
						 
				 
			
				
					
						
					 
					
						
						
							
						
						0fd55b08d9 
					 
					
						
						
							
							WorkerTaskContext: add shutdown_requested() and fail_on_shutdown()  
						
						
						
						
					 
					
						2021-09-24 12:04:31 +02:00 
						 
				 
			
				
					
						
					 
					
						
						
							
						
						619cd5cbcb 
					 
					
						
						
							
							cleanup WorkerTaskContext  
						
						
						
						
					 
					
						2021-09-24 11:39:30 +02:00 
						 
				 
			
				
					
						
					 
					
						
						
							
						
						c8449217dc 
					 
					
						
						
							
							rename TaskState to WorkerTaskContext  
						
						
						
						
					 
					
						2021-09-24 10:33:49 +02:00 
						 
				 
			
				
					
						
					 
					
						
						
							
						
						b9700a9fe5 
					 
					
						
						
							
							move worker_task.rs into proxmox-rest-server crate  
						
						... 
						
						
						
						Also moved pbs-datastore/src/task.rs to pbs-tools, which now depends on 'log'. 
						
						
					 
					
						2021-09-24 10:28:17 +02:00 
						 
				 
			
				
					
						
					 
					
						
						
							
						
						81867f0539 
					 
					
						
						
							
							use UPID and systemd helpers from proxmox 0.13.4  
						
						
						
						
					 
					
						2021-09-23 12:01:43 +02:00 
						 
				 
			
				
					
						
					 
					
						
						
							
						
						fd6d243843 
					 
					
						
						
							
							move ApiConfig, FileLogger and CommandoSocket to proxmox-rest-server workspace  
						
						... 
						
						
						
						ApiConfig: avoid using  pbs_config::backup_user()
CommandoSocket: avoid using  pbs_config::backup_user()
FileLogger: avoid using  pbs_config::backup_user()
- use atomic_open_or_create_file()
Auth Trait: moved definitions to proxmox-rest-server/src/lib.rs
- removed CachedUserInfo patrameter
- return user as String (not Authid)
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com > 
						
						
					 
					
						2021-09-21 08:46:41 +02:00 
						 
				 
			
				
					
						
					 
					
						
						
							
						
						1cb08a0a05 
					 
					
						
						
							
							move token_shadow to pbs_config workspace  
						
						... 
						
						
						
						Also moved out crypt.rs (libcrypt bindings) to pbs_tools workspace. 
						
						
					 
					
						2021-09-08 14:00:14 +02:00 
						 
				 
			
				
					
						
					 
					
						
						
							
						
						bbdda58b35 
					 
					
						
						
							
							moved key_derivation.rs from pbs_datastore to pbs-config/src/key_config.rs  
						
						... 
						
						
						
						Also moved pbs-datastore/src/crypt_config.rs to pbs-tools/src/crypt_config.rs.
We do not want to depend on pbs-api-types there, so I use [u8;32] instead of
Fingerprint. 
						
						
					 
					
						2021-09-07 10:12:17 +02:00 
						 
				 
			
				
					
						
					 
					
						
						
							
						
						6c76aa434d 
					 
					
						
						
							
							split proxmox-file-restore into its own crate  
						
						... 
						
						
						
						This also moves a couple of required utilities such as
logrotate and some file descriptor methods to pbs-tools.
Note that the logrotate usage and run-dir handling should be
improved to work as a regular user as this *should* (IMHO)
be a regular unprivileged command (including running
qemu given the kvm privileges...)
Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com > 
						
						
					 
					
						2021-09-01 12:23:29 +02:00 
						 
				 
			
				
					
						
					 
					
						
						
							
						
						e5f9b7f79e 
					 
					
						
						
							
							split out proxmox-backup-debug binary  
						
						... 
						
						
						
						and introduce pbs_tools::cli module
Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com > 
						
						
					 
					
						2021-08-31 14:45:48 +02:00 
						 
				 
			
				
					
						
					 
					
						
						
							
						
						2e2d64fdba 
					 
					
						
						
							
							bump proxmox dependency to 0.13.0  
						
						... 
						
						
						
						and with it:
* bump proxmox-http dependency to 0.4.0
* bump proxmox-apt dependency to 0.7.0
Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com > 
						
						
					 
					
						2021-08-25 10:43:58 +02:00 
						 
				 
			
				
					
						
					 
					
						
						
							
						
						ad0364c558 
					 
					
						
						
							
							tools: xattr: don't test things beyond our control  
						
						... 
						
						
						
						whether the kernel allows super-long names or weird
namespace prefixes is not our concern...
also the latter fails under fakeroot
Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com > 
						
						
					 
					
						2021-07-22 11:34:40 +02:00 
						 
				 
			
				
					
						
					 
					
						
						
							
						
						9b8e8012a7 
					 
					
						
						
							
							cargo: update proxmox to 0.12.1  
						
						... 
						
						
						
						For the FS compat improvement in the atomic create file helper
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com > 
						
						
					 
					
						2021-07-22 10:09:53 +02:00 
						 
				 
			
				
					
						
					 
					
						
						
							
						
						eb5e0ae65a 
					 
					
						
						
							
							move remaining client tools to pbs-tools/datastore  
						
						... 
						
						
						
						pbs-datastore now ended up depending on tokio after all, but
that's fine for now
for the fuse code I added pbs-fuse-loop (has the old
fuse_loop and its 'loopdev' module)
ultimately only binaries should depend on this to avoid the
library link
the only thins remaining to move out the client binary are
the api method return types, those will need to be moved to
pbs-api-types...
Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com > 
						
						
					 
					
						2021-07-21 14:12:24 +02:00 
						 
				 
			
				
					
						
					 
					
						
						
							
						
						baff2324f3 
					 
					
						
						
							
							pbs-tools: fix doctest reference to moved cache modules  
						
						... 
						
						
						
						Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com > 
						
						
					 
					
						2021-07-20 19:15:28 +02:00 
						 
				 
			
				
					
						
					 
					
						
						
							
						
						a301c362e3 
					 
					
						
						
							
							add helpers to write configuration files  
						
						
						
						
					 
					
						2021-07-20 18:54:23 +02:00 
						 
				 
			
				
					
						
					 
					
						
						
							
						
						fc5870be53 
					 
					
						
						
							
							move channel/stream helpers to pbs-tools  
						
						... 
						
						
						
						pbs_tools
  ::blocking: std/async wrapping with block_in_place
  ::stream: stream <-> AsyncRead/AsyncWrite wrapping
Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com > 
						
						
					 
					
						2021-07-20 11:27:40 +02:00 
						 
				 
			
				
					
						
					 
					
						
						
							
						
						3c8c2827cb 
					 
					
						
						
							
							move required_X_param to pbs_tools::json  
						
						... 
						
						
						
						Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com > 
						
						
					 
					
						2021-07-20 11:09:52 +02:00 
						 
				 
			
				
					
						
					 
					
						
						
							
						
						6c221244df 
					 
					
						
						
							
							move lru cachers to pbs-tools  
						
						... 
						
						
						
						Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com > 
						
						
					 
					
						2021-07-20 10:57:22 +02:00 
						 
				 
			
				
					
						
					 
					
						
						
							
						
						58a3fae773 
					 
					
						
						
							
							move pxar binary to separate crate  
						
						... 
						
						
						
						and move its few remaining proxmox_backup deps out to
pbs-tools
Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com > 
						
						
					 
					
						2021-07-19 15:53:43 +02:00 
						 
				 
			
				
					
						
					 
					
						
						
							
						
						a3399f4337 
					 
					
						
						
							
							doc and tests fixup  
						
						... 
						
						
						
						Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com > 
						
						
					 
					
						2021-07-19 14:16:28 +02:00