]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
mgr/snap_schedule: validate fs before execution
authorMilind Changire <mchangir@redhat.com>
Wed, 9 Aug 2023 11:20:40 +0000 (16:50 +0530)
committerMilind Changire <mchangir@redhat.com>
Thu, 19 Oct 2023 07:14:32 +0000 (12:44 +0530)
commit74c4d5f9b89fdfaf1fcf540acfbe445a4fb33db3
tree133039b70c30ac9b489770e1f2e57b3205f99cbc
parent767d7141700363f347130aa942441a47de301a12
mgr/snap_schedule: validate fs before execution

Stop command execution if there are more than one filesystem and --fs
argument is missing in command-line, i.e. do not use the first fs in the
fsmap if there are more than one filesystem.
This is to ensure that user doesn't mistakenly run the command against
the first fs by missing to specify the desired fs.

Fixes: https://tracker.ceph.com/issues/62218
Signed-off-by: Milind Changire <mchangir@redhat.com>
(cherry picked from commit c612ce06300fa99f750ce99ef68dbd49ced16c34)
src/pybind/mgr/snap_schedule/module.py