mirror of https://gitee.com/openkylin/qemu.git
vvfat: Fix default volume label
Commit d5941dd
documented that it leaves the default volume name as it
was ("QEMU VVFAT"), but it doesn't actually implement this. You get an
empty name (eleven space characters) instead.
This fixes the implementation to apply the advertised default.
Cc: qemu-stable@nongnu.org
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
Reviewed-by: Max Reitz <mreitz@redhat.com>
Reviewed-by: Markus Armbruster <armbru@redhat.com>
Reviewed-by: Stefan Hajnoczi <stefanha@redhat.com>
This commit is contained in:
parent
ebb72c9f06
commit
d208c50d9d
|
@ -1109,6 +1109,8 @@ static int vvfat_open(BlockDriverState *bs, QDict *options, int flags,
|
|||
goto fail;
|
||||
}
|
||||
memcpy(s->volume_label, label, label_length);
|
||||
} else {
|
||||
memcpy(s->volume_label, "QEMU VVFAT", 10);
|
||||
}
|
||||
|
||||
if (floppy) {
|
||||
|
|
Loading…
Reference in New Issue