From owner-freebsd-hackers Tue Sep 17 3:25:25 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 9993C37B404 for ; Tue, 17 Sep 2002 03:25:24 -0700 (PDT) Received: from hotmail.com (f41.pav0.hotmail.com [64.4.32.225]) by mx1.FreeBSD.org (Postfix) with ESMTP id 2796F43E88 for ; Tue, 17 Sep 2002 03:25:24 -0700 (PDT) (envelope-from oykai@msn.com) Received: from mail pickup service by hotmail.com with Microsoft SMTPSVC; Tue, 17 Sep 2002 03:25:24 -0700 Received: from 210.12.61.105 by pv0fd.pav0.hotmail.msn.com with HTTP; Tue, 17 Sep 2002 10:25:23 GMT X-Originating-IP: [210.12.61.105] From: "kai ouyang" To: freebsd-hackers@FreeBSD.org Subject: How can I access the special disk sector in kernel? Date: Tue, 17 Sep 2002 18:25:23 +0800 Mime-Version: 1.0 Content-Type: text/plain; charset=gb2312; format=flowed Message-ID: X-OriginalArrivalTime: 17 Sep 2002 10:25:24.0056 (UTC) FILETIME=[88764D80:01C25E34] 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 Hi,Everybody, I want to read a special sector from my disk in kernel, how can I do? For example: I want to read the 48th sector in ad0. in kernel space, if I use the 'open' , 'lseek' , 'read' and 'close', it is wrong! So I do not know how to do. Thank you! Best Regards Ouyang Kai _________________________________________________________________ 与联机的朋友进行交流,请使用 MSN Messenger: http://messenger.microsoft.com/cn To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message