public inbox for linux-fsdevel@vger.kernel.org
 help / color / mirror / Atom feed
From: Greg KH <greg@kroah.com>
To: Marcos Dione <mdione@grulic.org.ar>
Cc: linux-fsdevel@vger.kernel.org
Subject: Re: 'Not a directory'
Date: Tue, 28 May 2002 10:51:42 -0700	[thread overview]
Message-ID: <20020528175142.GE11993@kroah.com> (raw)
In-Reply-To: <20020527021840.GD856@tempest.styx.org.ar>

On Sun, May 26, 2002 at 11:18:40PM -0300, Marcos Dione wrote:
> 
>   I'm playing with a new fs developed by myself. I reached the stage
> where I can mount the fs and even read the root's inode. but when I
> try to cd into de mountpoint, chdir(2) complais that 'Not a directory'.
> 
>   doing a 'ls -l' I see that the mountpoint has the mode, dates and
> size of the directory being mounted. the mode is 040755, so I don't
> see the problem. also, using ramfs as reference, I note that the
> directory is not inspected in any way, so I think that is not a
> problem if I didn't developed the super, inode and file ops *yet*.
> 
>   also, I would *really* appreciate any link to any docs about
> implementing filesystems for linux (e.g., what should all the *_ops
> functions must do, return, etc., which should be reimplemented or
> which could be ignored or even use the generic_* ones, and so on)

For a ram based filesystem, there's an ok article in the May issue of
Linux Journal on some of the things you need to do for 2.4:
	http://www.linuxjournal.com/article.php?sid=5633

Also take a look at the code for pcihpfs in the 2.4 kernel at
drivers/hotplug/pci_hotplug_core.c and driverfs and usbfs in the 2.5
kernel for other examples of ram based filesystems that were based off
of ramfs (actually pcihpfs was based off of driverfs which was based off
of ramfs...)

Hope this helps,

greg k-h

      parent reply	other threads:[~2002-05-28 17:51 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-05-27  2:18 'Not a directory' Marcos Dione
2002-05-27  6:48 ` Jan Hudec
2002-05-27  7:28 ` Anton Altaparmakov
2002-05-28 17:51 ` Greg KH [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=20020528175142.GE11993@kroah.com \
    --to=greg@kroah.com \
    --cc=linux-fsdevel@vger.kernel.org \
    --cc=mdione@grulic.org.ar \
    /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