This is the mail archive of the ecos-discuss@sources.redhat.com mailing list for the eCos project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

RE: Block devices vs Character devices.


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

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]