LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software > Linux - Kernel
User Name
Password
Linux - Kernel This forum is for all discussion relating to the Linux kernel.

Notices


Reply
  Search this Thread
Old 10-06-2008, 09:07 AM   #1
Raynus
Member
 
Registered: Apr 2007
Location: BKK, Thailand
Distribution: Gentoo 10.1
Posts: 112
Blog Entries: 2

Rep: Reputation: 15
Creating a simple file system module


i'm trying to write a simple file-system module
and stuck for a while now

the question is
1. How to mount it ? , since the device is needed
some of the tutorial using mount -t none /dev/ " mount_point "
but the error is "the special device none is not exist"

so then , i ve thinkif of another ways ,

creating image , mounting to loop
and mount the loop with my custom fs

but ,since the image must be format to specific partition type before mounting

ie. if mount non-ext3 with mount -t ext3 , error return

so the problem 2 is

2. have i need to write my custom fs utiities too? (like mke2fs,)

ps. According to debug message
my module compile, build , and register_filesystem successfully
 
Old 10-07-2008, 09:20 AM   #2
theNbomr
LQ 5k Club
 
Registered: Aug 2005
Distribution: OpenSuse, Fedora, Redhat, Debian
Posts: 5,399
Blog Entries: 2

Rep: Reputation: 908Reputation: 908Reputation: 908Reputation: 908Reputation: 908Reputation: 908Reputation: 908Reputation: 908
No one has commented on your question for a day now, so I will jump and suggest that a simpler method may be to use fuse (Filesystem in Userspace). Fuse is a kernel module that exports the kernel filesystem API to your own userspace application. This is a useful method of exporting data from an application such that other applications can access it using only filesystem methods (open-read-write-close).
Does your requirement include access to an actual mass storage media that is not presently supported?
--- rod.
 
Old 10-07-2008, 06:39 PM   #3
Raynus
Member
 
Registered: Apr 2007
Location: BKK, Thailand
Distribution: Gentoo 10.1
Posts: 112

Original Poster
Blog Entries: 2

Rep: Reputation: 15
Thanksyou for answering

i'm thinking the way writing my file-syetem kernel module
 
  


Reply



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
simple unix file system problem alokatzenith Programming 16 11-01-2007 06:02 PM
Creating a new File System in Linux. manish.nec Linux - Software 2 02-15-2007 12:59 AM
creating a read/write file system with kickstart triley Linux - General 1 12-29-2005 02:36 AM
creating or modifying file system tanmaya Linux - General 1 12-24-2003 01:03 PM
creating a simple module(device driver) pessanimahi Linux - Software 1 09-16-2003 11:34 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software > Linux - Kernel

All times are GMT -5. The time now is 08:56 PM.

Main Menu
Advertisement
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
Open Source Consulting | Domain Registration