From: Andreas Schwab <schwab@suse.de>
To: "linux-os (Dick Johnson)" <linux-os@analogic.com>
Cc: "Linux kernel" <linux-kernel@vger.kernel.org>
Subject: Re: lstat returns bogus values.
Date: Mon, 20 Mar 2006 23:22:40 +0100 [thread overview]
Message-ID: <jeslpcvjrj.fsf@sykes.suse.de> (raw)
In-Reply-To: <Pine.LNX.4.61.0603201655370.25162@chaos.analogic.com> (linux-os@analogic.com's message of "Mon, 20 Mar 2006 17:04:12 -0500")
"linux-os (Dick Johnson)" <linux-os@analogic.com> writes:
> `ls` only means something when there is a file-system so `ls`
> is not appropriate until you have a file-system.
ls just calls lstat on the device node. It doesn't read the device.
> I think lstat should return -1 and the appropriate error code
> should be in errno (perhaps ENOMEDIUM).
But the cdrom device node exists as a file.
Andreas.
--
Andreas Schwab, SuSE Labs, schwab@suse.de
SuSE Linux Products GmbH, Maxfeldstraße 5, 90409 Nürnberg, Germany
PGP key fingerprint = 58CA 54C7 6D53 942B 1756 01D3 44D5 214B 8276 4ED5
"And now for something completely different."
prev parent reply other threads:[~2006-03-20 22:22 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-03-20 18:35 linux-os (Dick Johnson)
2006-03-20 20:35 ` Andreas Schwab
2006-03-20 21:42 ` Jan Engelhardt
2006-03-20 22:04 ` linux-os (Dick Johnson)
2006-03-20 22:22 ` Andreas Schwab [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=jeslpcvjrj.fsf@sykes.suse.de \
--to=schwab@suse.de \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-os@analogic.com \
/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®