LinuxQuestions.org
Support LQ: Use code LQ3 and save $3 on Domain Registration
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices

Reply
 
Search this Thread
Old 07-15-2010, 11:35 PM   #1
Zymus
LQ Newbie
 
Registered: Feb 2010
Posts: 14

Rep: Reputation: 1
Creating a Filesystem Driver


Hello, I am trying to create a driver for a particular filesystem format(FATX) because one does not exist natively for linux. So my question is this. I know the format the file system is in, but how do i make a driver for it? I mean, i want people to be able to do, for example
'sudo apt-get install fatx'

And then it downloads the driver, and bam, they can read the fatx file system? What steps would i have to take to accomplish this?
 
Old 07-16-2010, 12:45 AM   #2
sag47
Senior Member
 
Registered: Sep 2009
Location: Philly, PA
Distribution: Kubuntu x64, RHEL, Fedora Core, FreeBSD, Windows x64
Posts: 1,418
Blog Entries: 33

Rep: Reputation: 355Reputation: 355Reputation: 355Reputation: 355
Do you already have the kernel module written? If so then you must follow the debian policy manual before it will be accepted into any of the debian repositories.

http://www.debian.org/doc/debian-policy/
 
Old 07-16-2010, 12:47 AM   #3
zaks_974
LQ Newbie
 
Registered: Jul 2010
Location: Bangalore
Distribution: fedora
Posts: 24

Rep: Reputation: 1
Hi Zymus,

apt-get and tools alike are used for user space packages and NOT for kernel space modules (drivers). If at all you plan to write your driver, you could write the driver and test it and release it to the kernel groups (maintaiiners), they could take the same and incorporate in the main kernel if they find it good.

OR

Write the driver and release the source code. Tell people against which version of linux you have compiled. Needed users can download the source files and build the module with the command
make -C /usr/src/`uname -r` SUBDIRS=$PWD modules
 
Old 07-16-2010, 01:54 AM   #4
jf.argentino
Member
 
Registered: Apr 2008
Location: Toulon (France)
Distribution: FEDORA CORE
Posts: 492

Rep: Reputation: 50
Or use FUSE to write your driver in user mode. I'd start with that solution before trying to make a kernel-land driver.
 
Old 07-16-2010, 02:42 AM   #5
Zymus
LQ Newbie
 
Registered: Feb 2010
Posts: 14

Original Poster
Rep: Reputation: 1
I do not have the kernel module written. What steps(and in what language) do i have to take to get started from the absolute start?
 
Old 07-16-2010, 06:34 AM   #6
zaks_974
LQ Newbie
 
Registered: Jul 2010
Location: Bangalore
Distribution: fedora
Posts: 24

Rep: Reputation: 1
kernel is in C and hence your module should also be in C

Google search for writing device drivers from scratch and you will find many results for the same
 
Old 07-16-2010, 05:34 PM   #7
jf.argentino
Member
 
Registered: Apr 2008
Location: Toulon (France)
Distribution: FEDORA CORE
Posts: 492

Rep: Reputation: 50
Quote:
What steps(and in what language)
Use FUSE...

1) Kernel development is far more difficult than user space ("normal") programming. With FUSE, you can do the sugar for your fs in user space.

2) Kernel modules are in C, no alternative there (see this and that). With FUSE come plenty of different languages wrappers.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Creating a Encripted Filesystem krukoski Linux - Newbie 2 09-16-2008 03:21 PM
creating zfs filesystem jmral23 Solaris / OpenSolaris 2 01-08-2007 02:35 PM
creating a filesystem for NFS ashlesha Linux - Software 0 10-31-2006 01:26 PM
Creating Filesystem for.. j_miguel_y Linux - General 1 06-10-2004 01:53 PM
creating a new filesystem? kkempter Linux - Software 3 08-16-2003 07:48 AM


All times are GMT -5. The time now is 08:14 AM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration