Skip to content
  • John Snow's avatar
    c87621ea
    blockjobs: split interface into public/private, Part 1 · c87621ea
    John Snow authored
    
    
    To make it a little more obvious which functions are intended to be
    public interface and which are intended to be for use only by jobs
    themselves, split the interface into "public" and "private" files.
    
    Convert blockjobs (e.g. block/backup) to using the private interface.
    Leave blockdev and others on the public interface.
    
    There are remaining uses of private state by qemu-img, and several
    cases in blockdev.c and block/io.c where we grab job->blk for the
    purposes of acquiring an AIOContext.
    
    These will be corrected in future patches.
    
    Signed-off-by: default avatarJohn Snow <jsnow@redhat.com>
    Reviewed-by: default avatarKevin Wolf <kwolf@redhat.com>
    Reviewed-by: default avatarJeff Cody <jcody@redhat.com>
    Message-id: 1477584421-1399-7-git-send-email-jsnow@redhat.com
    Signed-off-by: default avatarJeff Cody <jcody@redhat.com>
    c87621ea
    blockjobs: split interface into public/private, Part 1
    John Snow authored
    
    
    To make it a little more obvious which functions are intended to be
    public interface and which are intended to be for use only by jobs
    themselves, split the interface into "public" and "private" files.
    
    Convert blockjobs (e.g. block/backup) to using the private interface.
    Leave blockdev and others on the public interface.
    
    There are remaining uses of private state by qemu-img, and several
    cases in blockdev.c and block/io.c where we grab job->blk for the
    purposes of acquiring an AIOContext.
    
    These will be corrected in future patches.
    
    Signed-off-by: default avatarJohn Snow <jsnow@redhat.com>
    Reviewed-by: default avatarKevin Wolf <kwolf@redhat.com>
    Reviewed-by: default avatarJeff Cody <jcody@redhat.com>
    Message-id: 1477584421-1399-7-git-send-email-jsnow@redhat.com
    Signed-off-by: default avatarJeff Cody <jcody@redhat.com>
Loading