mirror of
https://github.com/ceph/ceph
synced 2025-02-21 09:57:26 +00:00
Merge pull request #46620 from rzarzynski/wip-tools-cot-force-pg-import
tools: COT ignores fsid mismatch when importing PG with --force Reviewed-by: Nitzan Mordechai <nmordech@redhat.com> Reviewed-by: Josh Durgin <jdurgin@redhat.com> Reviewed-by: Neha Ojha <nojha@redhat.com>
This commit is contained in:
commit
026762fae0
@ -1823,7 +1823,11 @@ int ObjectStoreTool::do_import(ObjectStore *store, OSDSuperblock& sb,
|
||||
&& pgb.superblock.cluster_fsid != sb.cluster_fsid) {
|
||||
cerr << "Export came from different cluster with fsid "
|
||||
<< pgb.superblock.cluster_fsid << std::endl;
|
||||
return -EINVAL;
|
||||
if (force) {
|
||||
cerr << "Ignoring this problem due to --force" << std::endl;
|
||||
} else {
|
||||
return -EINVAL;
|
||||
}
|
||||
}
|
||||
|
||||
if (debug) {
|
||||
|
Loading…
Reference in New Issue
Block a user