Added a LOG_EXT constant as a counterpart to NOTES_EXT
and refactored usages for .log and .notes with them. At some parts in the test case code I had to source new variables to shorten the line length to not exceed the 100 column line limit. Signed-off-by: Daniel Tschlatscher <d.tschlatscher@proxmox.com> Reviewed-by: Fabian Ebner <f.ebner@proxmox.com> Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
This commit is contained in:
committed by
Wolfgang Bumiller
parent
3048641bb4
commit
90778f7cdd
@ -1566,8 +1566,8 @@ sub archive_info {
|
||||
$info->{type} = $type;
|
||||
|
||||
if ($volid =~ /^(vzdump-${type}-([1-9][0-9]{2,8})-(\d{4})_(\d{2})_(\d{2})-(\d{2})_(\d{2})_(\d{2}))\.${extension}$/) {
|
||||
$info->{logfilename} = "$1.log";
|
||||
$info->{notesfilename} = "$filename.notes";
|
||||
$info->{logfilename} = "$1".PVE::Storage::Plugin::LOG_EXT;
|
||||
$info->{notesfilename} = "$filename".PVE::Storage::Plugin::NOTES_EXT;
|
||||
$info->{vmid} = int($2);
|
||||
$info->{ctime} = timelocal($8, $7, $6, $5, $4 - 1, $3);
|
||||
$info->{is_std_name} = 1;
|
||||
|
||||
@ -20,6 +20,7 @@ use base qw(PVE::SectionConfig);
|
||||
|
||||
use constant COMPRESSOR_RE => 'gz|lzo|zst';
|
||||
|
||||
use constant LOG_EXT => ".log";
|
||||
use constant NOTES_EXT => ".notes";
|
||||
|
||||
our @COMMON_TAR_FLAGS = qw(
|
||||
|
||||
Reference in New Issue
Block a user