c50f87442c 
					 
					
						
						
							
							pxar: add basic code for FUSE implementation.  
						
						... 
						
						
						
						This adds the basic code in order to create a fuse session and mount an archive.
It adds libfuse3-3 as runtime dependency and libfuse3-dev as build dependency.
Signed-off-by: Christian Ebner <c.ebner@proxmox.com > 
						
						
					 
					
						2019-08-09 16:42:31 +02:00 
						 
				 
			
				
					
						
					 
					
						
						
							
						
						781ac11c6a 
					 
					
						
						
							
							src/backup/data_blob.rs: define const MAX_BLOB_SIZE  
						
						
						
						
					 
					
						2019-08-09 11:49:06 +02:00 
						 
				 
			
				
					
						
					 
					
						
						
							
						
						9049a8cfe6 
					 
					
						
						
							
							src/bin/proxmox-backup-client.rs: implement catalog command  
						
						
						
						
					 
					
						2019-08-09 11:36:33 +02:00 
						 
				 
			
				
					
						
					 
					
						
						
							
						
						7926a3a1cf 
					 
					
						
						
							
							src/bin/proxmox-backup-client.rs: add archive filename to catalog  
						
						
						
						
					 
					
						2019-08-09 11:05:56 +02:00 
						 
				 
			
				
					
						
					 
					
						
						
							
						
						863be2e6e2 
					 
					
						
						
							
							src/backup/data_blob.rs: allow largert blob sizes (128MB)  
						
						... 
						
						
						
						Need this for catalog files. 
						
						
					 
					
						2019-08-09 10:22:56 +02:00 
						 
				 
			
				
					
						
					 
					
						
						
							
						
						3fb53e07b4 
					 
					
						
						
							
							src/bin/proxmox-backup-client.rs: avoid compiler warning  
						
						
						
						
					 
					
						2019-08-09 10:22:32 +02:00 
						 
				 
			
				
					
						
					 
					
						
						
							
						
						543a260ff9 
					 
					
						
						
							
							src/bin/proxmox-backup-client.rs: new completion helper for snapshots  
						
						
						
						
					 
					
						2019-08-09 10:08:45 +02:00 
						 
				 
			
				
					
						
					 
					
						
						
							
						
						2761d6a4f3 
					 
					
						
						
							
							src/pxar/encoder.rs: use BackupCatalogWriter  
						
						
						
						
					 
					
						2019-08-09 09:46:49 +02:00 
						 
				 
			
				
					
						
					 
					
						
						
							
						
						aea0815d32 
					 
					
						
						
							
							src/pxar/catalog.rs: new catalog helper  
						
						
						
						
					 
					
						2019-08-09 09:41:43 +02:00 
						 
				 
			
				
					
						
					 
					
						
						
							
						
						977eeb24f6 
					 
					
						
						
							
							src/bin/proxmox-backup-client.rs: avoid doubled file extensions (.blob.blob) in index.json  
						
						
						
						
					 
					
						2019-08-07 10:23:08 +02:00 
						 
				 
			
				
					
						
					 
					
						
						
							
						
						4af0ee055a 
					 
					
						
						
							
							api: always use complete file names (including add exctensions)  
						
						
						
						
					 
					
						2019-08-07 10:10:14 +02:00 
						 
				 
			
				
					
						
					 
					
						
						
							
						
						d7c243977d 
					 
					
						
						
							
							src/api2/admin/datastore.rs - list_snapshot_files: list all files  
						
						... 
						
						
						
						Add files that are not mentioned in index.json. 
						
						
					 
					
						2019-08-07 09:16:14 +02:00 
						 
				 
			
				
					
						
					 
					
						
						
							
						
						34066e2eeb 
					 
					
						
						
							
							src/api2/backup/environment.rs - add_blob: always verify blob crc  
						
						
						
						
					 
					
						2019-08-07 09:15:13 +02:00 
						 
				 
			
				
					
						
					 
					
						
						
							
						
						eecb23560b 
					 
					
						
						
							
							src/backup/data_blob.rs - encode: always compute crc  
						
						
						
						
					 
					
						2019-08-07 08:30:27 +02:00 
						 
				 
			
				
					
						
					 
					
						
						
							
						
						38a6cddad7 
					 
					
						
						
							
							src/backup/backup_info.rs: add BackupInfo::new constructor  
						
						
						
						
					 
					
						2019-08-07 08:27:52 +02:00 
						 
				 
			
				
					
						
					 
					
						
						
							
						
						c4f025ebbf 
					 
					
						
						
							
							src/bin/proxmox-backup-client.rs: fix remote filename completion  
						
						
						
						
					 
					
						2019-08-07 06:48:18 +02:00 
						 
				 
			
				
					
						
					 
					
						
						
							
						
						dbed4c8cd7 
					 
					
						
						
							
							src/client/http_client.rs: compute checksums for chunk streams  
						
						
						
						
					 
					
						2019-08-06 12:23:06 +02:00 
						 
				 
			
				
					
						
					 
					
						
						
							
						
						bd15e96dd9 
					 
					
						
						
							
							src/client/http_client.rs: minor code cleanup  
						
						
						
						
					 
					
						2019-08-06 11:46:15 +02:00 
						 
				 
			
				
					
						
					 
					
						
						
							
						
						f889b15867 
					 
					
						
						
							
							src/backup/data_blob.rs: always compute crc  
						
						
						
						
					 
					
						2019-08-06 11:42:14 +02:00 
						 
				 
			
				
					
						
					 
					
						
						
							
						
						c807d231eb 
					 
					
						
						
							
							src/client/http_client.rs: compute file checksums  
						
						
						
						
					 
					
						2019-08-06 11:26:06 +02:00 
						 
				 
			
				
					
						
					 
					
						
						
							
						
						a17a0e7a9f 
					 
					
						
						
							
							src/api2/admin/datastore.rs: extract backup size from index.json  
						
						
						
						
					 
					
						2019-08-06 10:56:21 +02:00 
						 
				 
			
				
					
						
					 
					
						
						
							
						
						eecb182845 
					 
					
						
						
							
							pxar: add initial docs for MatchPattern  
						
						... 
						
						
						
						Signed-off-by: Christian Ebner <c.ebner@proxmox.com > 
						
						
					 
					
						2019-08-06 09:03:02 +02:00 
						 
				 
			
				
					
						
					 
					
						
						
							
						
						43e892d293 
					 
					
						
						
							
							pxar: add error handling for MatchPattern::matches_filename()  
						
						... 
						
						
						
						Signed-off-by: Christian Ebner <c.ebner@proxmox.com > 
						
						
					 
					
						2019-08-06 09:02:44 +02:00 
						 
				 
			
				
					
						
					 
					
						
						
							
						
						8c70e3eb18 
					 
					
						
						
							
							src/api2/admin/datastore.rs - files: return data from index.json  
						
						
						
						
					 
					
						2019-08-05 13:22:19 +02:00 
						 
				 
			
				
					
						
					 
					
						
						
							
						
						17ff2cb0e5 
					 
					
						
						
							
							tests/worker-task-abort.rs: use proxmox::tools::try_block  
						
						
						
						
					 
					
						2019-08-05 10:04:12 +02:00 
						 
				 
			
				
					
						
					 
					
						
						
							
						
						f69adc81a6 
					 
					
						
						
							
							use new proxmox::tools::nodename  
						
						
						
						
					 
					
						2019-08-03 17:06:23 +02:00 
						 
				 
			
				
					
						
					 
					
						
						
							
						
						7f66c29e5c 
					 
					
						
						
							
							remove src/tools/common_regex.rs, use proxmox::tools::common_regex instead  
						
						
						
						
					 
					
						2019-08-03 16:44:31 +02:00 
						 
				 
			
				
					
						
					 
					
						
						
							
						
						fd329bdcd7 
					 
					
						
						
							
							remove src/tools/procfs.rs, use proxmox::sys::linux::procfs instead  
						
						
						
						
					 
					
						2019-08-03 16:26:44 +02:00 
						 
				 
			
				
					
						
					 
					
						
						
							
						
						779e4c90b1 
					 
					
						
						
							
							src/tools/vec.rs: remove unused file  
						
						... 
						
						
						
						We already moved that to proxmox::tools 
						
						
					 
					
						2019-08-03 16:11:47 +02:00 
						 
				 
			
				
					
						
					 
					
						
						
							
						
						e18a6c9ee5 
					 
					
						
						
							
							update to nix 0.14, use code from proxmox:tools  
						
						
						
						
					 
					
						2019-08-03 13:05:38 +02:00 
						 
				 
			
				
					
						
					 
					
						
						
							
						
						b86f263ced 
					 
					
						
						
							
							use new proxmox::sys::linux::magic  
						
						
						
						
					 
					
						2019-08-03 09:28:57 +02:00 
						 
				 
			
				
					
						
					 
					
						
						
							
						
						4ea0f7d95b 
					 
					
						
						
							
							pxar: remove flag to change digest algorithm  
						
						... 
						
						
						
						The flag CA_FORMAT_SHA512_256 is used to switch between sha512 and sha256 to
calculate digest in casync.
As we use sha256, we can get rid of this flag for now.
Signed-off-by: Christian Ebner <c.ebner@proxmox.com > 
						
						
					 
					
						2019-08-03 08:57:53 +02:00 
						 
				 
			
				
					
						
					 
					
						
						
							
						
						4d142ea79e 
					 
					
						
						
							
							pxar: cleanup: refactor and rename exclude pattern  
						
						... 
						
						
						
						The original name PxarExcludePattern makes no sense anymore as the patterns are
also used to match filenames during restore of the archive.
Therefore, exclude_pattern.rs is moved to match_pattern.rs and PxarExcludePattern
rename to MatchPattern.
Further, since it makes more sense the MatchTypes are now declared as None,
Positive, Negative, PartialPositive or PartialNegative, as this makes more sense
and seems more readable.
Positive matches are those without '!' prefix, Negatives with '!' prefix.
This makes also the filename matching in the encoder/decoder more intuitive and
the logic was adapted accordingly.
Signed-off-by: Christian Ebner <c.ebner@proxmox.com > 
						
						
					 
					
						2019-08-03 08:52:32 +02:00 
						 
				 
			
				
					
						
					 
					
						
						
							
						
						fe076c8259 
					 
					
						
						
							
							pxar: cleanup: s/PxarDirBuf/PxarDirStack/g and move dir_buffer.rs to dir_stack.rs  
						
						... 
						
						
						
						Signed-off-by: Christian Ebner <c.ebner@proxmox.com > 
						
						
					 
					
						2019-08-03 08:52:10 +02:00 
						 
				 
			
				
					
						
					 
					
						
						
							
						
						ead7546a96 
					 
					
						
						
							
							pxar: change uid and gid to u32 instead of u64  
						
						... 
						
						
						
						Signed-off-by: Christian Ebner <c.ebner@proxmox.com > 
						
						
					 
					
						2019-08-03 08:51:51 +02:00 
						 
				 
			
				
					
						
					 
					
						
						
							
						
						5e50c606b0 
					 
					
						
						
							
							pxar: cleanup: s/CA_FORMAT/PXAR/g and s/CaFormat/Pxar/g  
						
						... 
						
						
						
						Signed-off-by: Christian Ebner <c.ebner@proxmox.com > 
						
						
					 
					
						2019-08-03 08:51:33 +02:00 
						 
				 
			
				
					
						
					 
					
						
						
							
						
						47651f9530 
					 
					
						
						
							
							pxar: cleanup: move feature flags to src/pxar/flags.rs and omit CA_FORMAT prefix on all of them  
						
						... 
						
						
						
						Signed-off-by: Christian Ebner <c.ebner@proxmox.com > 
						
						
					 
					
						2019-08-03 08:51:06 +02:00 
						 
				 
			
				
					
						
					 
					
						
						
							
						
						91451c4355 
					 
					
						
						
							
							pxar: cleanup: move filesystem related magic numbers to tools/fs/magic.rs  
						
						... 
						
						
						
						Signed-off-by: Christian Ebner <c.ebner@proxmox.com > 
						
						
					 
					
						2019-08-03 08:48:12 +02:00 
						 
				 
			
				
					
						
					 
					
						
						
							
						
						b335f5b713 
					 
					
						
						
							
							src/bin/proxmox-backup-client.rs: sign index.json  
						
						
						
						
					 
					
						2019-08-02 10:00:15 +02:00 
						 
				 
			
				
					
						
					 
					
						
						
							
						
						69ecd8d5b0 
					 
					
						
						
							
							src/backup/data_blob.rs: implement signed blobs  
						
						
						
						
					 
					
						2019-08-02 09:56:01 +02:00 
						 
				 
			
				
					
						
					 
					
						
						
							
						
						93205f942a 
					 
					
						
						
							
							src/backup/crypt_config.rs: new compute_auth_tag helper  
						
						
						
						
					 
					
						2019-08-02 08:55:37 +02:00 
						 
				 
			
				
					
						
					 
					
						
						
							
						
						c68d2170d5 
					 
					
						
						
							
							src/backup/crypt_config.rs: fix typo  
						
						
						
						
					 
					
						2019-08-02 08:29:40 +02:00 
						 
				 
			
				
					
						
					 
					
						
						
							
						
						81a9905e0a 
					 
					
						
						
							
							pxar: implement feature flag support for device nodes, fifos and sockets  
						
						... 
						
						
						
						Signed-off-by: Christian Ebner <c.ebner@proxmox.com > 
						
						
					 
					
						2019-08-02 07:55:17 +02:00 
						 
				 
			
				
					
						
					 
					
						
						
							
						
						8abc95a145 
					 
					
						
						
							
							pxar: remove some unused feature flags from format definition  
						
						... 
						
						
						
						Signed-off-by: Christian Ebner <c.ebner@proxmox.com > 
						
						
					 
					
						2019-08-02 07:54:46 +02:00 
						 
				 
			
				
					
						
					 
					
						
						
							
						
						3a905cac2b 
					 
					
						
						
							
							src/pxar/sequential_decoder.rs: remove of obsolete function dir_mkdirat  
						
						... 
						
						
						
						Signed-off-by: Christian Ebner <c.ebner@proxmox.com > 
						
						
					 
					
						2019-08-02 07:52:49 +02:00 
						 
				 
			
				
					
						
					 
					
						
						
							
						
						beffac999f 
					 
					
						
						
							
							src/pxar/sequentail_decoder.rs: fix issue when restoring with glob pattern.  
						
						... 
						
						
						
						Partial extraction of an archive with a glob pattern, e.g. '**/*.conf' lead to
the unexpected behaviour of restoring all partially matched directories (in this
example all of them).
This patch fixes this unexpected behaviour by only restoring those directories
were the directory or one of its sub-items fully matched the pattern and should
therefore be restored.
To achive this behavoiur, directory metadata is pushed onto a stack and restored
on demand.
Signed-off-by: Christian Ebner <c.ebner@proxmox.com > 
						
						
					 
					
						2019-08-02 07:49:47 +02:00 
						 
				 
			
				
					
						
					 
					
						
						
							
						
						51ac99c314 
					 
					
						
						
							
							src/pxar/exclude_pattern.rs: add Clone and Copy trait to MatchType  
						
						... 
						
						
						
						Signed-off-by: Christian Ebner <c.ebner@proxmox.com > 
						
						
					 
					
						2019-08-02 07:49:47 +02:00 
						 
				 
			
				
					
						
					 
					
						
						
							
						
						6a584cfd76 
					 
					
						
						
							
							pxar: add PxarDir and PxarDirBuf to buffer directory metadata  
						
						... 
						
						
						
						In order to restore only directories when some of their content fully matched
a match pattern on partial restores, these directories and their metadata are
pushed onto this buffer and only restored successivley on demand.
Signed-off-by: Christian Ebner <c.ebner@proxmox.com > 
						
						
					 
					
						2019-08-02 07:45:12 +02:00 
						 
				 
			
				
					
						
					 
					
						
						
							
						
						27e6e180b6 
					 
					
						
						
							
							src/pxar/format_definition.rs - PxarAttributes: derive Default  
						
						... 
						
						
						
						And remove unnecessary impl new(). 
						
						
					 
					
						2019-08-02 07:16:10 +02:00 
						 
				 
			
				
					
						
					 
					
						
						
							
						
						a92e6c9011 
					 
					
						
						
							
							src/pxar/sequential_decoder.rs: split read and restore of attributes into separate functions  
						
						... 
						
						
						
						Signed-off-by: Christian Ebner <c.ebner@proxmox.com > 
						
						
					 
					
						2019-08-02 07:11:38 +02:00