linux-fsdevel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Ronghua Zhang <rz5b@cs.virginia.edu>
To: linux-fsdevel@vger.kernel.org, kernelnewbies@nl.linux.org
Subject: Re: problems in implementing a new file system
Date: Mon, 17 Feb 2003 17:53:29 -0500 (EST)	[thread overview]
Message-ID: <Pine.GSO.4.51.0302171748490.13225@mamba.cs.Virginia.EDU> (raw)
In-Reply-To: <Pine.GSO.4.51.0302171727420.13225@mamba.cs.Virginia.EDU>

Oh, I just forgot to mention that the kernel is 2.4.19 and gcc version is
3.2. I also used uml to trace it, and I found that the 'magic' happens
within get_new_inode():
....
inode->i_sb = sb;
...
if (sb->s_op->read_inode2) sb->s_op->read_inode2(inode, opaque);
else sb->s_op->read_inode(inode);

just before sb->s_op_read_inode() is executed, inode->i_sb is still sb.
But once the function (which is snet_read_inode()) is called, inode->i_sb
just magically point to some other place.

rz


      reply	other threads:[~2003-02-17 22:53 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-02-17 22:43 problems in implementing a new file system Ronghua Zhang
2003-02-17 22:53 ` Ronghua Zhang [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=Pine.GSO.4.51.0302171748490.13225@mamba.cs.Virginia.EDU \
    --to=rz5b@cs.virginia.edu \
    --cc=kernelnewbies@nl.linux.org \
    --cc=linux-fsdevel@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;
as well as URLs for NNTP newsgroup(s).