]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
mgr/volumes: introduce 'canceled' state in clone op state machine
authorVenky Shankar <vshankar@redhat.com>
Tue, 14 Jan 2020 09:13:16 +0000 (04:13 -0500)
committerRamana Raja <rraja@redhat.com>
Thu, 19 Mar 2020 12:59:20 +0000 (18:29 +0530)
commitf4ad07865b77cea73b898b1df98a10b57d1afc66
tree85a78a234a495c562bca4bfa45a125851ec1cd8b
parent97bea5d68cfbc69351d8552e00e0c07b3fbf7b92
mgr/volumes: introduce 'canceled' state in clone op state machine

When fetching the next execution state, -EINTR jumps to 'canceled'
state signifying a canceled (interrupted) operation. Also include
a helper routine to check if a given state machine is in initial
state.

Signed-off-by: Venky Shankar <vshankar@redhat.com>
(cherry picked from commit ac9d697b1cdb93b4c7e532727b482cece3674155)
src/pybind/mgr/volumes/fs/operations/op_sm.py