mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: "Pekka Enberg" <penberg@cs.helsinki.fi>
To: chinmaya@innomedia.soft.net
Cc: "Linux Kernel" <linux-kernel@vger.kernel.org>
Subject: Re: How to mount own file system in linux
Date: Wed, 19 Jul 2006 11:56:25 +0300	[thread overview]
Message-ID: <84144f020607190156q1de9893ek3e5b800ee181e1a@mail.gmail.com> (raw)
In-Reply-To: <44BDF21B.60207@innomedia.soft.net>

Hi,

On 7/19/06, Chinmaya Mishra <chinmaya4@gmail.com> wrote:
> Can you suggest me where I can get some good documents to proceed or any
> dummy code if any.

See fs/ramfs/ for an example. There's also Documentation/filesystems/vfs.txt.

On 7/19/06, Chinmaya Mishra <chinmaya4@gmail.com> wrote:
> I have tried this with the following code but it gives some warning
> messages during compilation. The file system is registered but during
> the mount command segmentation fault occurs.

So maybe pay attention to the warnings?

> static struct super_block *rfs_read_super( struct super_block *sb, void
> *buf, int size);
> static struct file_system_type rfs = {"rfs", 0, rfs_read_super, NULL};

There's no read_super in struct file_system_type. See
include/linux/fs.h for details.

> int init_module(void) {

[snip]

> void cleanup_module(void) {

[snip]

This is the old way. You really want to be using module_init and
module_exit macros.

      reply	other threads:[~2006-07-19  8:56 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-07-19  8:49 Chinmaya Mishra
2006-07-19  8:56 ` Pekka Enberg [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=84144f020607190156q1de9893ek3e5b800ee181e1a@mail.gmail.com \
    --to=penberg@cs.helsinki.fi \
    --cc=chinmaya@innomedia.soft.net \
    --cc=linux-kernel@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®