qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Qemu-devel] [PATCH] SAMBA multi-share support


From: Stealth Dave
Subject: [Qemu-devel] [PATCH] SAMBA multi-share support
Date: Mon, 13 Feb 2006 12:21:54 -0800

Apparently it was an easier itch to scratch than I thought it would be! :) Attached is a patch which allows multiple samba shares to be loaded within the qemu virtual machine. The old syntax is still supported and is completely backwards compatible. Each folder and share name is separated by a colon (:), and each folder/share pair is separated by a comman. To share multiple folders, use the following syntax:

qemu hd.img -smb /path/to/dir1:share1,/path/to/dir2:share2

dir1 can be mounted as "share1", dir2 as "share2", etc. The number of shares is limited by a total of 1024 characters, but is otherwise unlimited. There is no sanity checking, as an error would simply cause the smb daemon to not launch but otherwise not affect the running of qemu. Using the old syntax:

qemu hd.img -smb /path/to/dir

will fall back to the old behavior of being shared at "qemu". The attached patch applies cleanly to current CVS, and updates vl.c and qemu-doc.texi (documentation update).

- Dave

P.S. - Anyone want to tackle that compressed vm file? :D

Attachment: smb-multishare.patch
Description: Binary data


reply via email to

[Prev in Thread] Current Thread [Next in Thread]