OSDN Git Service

block/file-posix: Small fixes in raw_create()
authorMax Reitz <mreitz@redhat.com>
Tue, 13 Jun 2017 20:20:56 +0000 (22:20 +0200)
committerMax Reitz <mreitz@redhat.com>
Tue, 11 Jul 2017 15:45:01 +0000 (17:45 +0200)
commit7dacd8bd3d1f7eeb1850d5ad8e1898e6d314889f
treee745324275fd2df98d59572b6ce628dfdf622517
parentdc5f690b97ccdffa79fe7169bb26b0ebf06688bf
block/file-posix: Small fixes in raw_create()

Variables should be declared at the start of a block, and if a certain
parameter value is not supported it may be better to return -ENOTSUP
instead of -EINVAL.

Signed-off-by: Max Reitz <mreitz@redhat.com>
Reviewed-by: Stefan Hajnoczi <stefanha@redhat.com>
Reviewed-by: Philippe Mathieu-Daudé <f4bug@amsat.org>
Message-id: 20170613202107.10125-6-mreitz@redhat.com
Signed-off-by: Max Reitz <mreitz@redhat.com>
block/file-posix.c