Welcome to the MacNN Forums.

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

You are here: MacNN Forums > Software - Troubleshooting and Discussion > Developer Center > Custom filesystems

Custom filesystems
Thread Tools
Forum Regular
Join Date: Oct 2000
Location: Portland, OR USA
Status: Offline
Reply With Quote
Mar 7, 2002, 12:08 PM
 
Does anyone know where I can find references/examples on writing a filesystem for OS X. I want to have an ftpfs like webdavfs and smbfs so that FTP can be an integral part of the Finder. This will also require altering the behavior of "ftp:" URLs in the "Connect to..." dialog.
     
Dedicated MacNNer
Join Date: Nov 2000
Status: Offline
Reply With Quote
Mar 9, 2002, 12:20 AM
 
Originally posted by LordJavac:
<STRONG>Does anyone know where I can find references/examples on writing a filesystem for OS X. I want to have an ftpfs like webdavfs and smbfs so that FTP can be an integral part of the Finder. This will also require altering the behavior of "ftp:" URLs in the "Connect to..." dialog.</STRONG>
Please be advised that writing a filesystem for OSX is far from trivial, but if you're still interested, read on.

OSX uses the BSD VFS(Virtual Filesystem Switch) for filesystems. Your best bet for a reference would be The Design and Implementation of the 4.4 BSD Operating System. The best place to look for examples would be the Darwin source. In particular, look at the UFS code and the MSDOFS code. You'll also need to read Apple's kext tutorial in order to register your spiffy new filesystem with the VFS. Adding to the fun is the fact that much of the Darwin source is pre-ANSI C.

I hope for your sake that you are also referred to as LordC.
     
v8q
Junior Member
Join Date: Mar 2002
Status: Offline
Reply With Quote
Mar 11, 2002, 03:43 PM
 
While your at it, how about making a linux ext2 file system for OSX?
Then I could play with my Tivo disks right from the OSX :-)
     
   
Thread Tools
Forum Links
Forum 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
Trackbacks are On
Pingbacks are On
Refbacks are On
Top
Privacy Policy
All times are GMT -5. The time now is 12:15 PM.
All contents of these forums © 1995-2011 MacNN. All rights reserved.
Branding + Design: www.gesamtbild.com
vBulletin v.3.8.7 © 2000-2011, Jelsoft Enterprises Ltd., Content Relevant URLs by vBSEO 3.3.2