From: Nikita Danilov <Nikita@Namesys.COM>
To: Andreas Schwab <schwab@suse.de>
Cc: Erik Mouw <J.A.K.Mouw@its.tudelft.nl>,
Adrian McMenamin <adrian@mcmen.demon.co.uk>,
linux-kernel@vger.kernel.org
Subject: Re: inode values in file system driver
Date: Tue, 13 May 2003 18:47:42 +0400 [thread overview]
Message-ID: <16065.1422.44816.110091@laputa.namesys.com> (raw)
In-Reply-To: <je3cjihq6h.fsf@sykes.suse.de>
Andreas Schwab writes:
> Erik Mouw <J.A.K.Mouw@its.tudelft.nl> writes:
>
> |> On Sat, May 10, 2003 at 09:18:20PM +0100, Adrian McMenamin wrote:
> |> > Am I allowed to assign the value 0 to an inode in a file system driver? I seem
> |> > to be having problems with a file that is being assigned this inode value
> |> > (its a FAT based filesystem so the inode values are totally artificial).
> |>
> |> Yes, you are. However, glibc thinks that inode 0 is special and won't
> |> show it.
>
> BS. This has nothing at all to do with glibc.
from glibc-2.2.4/sysdeps/unix/readdir.c:
/* Skip deleted files. */
} while (dp->d_ino == 0);
In other words, readdir(3) will not return dirent for inode with ino 0.
>
> Andreas.
>
Nikita.
next prev parent reply other threads:[~2003-05-13 14:35 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2003-05-10 20:18 inode values in file system driver Adrian McMenamin
2003-05-13 13:51 ` Erik Mouw
2003-05-13 14:33 ` Andreas Schwab
2003-05-13 14:47 ` Nikita Danilov [this message]
2003-05-13 14:56 ` Andreas Schwab
2003-05-13 18:54 ` Adrian McMenamin
2003-05-14 18:31 ` Adrian McMenamin
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=16065.1422.44816.110091@laputa.namesys.com \
--to=nikita@namesys.com \
--cc=J.A.K.Mouw@its.tudelft.nl \
--cc=adrian@mcmen.demon.co.uk \
--cc=linux-kernel@vger.kernel.org \
--cc=schwab@suse.de \
/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