Merge pull request #13389 from trociny/wip-rbd-nbd-unused_old_format

rbd-nbd: no need to check image format any more

Reviewed-by: Jason Dillaman <dillaman@redhat.com>
This commit is contained in:
Jason Dillaman 2017-02-14 11:42:22 -05:00 committed by GitHub
commit 61ac1b41da

View File

@ -510,7 +510,6 @@ static int do_map()
int fd[2];
int nbd;
uint8_t old_format;
librbd::image_info_t info;
Preforker forker;
@ -659,10 +658,6 @@ static int do_map()
goto close_nbd;
}
r = image.old_format(&old_format);
if (r < 0)
goto close_nbd;
{
uint64_t handle;