]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commit
librbd/migration: require snapshot when importing from native source
authorJason Dillaman <dillaman@redhat.com>
Tue, 22 Dec 2020 14:46:04 +0000 (09:46 -0500)
committerJason Dillaman <dillaman@redhat.com>
Sat, 2 Jan 2021 14:26:53 +0000 (09:26 -0500)
commitd22ca3d9780bb0e6033fe9d604d915313af798d7
treeff338ae74bf6e7f56160076365373325e3dd3cb7
parent77b8a7f8cc1127aec9afde20568af904be784ba2
librbd/migration: require snapshot when importing from native source

Since we cannot mark the source image read-only when running in import-only
migration mode, we should require the user to provide a snapshot to ensure
that data cannot change while the migration is running.

Signed-off-by: Jason Dillaman <dillaman@redhat.com>
qa/workunits/rbd/cli_migration.sh
src/librbd/migration/NativeFormat.cc
src/librbd/migration/NativeFormat.h
src/test/cli/rbd/help.t
src/test/pybind/test_rbd.py
src/tools/rbd/action/Migration.cc