Skip to content
Snippets Groups Projects
  • Kevin Wolf's avatar
    81e254dc
    blockjob: Don't set iostatus of target · 81e254dc
    Kevin Wolf authored
    
    When block job errors were introduced, we assigned the iostatus of the
    target BDS "just in case". The field has never been accessible for the
    user because the target isn't listed in query-block.
    
    Before we can allow the user to have a second BlockBackend on the
    target, we need to clean this up. If anything, we would want to set the
    iostatus for the internal BB of the job (which we can always do later),
    but certainly not for a separate BB which the job doesn't even use.
    
    As a nice side effect, this gets us rid of another bs->blk use.
    
    Signed-off-by: default avatarKevin Wolf <kwolf@redhat.com>
    Reviewed-by: default avatarMax Reitz <mreitz@redhat.com>
    81e254dc
    History
    blockjob: Don't set iostatus of target
    Kevin Wolf authored
    
    When block job errors were introduced, we assigned the iostatus of the
    target BDS "just in case". The field has never been accessible for the
    user because the target isn't listed in query-block.
    
    Before we can allow the user to have a second BlockBackend on the
    target, we need to clean this up. If anything, we would want to set the
    iostatus for the internal BB of the job (which we can always do later),
    but certainly not for a separate BB which the job doesn't even use.
    
    As a nice side effect, this gets us rid of another bs->blk use.
    
    Signed-off-by: default avatarKevin Wolf <kwolf@redhat.com>
    Reviewed-by: default avatarMax Reitz <mreitz@redhat.com>