From owner-freebsd-hackers Fri Sep 20 7:58:14 2002 Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.FreeBSD.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 5B17037B401 for ; Fri, 20 Sep 2002 07:58:13 -0700 (PDT) Received: from relay01.cablecom.net (relay01.cablecom.net [62.2.33.101]) by mx1.FreeBSD.org (Postfix) with ESMTP id 68F9343E3B for ; Fri, 20 Sep 2002 07:58:12 -0700 (PDT) (envelope-from hanspeter_roth@hotmail.com) Received: from smtp.swissonline.ch (mail-4.swissonline.ch [62.2.32.85]) by relay01.cablecom.net (8.12.5/8.12.5/SOL/AWF/MXRELAY/20020820) with ESMTP id g8KEwBZ2096242 for ; Fri, 20 Sep 2002 16:58:11 +0200 (CEST) (envelope-from hanspeter_roth@hotmail.com) Received: from snoopy.here (dclient80-218-74-198.hispeed.ch [80.218.74.198]) by smtp.swissonline.ch (8.11.6/8.11.6/SMTPSOL/AWF/2002040101) with ESMTP id g8KEwBF02680 for ; Fri, 20 Sep 2002 16:58:11 +0200 (MEST) Received: (from hampi@localhost) by snoopy.here (8.11.6/8.11.6) id g8KEwYa00725 for freebsd-hackers@FreeBSD.ORG; Fri, 20 Sep 2002 16:58:34 +0200 (CEST) (envelope-from hanspeter_roth@hotmail.com) Date: Fri, 20 Sep 2002 16:58:34 +0200 From: Hanspeter Roth To: freebsd-hackers@FreeBSD.ORG Subject: Re: How can I access the special disk sector in kernel? Message-ID: <20020920165834.A699@snoopy.cablecom.ch> Reply-To: freebsd-hackers@FreeBSD.ORG Mail-Followup-To: freebsd-hackers@FreeBSD.ORG References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: ; from oykai@msn.com on Tue, Sep 17, 2002 at 06:25:23PM +0800 Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG On Sep 17 at 18:25, kai ouyang spoke: > I want to read the 48th sector in ad0. in kernel space, if I use the > 'open' , 'lseek' , 'read' and 'close', it is wrong! Does `open' fail? How does it fail? NB: you're using charset=gb2312. Why not something like us-ascii? (This list is English.) -Hanspeter To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message