btrfs: add 'btrfs' import/export format

Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
This commit is contained in:
Wolfgang Bumiller
2021-06-22 14:18:22 +02:00
committed by Thomas Lamprecht
parent 3cc29a0487
commit a0e3e224ea
3 changed files with 240 additions and 12 deletions

View File

@ -692,7 +692,7 @@ sub storage_migrate {
my $migration_snapshot;
if (!defined($snapshot)) {
if ($scfg->{type} eq 'zfspool') {
if ($scfg->{type} eq 'zfspool' || $scfg->{type} eq 'btrfs') {
$migration_snapshot = 1;
$snapshot = '__migration__';
}