Revision 6e37fb81 qapi-schema.json

b/qapi-schema.json
1893 1893
#
1894 1894
# @device: the device name
1895 1895
#
1896
# @force: #optional whether to allow cancellation of a paused job (default
1897
#         false).  Since 1.3.
1898
#
1896 1899
# Returns: Nothing on success
1897 1900
#          If no background operation is active on this device, DeviceNotActive
1898 1901
#
1899 1902
# Since: 1.1
1900 1903
##
1901
{ 'command': 'block-job-cancel', 'data': { 'device': 'str' } }
1904
{ 'command': 'block-job-cancel', 'data': { 'device': 'str', '*force': 'bool' } }
1905

  
1906
##
1907
# @block-job-pause:
1908
#
1909
# Pause an active background block operation.
1910
#
1911
# This command returns immediately after marking the active background block
1912
# operation for pausing.  It is an error to call this command if no
1913
# operation is in progress.  Pausing an already paused job has no cumulative
1914
# effect; a single block-job-resume command will resume the job.
1915
#
1916
# The operation will pause as soon as possible.  No event is emitted when
1917
# the operation is actually paused.  Cancelling a paused job automatically
1918
# resumes it.
1919
#
1920
# @device: the device name
1921
#
1922
# Returns: Nothing on success
1923
#          If no background operation is active on this device, DeviceNotActive
1924
#
1925
# Since: 1.3
1926
##
1927
{ 'command': 'block-job-pause', 'data': { 'device': 'str' } }
1928

  
1929
##
1930
# @block-job-resume:
1931
#
1932
# Resume an active background block operation.
1933
#
1934
# This command returns immediately after resuming a paused background block
1935
# operation.  It is an error to call this command if no operation is in
1936
# progress.  Resuming an already running job is not an error.
1937
#
1938
# @device: the device name
1939
#
1940
# Returns: Nothing on success
1941
#          If no background operation is active on this device, DeviceNotActive
1942
#
1943
# Since: 1.3
1944
##
1945
{ 'command': 'block-job-resume', 'data': { 'device': 'str' } }
1902 1946

  
1903 1947
##
1904 1948
# @ObjectTypeInfo:

Also available in: Unified diff