]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
cephfs: add command "ceph fs swap"
authorRishabh Dave <ridave@redhat.com>
Sun, 29 Jan 2023 20:48:54 +0000 (02:18 +0530)
committerRishabh Dave <ridave@redhat.com>
Sat, 6 Apr 2024 10:14:16 +0000 (15:44 +0530)
commitf11cf2b6dc5974d0e63d83f50e4e18e828df8e8e
tree4dda6de5c6d8e9a6e821a3ac5700361a2a22f3d4
parente94ab39c2e7e3f9780f9d593c5d85eae83db3fa7
cephfs: add command "ceph fs swap"

Add a FS command that enables users to swap names of two file systems in
a single PAXOS transaction. Add an option to this command that swaps
FSCIDS along with FS names. This commands also updates the application
pool tags and fails when mirroring is enabled on either or both FSs.

Fixes: https://tracker.ceph.com/issues/58129
Signed-off-by: Rishabh Dave <ridave@redhat.com>
(cherry picked from commit 717031454243898071bdb254b2cadc7048057903)

Conflicts:
doc/man/8/ceph.rst
Conflict occurred because Ceph man page contians lesser amout of
CephFS commands in it in Reef branch

src/mds/FSMap.h
* Methods like set_fscid() can be cherry-picked as it is but due
  to different lines around, patch couldn't be applied as it is.
* Methods like get_fscid(), get_mds_map() are absent in Reef
  branch. They have been kept/added during this conflict
  resolution.
PendingReleaseNotes
doc/cephfs/administration.rst
doc/man/8/ceph.rst
qa/tasks/cephfs/test_admin.py
src/mds/FSMap.cc
src/mds/FSMap.h
src/mon/FSCommands.cc
src/mon/MonCommands.h