I have posted a new version of mkfs.vmufat, a tool to make a VMUFAT filesystem, at my GitHub repo: it will now format a file as VMUFAT volume (if you use the -f switch).
Would love to hear your feedback – my posting of the source code for the filesystem itself generated a bit of interest, but have not heard anything back from any Dreamcast hackers though.
Obviously the whole world is waiting for VMUFAT to hit the streets, but it looks as though it will have to hold its collective breath a little longer, as I have hit more delays.
Working with big volumes (several megabytes) reveals the code eats a lot of memory in ways I don’t yet fully understand. But that will need to be fixed, even if no one is ever really likely to want a 32MB VMUFAT volume.
- Spoke too soon (of course) (cartesianproduct.wordpress.com)
It’s like the curse of the software demonstration: it doesn’t break until then.
I discovered as soon as I posted that I was ready to (try to) push the VMUFAT stuff up to main line that there was a bug in the software.
Very large VMUFAT volumes were not being properly handled. But I think I have fixed that now. Some more testing is due, though, before I proclaim victory a second time!
- VMUFAT: almost done (I hope) (cartesianproduct.wordpress.com)
A few attempts to get this in the kernel mainline then followed. It was a bruising experience and unsuccessful. But I am about to try again.
I am a bit more confident this time – not least because I have written some userland code which will allow anyone to test the filesystem out, whether they have a VMU or not: mkfs.vmufat is now available at GitHub – https://github.com/mcmenaminadrian/mkfs.vmufat/blob/master/mkfs.vmufat.c
Secondly I do think I am a better coder thanks to the MSc and have put some effort into fixing the filesystem code itself.
But we’ll see, hopefully tomorrow, how it goes down.
- One of those debugging nights (cartesianproduct.wordpress.com)
- Filesystem works (cartesianproduct.wordpress.com)
- Fan Made Sega Dreamcast Revival Has Me Wishing Sega Still Made Consoles (devicemag.com)
- Fedora puts back Btrfs deployment yet again (h-online.com)
- Maintenance of Linux kernel 2.6.32 is slowing down (h-online.com)
It must be a situation every programmer is familiar with – you write some code, you are pretty pleased with it, but it just doesn’t work and while you know it is only a small thing that is stopping it from functioning properly, but you just cannot track it down.
That is exactly where I am with my code for the “VMUFAT” file system – the file system for the Sega Dreamcast VMU. After a decade of trying (in fits and starts), I now have a code base which I think is good enough, or almost good enough, to post to LKML without me being burnt to a crisp by the subsequent flames.
But it just doesn’t work! Trying to list the files on the device gets a list of 200 copies of the same file (200 is the maximum number of files that a standard VMU can index in its directory blocks and the code throws an error when you exceed that).
The thing is, the old, ugly, code worked at this. But I cannot see what I am doing wrong with the new, clean, code. Indeed it seems to replicate exactly the same functionality. Last night I picked up a couple of bugs in the code quickly but, whilst they addressed one error, they did not fix the big one.
Time for a rotary debugger? Well, it will be a roti debugger in this house, this Friday evening.
- There Was a Dreamcast TV Set. It was Both Hideous and Glorious. [Video] (kotaku.com)
- Working on filesystem code (cartesianproduct.wordpress.com)
- Dreamcast 2 Concept Shows What Could Have Been (escapistmagazine.com)
- SEGA Dreamcast Collection now available for free with OnLive PackPack Bundle (thesegasource.wordpress.com)
- Play the Dreamcast Half-Life That Never Was (escapistmagazine.com)
I never managed to get the thing into mainline – indeed the battering I got last time I tried, in 2009, more or less made me give up writing anything for the kernel and the Dreamcast was put away.
I am not pretending my code was pretty or even particularly good but it is no wonder people get put off from contributing when you get pig ignorant comments like these:
Everything about the on-disk format is tied to the VMU. Until that sinks in, don’t bother sending me email, thanks.
This was someone, who ought to have known better, claiming that it was not possible to have a free standing filesystem for this at all – though they were making their, incorrect, claim in the manner seen all too frequently on the Linux Kernel Mailing List.
No comments. Really. There must be some limits on the language one is willing to use on public maillist, after all.
As you can tell this person – a top flight Linux hacker – did not like my code. And, looking back, I can hardly blame him, it was pretty ugly. But as a help to fix it this is of next to no use – and only serves to demotivate. Nasty computer scientists, again.
Ok, so I have got that off my chest. And I am once more placing myself in the firing line.
The filesystem code, a work in progress (so check where the code has got to once you click the link), can be found here. A filesystem that you should be able to mount under loopback, can be found here. All testers welcomed with open arms.
- Watch your back, Dreamcast VMU, here comes the Turbofire EVO (joystiq.com)
- Fedora Aims To Simplify Linux Filesystem (linux.slashdot.org)
- Fedora Goes Against the Linux Standard Base, Restructures the Filesystem (techie-buzz.com)
- Peter Moore: “I didn’t kill the Dreamcast” (thesegasource.wordpress.com)
I made this a few years ago, but I still like the music – and sooner or later it may be the only proof that the Dreamcast could do this:
(I wrote the sound driver)