From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Dz3gR-00042z-Jr for qemu-devel@nongnu.org; Sat, 30 Jul 2005 22:36:11 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Dz3gP-00041w-Mq for qemu-devel@nongnu.org; Sat, 30 Jul 2005 22:36:11 -0400 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Dz3ef-0003Or-Om for qemu-devel@nongnu.org; Sat, 30 Jul 2005 22:34:21 -0400 Received: from [131.111.8.131] (helo=ppsw-1.csi.cam.ac.uk) by monty-python.gnu.org with esmtp (Exim 4.34) id 1Dz3IK-0003Yu-IM for qemu-devel@nongnu.org; Sat, 30 Jul 2005 22:11:16 -0400 From: Mark Williamson Subject: Re: [Qemu-devel] file system sharing Date: Sun, 31 Jul 2005 02:58:12 +0100 References: In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200507310258.13169.mark.williamson@cl.cam.ac.uk> Reply-To: qemu-devel@nongnu.org List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: "Eric S. Johansson" > can I write a file based file system and read it from the host? I can > guarantee I have stopped writing before I read on the host side. I can > even unmount before reading. If only one machine (host or guest) has mounted the device then it should always be safe to do this. You may get away with read only mounting in one and writing in the other but it's not a reliable solution. Never allow more than one writer to the filesystem - this does bad things to your filesystem! If you're using a file-based disk and it's partitioned you'll need to use lomount http://www.dad-answers.com/qemu/utilities/QEMU-HD-Mounter/lomount/ to mount the right partition in the host. > ideally, I would like to "import" my flash memory device into the guest > OS side (USB based) but if I can create a "virtual" flash disk and when > I'm done modifying it, physically copy the file based image to the > physical flash, I would be happy. I imagine just giving the guest access to the device file would work. HTH, Mark