vduse-blk: Add serial option

Add a 'serial' option to allow user to specify this value
explicitly. And the default value is changed to an empty
string as what we did in "hw/block/virtio-blk.c".

Signed-off-by: Xie Yongji <xieyongji@bytedance.com>
Message-Id: <20220614051532.92-6-xieyongji@bytedance.com>
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
This commit is contained in:
Xie Yongji 2022-06-14 13:15:31 +08:00 committed by Kevin Wolf
parent 2866ddd121
commit 0862a087fd
6 changed files with 23 additions and 10 deletions

View file

@ -126,6 +126,7 @@ static void help(void)
" [,writable=on|off][,num-queues=<num-queues>]\n"
" [,queue-size=<queue-size>]\n"
" [,logical-block-size=<logical-block-size>]\n"
" [,serial=<serial-number>]\n"
" export the specified block node as a vduse-blk\n"
" device using the id as the VDUSE device name\n"
"\n"