This message generated a parse failure. Raw output follows here. Please use 'back' to navigate. From devnull@lkml.org Fri Apr 19 07:26:39 2024 Delivery-date: Mon, 20 Mar 2006 23:06:46 +0100 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1030555AbWCTWEb (ORCPT ); Mon, 20 Mar 2006 17:04:31 -0500 Received: from odyssey.analogic.com ([204.178.40.5]:7172 "EHLO odyssey.analogic.com") by vger.kernel.org with ESMTP id S1030541AbWCTWEV convert rfc822-to-8bit (ORCPT ); Mon, 20 Mar 2006 17:04:21 -0500 Received: from chaos.analogic.com ([10.112.50.11]) by phoenix.analogic.com with Microsoft SMTPSVC(6.0.3790.211); Mon, 20 Mar 2006 17:04:12 -0500 Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: QUOTED-PRINTABLE X-MimeOLE: Produced By Microsoft Exchange V6.5.7226.0 Received: from chaos.analogic.com (localhost [127.0.0.1]) by chaos.analogic.com (8.12.11/8.12.11) with ESMTP id k2KM4CCI025199; Mon, 20 Mar 2006 17:04:12 -0500 Received: (from linux-os@localhost) by chaos.analogic.com (8.12.11/8.12.11/Submit) id k2KM4CBC025198; Mon, 20 Mar 2006 17:04:12 -0500 In-Reply-To: X-OriginalArrivalTime: 20 Mar 2006 22:04:13.0120 (UTC) FILETIME=[38E1BC00:01C64C6A] content-class: urn:content-classes:message Subject: Re: lstat returns bogus values. Date: Mon, 20 Mar 2006 17:04:12 -0500 Message-Id: X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: lstat returns bogus values. Thread-Index: AcZMajjoub6QtNFATgurkU/9pNAy5A== References: From: "linux-os \(Dick Johnson\)" To: "Andreas Schwab" Cc: "Linux kernel" Reply-To: "linux-os \(Dick Johnson\)" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org On Mon, 20 Mar 2006, Andreas Schwab wrote: > "linux-os (Dick Johnson)" writes: > >> The "kernelly-corrected" stuff should have been returned by lstat() > > What should lstat return for a cdrom device node that has no medium? > Should "ls -l /dev/cdrom" block until you have inserted a CD? > > Andreas. > `ls` only means something when there is a file-system so `ls` is not appropriate until you have a file-system. Currently `ls` on such a block device correctly returns the device type. I think lstat should return -1 and the appropriate error code should be in errno (perhaps ENOMEDIUM). > --=0D > Andreas Schwab, SuSE Labs, schwab@suse.de > SuSE Linux Products GmbH, Maxfeldstra=DFe 5, 90409 N=FCrnberg, German= y > PGP key fingerprint =3D 58CA 54C7 6D53 942B 1756 01D3 44D5 214B 8276= 4ED5 > "And now for something completely different." > Cheers, Dick Johnson Penguin : Linux version 2.6.15.4 on an i686 machine (5589.48 BogoMips). Warning : 98.36% of all statistics are fiction, book release in April. _ =1A=04 **************************************************************** The information transmitted in this message is confidential and may be = privileged. Any review, retransmission, dissemination, or other use of= this information by persons or entities other than the intended recipi= ent is prohibited. If you are not the intended recipient, please notif= y Analogic Corporation immediately - by replying to this message or by = sending an email to DeliveryErrors@analogic.com - and destroy all copie= s of this information, including any attachments, without reading or di= sclosing them. Thank you. - To unsubscribe from this list: send the line "unsubscribe linux-kernel"= in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/