From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from [140.186.70.92] (port=38425 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PhORz-0000sb-JK for qemu-devel@nongnu.org; Mon, 24 Jan 2011 10:35:29 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1PhORu-00022S-J5 for qemu-devel@nongnu.org; Mon, 24 Jan 2011 10:35:24 -0500 Received: from mtagate2.uk.ibm.com ([194.196.100.162]:40907) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1PhORu-00022B-BB for qemu-devel@nongnu.org; Mon, 24 Jan 2011 10:35:22 -0500 Received: from d06nrmr1307.portsmouth.uk.ibm.com (d06nrmr1307.portsmouth.uk.ibm.com [9.149.38.129]) by mtagate2.uk.ibm.com (8.13.1/8.13.1) with ESMTP id p0OFZLB3012781 for ; Mon, 24 Jan 2011 15:35:21 GMT Received: from d06av08.portsmouth.uk.ibm.com (d06av08.portsmouth.uk.ibm.com [9.149.37.249]) by d06nrmr1307.portsmouth.uk.ibm.com (8.13.8/8.13.8/NCO v10.0) with ESMTP id p0OFZOna1540204 for ; Mon, 24 Jan 2011 15:35:24 GMT Received: from d06av08.portsmouth.uk.ibm.com (loopback [127.0.0.1]) by d06av08.portsmouth.uk.ibm.com (8.14.4/8.13.1/NCO v10.0 AVout) with ESMTP id p0OFZKdp021812 for ; Mon, 24 Jan 2011 15:35:21 GMT From: Stefan Hajnoczi Date: Mon, 24 Jan 2011 15:35:01 +0000 Message-Id: <1295883301-7278-5-git-send-email-stefanha@linux.vnet.ibm.com> In-Reply-To: <1295883301-7278-1-git-send-email-stefanha@linux.vnet.ibm.com> References: <1295883301-7278-1-git-send-email-stefanha@linux.vnet.ibm.com> Subject: [Qemu-devel] [PATCH v4 4/4] docs: Document scsi-disk and usb-storage removable parameter List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: Kevin Wolf , Stefan Hajnoczi , Christoph Hellwig , "Justin M. Forbes" , Markus Armbruster Signed-off-by: Stefan Hajnoczi --- docs/qdev-device-use.txt | 13 +++++++++++-- 1 files changed, 11 insertions(+), 2 deletions(-) diff --git a/docs/qdev-device-use.txt b/docs/qdev-device-use.txt index f2f9b75..4bb2be8 100644 --- a/docs/qdev-device-use.txt +++ b/docs/qdev-device-use.txt @@ -80,7 +80,11 @@ The -device argument differs in detail for each kind of drive: This SCSI controller a single SCSI bus, named ID.0. Put a disk on it: - -device scsi-disk,drive=DRIVE-ID,bus=ID.0,scsi-id=SCSI-ID + -device scsi-disk,drive=DRIVE-ID,bus=ID.0,scsi-id=SCSI-ID,removable=RMB + + The (optional) removable parameter lets you override the SCSI INQUIRY + removable (RMB) bit for non CD-ROM devices. It is ignored for CD-ROM devices + which are always removable. RMB is "on" or "off". * if=floppy @@ -116,7 +120,12 @@ For USB devices, the old way is actually different: Provides much less control than -drive's HOST-OPTS... The new way fixes that: - -device usb-storage,drive=DRIVE-ID + -device usb-storage,drive=DRIVE-ID,removable=RMB + +The removable parameter gives control over the SCSI INQUIRY removable (RMB) +bit. USB thumbdrives usually set removable=on, while USB hard disks set +removable=off. See the if=scsi description above for details on the removable +parameter, which applies only to scsi-disk devices and not to scsi-generic. === Character Devices === -- 1.7.2.3