From: Andreas Schwab <schwab@suse.de>
To: Nikita Danilov <Nikita@Namesys.COM>
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 16:56:56 +0200 [thread overview]
Message-ID: <jeptmmgaiv.fsf@sykes.suse.de> (raw)
In-Reply-To: <16065.1422.44816.110091@laputa.namesys.com> (Nikita Danilov's message of "Tue, 13 May 2003 18:47:42 +0400")
Nikita Danilov <Nikita@Namesys.COM> writes:
|> 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.
I stand corrected. I was thinking of getdirentries, which does not have
this problem. But this is traditional Unix behaviour.
Andreas.
--
Andreas Schwab, SuSE Labs, schwab@suse.de
SuSE Linux AG, Deutschherrnstr. 15-19, D-90429 Nürnberg
Key fingerprint = 58CA 54C7 6D53 942B 1756 01D3 44D5 214B 8276 4ED5
"And now for something completely different."
next prev parent reply other threads:[~2003-05-13 14:44 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
2003-05-13 14:56 ` Andreas Schwab [this message]
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=jeptmmgaiv.fsf@sykes.suse.de \
--to=schwab@suse.de \
--cc=J.A.K.Mouw@its.tudelft.nl \
--cc=Nikita@Namesys.COM \
--cc=adrian@mcmen.demon.co.uk \
--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