summaryrefslogtreecommitdiffstats
path: root/qapi
diff options
context:
space:
mode:
authorWolfgang Bumiller <w.bumiller@proxmox.com>2015-06-19 11:35:29 +0200
committerStefan Hajnoczi <stefanha@redhat.com>2015-06-23 15:06:17 +0100
commitd5941ddae82a35771656d7e35f64f7f8f19c5627 (patch)
tree79d6fadb0e3f155456ab09ec7a8ecf5809c3f9b7 /qapi
parentc6a8c3283f1d53e360073bdb32f87a97e78e2880 (diff)
downloadhqemu-d5941ddae82a35771656d7e35f64f7f8f19c5627.zip
hqemu-d5941ddae82a35771656d7e35f64f7f8f19c5627.tar.gz
vvfat: add a label option
Until now the vvfat volume label was hardcoded to be "QEMU VVFAT", now you can pass a file.label=labelname option to the -drive to change it. The FAT structure defines the volume label to be limited to 11 bytes and is filled up spaces when shorter than that. The trailing spaces however aren't exposed to the user by operating systems. [Added missing comment '#' characters in block-core.json to fix build errors. --Stefan] Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com> Message-id: 1434706529-13895-2-git-send-email-w.bumiller@proxmox.com Reviewed-by: Eric Blake <eblake@redhat.com> Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
Diffstat (limited to 'qapi')
-rw-r--r--qapi/block-core.json6
1 files changed, 5 insertions, 1 deletions
diff --git a/qapi/block-core.json b/qapi/block-core.json
index afa9d3d..766d690 100644
--- a/qapi/block-core.json
+++ b/qapi/block-core.json
@@ -1453,13 +1453,17 @@
# @fat-type: #optional FAT type: 12, 16 or 32
# @floppy: #optional whether to export a floppy image (true) or
# partitioned hard disk (false; default)
+# @label: #optional set the volume label, limited to 11 bytes. FAT16 and
+# FAT32 traditionally have some restrictions on labels, which are
+# ignored by most operating systems. Defaults to "QEMU VVFAT".
+# (since 2.4)
# @rw: #optional whether to allow write operations (default: false)
#
# Since: 1.7
##
{ 'struct': 'BlockdevOptionsVVFAT',
'data': { 'dir': 'str', '*fat-type': 'int', '*floppy': 'bool',
- '*rw': 'bool' } }
+ '*label': 'str', '*rw': 'bool' } }
##
# @BlockdevOptionsGenericFormat
OpenPOWER on IntegriCloud