Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1030218AbVKHRKf (ORCPT ); Tue, 8 Nov 2005 12:10:35 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1030263AbVKHRKf (ORCPT ); Tue, 8 Nov 2005 12:10:35 -0500 Received: from rwcrmhc12.comcast.net ([204.127.198.43]:14513 "EHLO rwcrmhc12.comcast.net") by vger.kernel.org with ESMTP id S1030218AbVKHRKd (ORCPT ); Tue, 8 Nov 2005 12:10:33 -0500 In-Reply-To: References: Mime-Version: 1.0 (Apple Message framework v746.2) Content-Type: text/plain; charset=US-ASCII; delsp=yes; format=flowed Message-Id: <3587A59B-14FA-4E0F-A598-577E944FCF36@comcast.net> Cc: "Linux kernel" Content-Transfer-Encoding: 7bit From: Parag Warudkar Subject: Re: Compatible fstat() Date: Tue, 8 Nov 2005 12:10:25 -0500 To: "linux-os \(Dick Johnson\)" X-Mailer: Apple Mail (2.746.2) Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 620 Lines: 18 On Nov 8, 2005, at 10:48 AM, linux-os ((Dick Johnson)) wrote: > The Linux fstat() doesn't return any information number of blocks, > or the byte-length of a physical hard disk. I don't think (f)stat returns size and blocks information about a block device on any UNIX platform. But I don't know for sure how to get it - perhaps ioctl on the device? BLKGETSIZE? Parag - 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/