Welcome, Guest. Please login or register.
Amiga Kit Amiga Store Iridium Banner AMIStore App Store A1200/A600 4xIDE Interface

AuthorTopic: Simplest filesystem with source available?  (Read 1383 times)

0 Members and 1 Guest are viewing this topic.

Offline NorthWay

Simplest filesystem with source available?
« on: June 08, 2012, 04:33:07 PM »
What is the simplest complete read/write filesystem with source that I can find?

Simplest in this setting is smallest or easiest/cleanest source to understand and modify.
Preferably in asm, but SAS/C or freeware from AmiNet is ok for building.
 

Offline Ezrec

Re: Simplest filesystem with source available?
« Reply #1 on: June 08, 2012, 08:06:18 PM »
The filesystems in the AROS ABI_V1 branch are all AmigaOS 3.x compatible and in source form. Take your pick!

https://gitorious.org/aros/aros/trees/ABI_V1/AROS/rom/filesys

https://gitorious.org/aros/aros/trees/ABI_V1/AROS/workbench/fs
 

Offline rewlako

Re: Simplest filesystem with source available?
« Reply #2 on: June 08, 2012, 08:14:16 PM »
Does it have to be Amiga specific?  If not, FAT16 is pretty well-documented and very simple to implement.  Not the best choice by far, but you said "simple", so...

There are also many C implementations of it available on the Internet.  Google and thou shalt find.
 

Offline NorthWay

Re: Simplest filesystem with source available?
« Reply #3 on: June 09, 2012, 12:48:01 AM »
Quote from: rewlako;695727
Does it have to be Amiga specific?

That was kinda my hope. Something I have half a handle on.

I just want to try an idea I have been waiting for someone else to implement, but which has never happened. The FS and Amiga interface should to be as simple and clean as possible to make it easy to make changes and try it out.

The FS can be as rudimentary as you like as long as I can read and write files to the mounted volume.
 


Offline Piru

  • \' union select name,pwd--
  • Hero Member
  • *****
  • Join Date: Aug 2002
  • Posts: 6946
  • Total likes: 0
    • http://www.iki.fi/sintonen/
Re: Simplest filesystem with source available?
« Reply #5 on: June 09, 2012, 04:33:35 PM »
Quote from: Cosmos;695812
PFS3 : http://aminet.net/package/disk/misc/PFS3src

PFS3 certainly isn't the simplest.

Regardless, the aminet src archive is of old version and contain several unfixed bugs. The sourceforge pfs-amiga project is much better resource: http://sourceforge.net/projects/pfs-amiga/
 

Offline chris

Re: Simplest filesystem with source available?
« Reply #6 on: June 11, 2012, 08:46:45 PM »
Quote from: NorthWay;695769
That was kinda my hope. Something I have half a handle on.

I just want to try an idea I have been waiting for someone else to implement, but which has never happened. The FS and Amiga interface should to be as simple and clean as possible to make it easy to make changes and try it out.

The FS can be as rudimentary as you like as long as I can read and write files to the mounted volume.


If you're looking for Amiga filesystem code (as in, a filesystem module that AmigaOS can use, rather than code for a Amiga filesystem that works on anything), then empty-handler might be worth checking out.  It's a handler rather than a real filesystem, but the principles are the same. It also only supports reading, but it's pretty easy to add writing once you see how to read (as it's mostly the same). http://aminet.net/package/dev/c/emptyhandler

When you understand that, compare it to real filesystem source code to see how to link to a device/partition.

You will also need a copy of the AmigaDOS packet interface specification otherwise you will get nowhere.  I find the AmigaMail document on the DevCD 2.1 to be a good (albeit old) reference.
"Miracles we do at once, the impossible takes a little longer" - AJS on Hyperion
Avatar picture is Tabitha by Eric W Schwartz