From: Marcin Haba Date: Fri, 10 Feb 2023 10:55:04 +0000 (+0100) Subject: baculum: Add voltype property support in bvfs output parser X-Git-Tag: Release-13.0.3~134 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c08604b367b2044305b776fe8791f2ae3a47aa25;p=thirdparty%2Fbacula.git baculum: Add voltype property support in bvfs output parser --- diff --git a/gui/baculum/protected/API/Modules/BVFS.php b/gui/baculum/protected/API/Modules/BVFS.php index 07374340a..e9cf43848 100644 --- a/gui/baculum/protected/API/Modules/BVFS.php +++ b/gui/baculum/protected/API/Modules/BVFS.php @@ -34,7 +34,7 @@ class BVFS extends APIModule { const DIR_PATTERN = '/^(?P\d+)\t(?P\d+)\t(?P\d+)\t(?P\d+)\t(?P[a-zA-z0-9\+\-\/\ ]+)\t(?P(.*\/|\.{2}))$/'; const FILE_PATTERN = '/^(?P\d+)\t(?P\d+)\t(?P\d+)\t(?P\d+)\t(?P[a-zA-z0-9\+\-\/\ ]+)\t(?P[^\/]+)$/'; - const VERSION_PATTERN = '/^(?P\d+)\t(?P\d+)\t(?P\d+)\t(?P\d+)\t(?P[a-zA-Z0-9\+\-\/\ ]+)\t(?P.+)\t(?P.+)\t(?P\d+)$/'; + const VERSION_PATTERN = '/^(?P\d+)\t(?P\d+)\t(?P\d+)\t(?P\d+)\t(?P[a-zA-Z0-9\+\-\/\ ]+?)\t(?P.+?)\t(?P.+?)\t(?P\d+)((?:\t)?(?P\d+|))$/'; public function parseFileDirList($list) { $elements = array(); @@ -85,6 +85,7 @@ class BVFS extends APIModule { 'md5' => $match['md5'], 'volname' => $match['volname'], 'inchanger' => $match['inchanger'], + 'voltype' => $match['voltype'], 'type' => 'file' ); } @@ -107,4 +108,4 @@ class BVFS extends APIModule { } return strcmp($a['name'], $b['name']); } -} \ No newline at end of file +}