From: Magnus Damm <magnus.damm@gmail.com>
To: qemu-devel@nongnu.org
Subject: Re: [Qemu-devel] Patch: virtual vfat support
Date: Sun, 19 Dec 2004 20:32:30 +0100 [thread overview]
Message-ID: <aec7e5c304121911323f12eb84@mail.gmail.com> (raw)
In-Reply-To: <Pine.LNX.4.58.0412191905310.3718@wgmdd8.biozentrum.uni-wuerzburg.de>
Hello,
Great idea, really cool! Now if someone could add USB support and we
could hook up your code as an virtual USB storage device, then
hotplugging could then be used to update the state of the
filesystem...
/ magnus
On Sun, 19 Dec 2004 19:15:18 +0100 (CET), Johannes Schindelin
<Johannes.Schindelin@gmx.de> wrote:
> Hi,
>
> I proudly present the alpha version of my vvfat block driver:
>
> http://libvncserver.sf.net/qemu/qemu-vvfat.patch.gz
>
> So what is it? By calling QEmu with "-hda vvfat:some/directory", you can
> access the files in that directory via an emulated (virtual) VFAT device.
> (Yes, from the guest OS you can read the files and subdirectories of one
> of the host OS' directories, and yes, this should eventually solve the SMB
> on DOS problem).
>
> Warning: this is the first alpha version (read only). 2nd warning: If you
> access the files from within QEmu and change the contents from without,
> you're likely to get corrupt data inside QEmu.
>
> How it works: It fakes an mbr, as well as one partition with boot sector
> FAT and directory. The rest of that partition is transparently mapped to
> the files in the local directory. I used a fixed big size of this virtual
> hard drive, because as it is all fake, space is cheap...
>
> When the directory is built, the block driver recurses into the given
> directory, and "stores" them just after the 2nd FAT. After that, the FAT
> is built, "storing" all files subsequently at the first "free" clusters.
>
> Why VFAT? Because almost every OS has support for it, at least now that
> every digital camera and USB stick and maybe even your washing machine is
> using it. And chances are good that Microschrott cannot patent it, much as
> it may try.
>
> It works with a Linux guest. I tried with FreeDOS, but it's not able to
> access the hard disk. Why doesn't it work with FreeDOS? No idea. This is
> my priority for now. Although, if you want to help, you're so welcome.
>
> After that, I will try to add write support. This will be a little bit of
> guess work, as QEmu cannot be completely sure in which order the
> transaction (write new sector, write FAT, write directory entry) will
> happen. Maybe it's possible to trigger the update whenever the last of
> those three actions happened. I don't know. I am tired.
>
> Ciao,
> Dscho
>
> _______________________________________________
> Qemu-devel mailing list
> Qemu-devel@nongnu.org
> http://lists.nongnu.org/mailman/listinfo/qemu-devel
>
next prev parent reply other threads:[~2004-12-19 19:43 UTC|newest]
Thread overview: 15+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-12-19 18:15 [Qemu-devel] Patch: virtual vfat support Johannes Schindelin
2004-12-19 19:32 ` Magnus Damm [this message]
2004-12-19 19:44 ` Johannes Schindelin
2004-12-19 20:40 ` Magnus Damm
2004-12-19 22:33 ` Johannes Schindelin
2004-12-19 23:01 ` Andreas Bollhalder
2004-12-20 15:12 ` Johannes Schindelin
2004-12-19 21:02 ` Panagiotis Issaris
2004-12-19 22:37 ` Johannes Schindelin
2004-12-20 8:32 ` zitu
2004-12-20 15:25 ` Johannes Schindelin
[not found] <Pine.LNX.4.58.0412202329290.8198@wgmdd8.biozentrum.uni-wuerzburg.de>
2004-12-21 22:47 ` Andreas Bollhalder
2004-12-22 18:55 ` Johannes Schindelin
2004-12-23 1:02 ` André Braga
2004-12-23 18:31 ` Andreas Bollhalder
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=aec7e5c304121911323f12eb84@mail.gmail.com \
--to=magnus.damm@gmail.com \
--cc=qemu-devel@nongnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).