amiga.org
     
iconAll times are GMT -6. The time now is 05:16 PM. | Welcome to Forum, please register to access all of our features.

» Amiga.org » Operating System Specific Discussions » Amiga OS » Amiga OS -- Development » Simplest filesystem with source available?

Amiga OS -- Development This particular forum deals with issues regarding development for all versions of AmigaOS.

Reply
 
Thread Tools Display Modes
Old 06-08-2012, 09:33 AM   #1
NorthWay
Too much caffeine
Points: 7,603, Level: 58 Points: 7,603, Level: 58 Points: 7,603, Level: 58
Activity: 11% Activity: 11% Activity: 11%
 
Join Date: May 2003
Posts: 93
Default Simplest filesystem with source available?

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.
NorthWay is offline   Reply With Quote
Old 06-08-2012, 01:06 PM   #2
Ezrec
Beginner
Points: 1,949, Level: 26 Points: 1,949, Level: 26 Points: 1,949, Level: 26
Activity: 1% Activity: 1% Activity: 1%
 
Join Date: Aug 2010
Location: Pittsburgh, PA
Posts: 26
Default Re: Simplest filesystem with source available?

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/tree...OS/rom/filesys

https://gitorious.org/aros/aros/tree...S/workbench/fs
Ezrec is offline   Reply With Quote
Old 06-08-2012, 01:14 PM   #3
rewlako
Beginner
Points: 852, Level: 15 Points: 852, Level: 15 Points: 852, Level: 15
Activity: 2% Activity: 2% Activity: 2%
 
Join Date: Apr 2012
Location: Belgium
Posts: 32
Default Re: Simplest filesystem with source available?

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.
rewlako is offline   Reply With Quote
Old 06-08-2012, 05:48 PM   #4
NorthWay
Too much caffeine
Points: 7,603, Level: 58 Points: 7,603, Level: 58 Points: 7,603, Level: 58
Activity: 11% Activity: 11% Activity: 11%
 
Join Date: May 2003
Posts: 93
Default Re: Simplest filesystem with source available?

Quote:
Originally Posted by rewlako View Post
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.
NorthWay is offline   Reply With Quote
Old 06-09-2012, 08:25 AM   #5
Cosmos
Technoid
Points: 7,560, Level: 58 Points: 7,560, Level: 58 Points: 7,560, Level: 58
Activity: 10% Activity: 10% Activity: 10%
 
Cosmos's Avatar
 
Join Date: Jan 2007
Posts: 363
Default Re: Simplest filesystem with source available?

PFS3 : http://aminet.net/package/disk/misc/PFS3src
Cosmos is offline   Reply With Quote
Old 06-09-2012, 09:33 AM   #6
Piru
' union select name,pwd--
Points: 30,457, Level: 100 Points: 30,457, Level: 100 Points: 30,457, Level: 100
Activity: 69% Activity: 69% Activity: 69%
 
Piru's Avatar
 
Join Date: Aug 2002
Location: Helsinki, Finland
Posts: 6,946
Default Re: Simplest filesystem with source available?

Quote:
Originally Posted by Cosmos View Post
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/
Piru is offline   Reply With Quote
Old 06-11-2012, 01:46 PM   #7
chris
Cult Member
Points: 10,477, Level: 68 Points: 10,477, Level: 68 Points: 10,477, Level: 68
Activity: 7% Activity: 7% Activity: 7%
 
chris's Avatar
 
Join Date: Mar 2002
Posts: 600
Send a message via ICQ to chris
Default Re: Simplest filesystem with source available?

Quote:
Originally Posted by NorthWay View Post
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
chris is offline   Reply With Quote
Reply

Bookmarks

Tags
filesystem , simplest , source

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump