• Iustin Pop's avatar
    Change the bdev init signatures · 464f8daf
    Iustin Pop authored
    This patch changes all the bdev.BlockDev constructors to take an
    additional ‘size’ parameter, all the backend functions that call those
    functions to pass it and also changes backend.BlocdevCreate() to not use
    the size passed via the rpc call but instead directly disk.size (this is
    the only way it's called).
    Note that this patch doesn't do anything with this parameter, just
    stores it on the blockdev objects.
    With the patch, we actually have a more uniform init sequence (before
    create had the parameter, but the other functions not).
    Signed-off-by: default avatarIustin Pop <iustin@google.com>
    Reviewed-by: default avatarGuido Trotter <ultrotter@google.com>
bdev.py 53.4 KB