This is the mail archive of the
ecos-discuss@sources.redhat.com
mailing list for the eCos project.
RE: Block devices vs Character devices.
- To: "Jonathan Larmour" <jlarmour at redhat dot com>
- Subject: RE: [ECOS] Block devices vs Character devices.
- From: <felixwong at i-technologies dot cc>
- Date: Mon, 5 Nov 2001 10:06:37 +0800
- Cc: "Ecos-Discuss" <ecos-discuss at sources dot redhat dot com>
You are right. I missed out my modification for subroutine "dev_fo_lseek" in "devfs.cxx".
The modification should be:
// *pos = 0; << old line.
fp->f_offset = *pos; << my updated line.
These are the minimum modifications (together with mods in "dev_fo_read" & "dev_fo_write")
for my application.
As my harddisk device require partition storage size larger than 2GB.
Another change would be in "ecos\packages\isoinfra\current\include\sys\types.h"
typedef unsigned long long off_t; (originally "long" instead of "long long")
This update is only required for >2GB storage devices.
FW.
-----Original Message-----
From: jlarmour@cambridge.redhat.com [mailto:jlarmour@cambridge.redhat.com]On Behalf Of Jonathan Larmour
Sent: Saturday, November 03, 2001 1:38 AM
To: felixwong@i-technologies.cc
Cc: Ecos-Discuss
Subject: Re: [ECOS] Block devices vs Character devices.
felixwong@i-technologies.cc wrote:
>
> Here is my modification of "devfs.cxx" for block device. Will the
> eCos update include block devices soon?
You mean when will it include your patch? It just missed today's update, so
it will probably be in just over two weeks when I return from vacation and
can do another update.
Something should probably be done about dev_fo_lseek too.
Jifl
--
Red Hat, Rustat House, Clifton Road, Cambridge, UK. Tel: +44 (1223) 271062
Maybe this world is another planet's Hell -Aldous Huxley || Opinions==mine