initial XFS support

This commit is contained in:
Girish Ramakrishnan
2022-06-08 10:38:54 -07:00
parent af5d5e548e
commit 7b28a76d69
7 changed files with 18 additions and 14 deletions

View File

@@ -178,7 +178,8 @@ app.controller('RestoreController', ['$scope', 'Client', function ($scope, Clien
{ name: 'SSHFS Mount', value: 'sshfs' },
{ name: 'UpCloud Object Storage', value: 'upcloud-objectstorage' },
{ name: 'Vultr Object Storage', value: 'vultr-objectstorage' },
{ name: 'Wasabi', value: 'wasabi' }
{ name: 'Wasabi', value: 'wasabi' },
{ name: 'XFS Disk', value: 'xfs' },
];
$scope.formats = [
@@ -194,7 +195,7 @@ app.controller('RestoreController', ['$scope', 'Client', function ($scope, Clien
};
$scope.mountlike = function (provider) {
return provider === 'sshfs' || provider === 'cifs' || provider === 'nfs' || provider === 'mountpoint' || provider === 'ext4';
return provider === 'sshfs' || provider === 'cifs' || provider === 'nfs' || provider === 'mountpoint' || provider === 'ext4' || provider === 'xfs';
};
$scope.restore = function () {
@@ -288,7 +289,7 @@ app.controller('RestoreController', ['$scope', 'Client', function ($scope, Clien
backupConfig.mountOptions.port = $scope.mountOptions.port;
backupConfig.mountOptions.privateKey = $scope.mountOptions.privateKey;
}
} else if (backupConfig.provider === 'ext4') {
} else if (backupConfig.provider === 'ext4' || backupConfig.provider === 'xfs') {
backupConfig.mountOptions.diskPath = $scope.mountOptions.diskPath;
} else if (backupConfig.provider === 'mountpoint') {
backupConfig.mountPoint = $scope.mountPoint;