Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1F7LX4-0002iE-HH for qemu-devel@nongnu.org; Thu, 09 Feb 2006 18:49:02 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1F7LWx-0002gw-M6 for qemu-devel@nongnu.org; Thu, 09 Feb 2006 18:49:02 -0500 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1F7LWx-0002gp-6V for qemu-devel@nongnu.org; Thu, 09 Feb 2006 18:48:55 -0500 Received: from [69.56.188.178] (helo=server01.killobyte.com) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA:32) (Exim 4.52) id 1F7Lab-0004qS-3s for qemu-devel@nongnu.org; Thu, 09 Feb 2006 18:52:41 -0500 Received: from [12.35.64.42] (helo=[10.210.16.102]) by server01.killobyte.com with esmtp (Exim 4.52) id 1F7LWv-0003Ed-Nu for qemu-devel@nongnu.org; Thu, 09 Feb 2006 15:48:53 -0800 Mime-Version: 1.0 (Apple Message framework v623) Content-Transfer-Encoding: 7bit Message-Id: Content-Type: text/plain; charset=US-ASCII; format=flowed From: Stealth Dave Date: Thu, 9 Feb 2006 15:48:48 -0800 Subject: [Qemu-devel] FEATURE REQUESTS: multiple smb folders and compressed vm file support Reply-To: qemu-devel@nongnu.org List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: QEMU I have a couple of feature requests that should be fairly simple for an experienced C developer to implement: First, allowing multiple folder support for built-in smb. By adding parameters and formatting to the -smb attribute, the command-line could be parsed to allow multiple folders to be supported in qemu: # qemu hd.img -smb /home/user:home,/mnt/usbdrive:flashdrive By using commas to delineate each share and a colon to separate the path from the share name, you can easily allow a nearly unlimited number of smb shares. In the above example, the folder "/home/user" would be available a smb share "home" and "/mnt/usbdrive" would be "flashdrive". The resulting smbd.conf generated would look something like this: [global] private dir=/tmp/qemu-smb.903 smb ports=0 socket address=127.0.0.1 pid directory=/tmp/qemu-smb.903 lock directory=/tmp/qemu-smb.903 log file=/tmp/qemu-smb.903/log.smbd smb passwd file=/tmp/qemu-smb.903/smbpasswd security = share [home] path=/home/user read only=no guest ok=yes [flashdrive] path=/mnt/usbdrive read only=no guest ok=yes If no ":" is found, it can default to "qemu" to provide simple backwards compatibility. It's just a matter of parsing, which is beyond my level of C programming. If QEMU were written in PHP, we'd be golden! ;) The second request may be a little trickier, but probably not too much. The memory dump created by savevm is the same size as the amount of memory used by QEMU for virtual memory. Since this is only loaded once, wouldn't it make since to compress this file to save space? Perhaps using zlib or some other portable library that could easily be included in QEMU? It should be trivial to perform a check for a compressed vm image for backwards compatibility. I hope someone will find it in their heart to work on these at some point. The former specifically would be helpful for a small project that I am working on, but I think that they are also of general usefulness. Thanks, - Dave