Forum Topic - new ETFS lib... : (3 Items)
   
new ETFS lib...  
Hi,

on the background of the problems we're currently having with ETFS, I tried to build with a newer version of the etfslib
 (just got it from the svn).

Unfortunately, it won't build as some interfaces have changed, and I don't know where to start looking..:

etfs.c:
struct etfs_devio is expected to have a member called "numrblks", which it doesn't have in the old version.
ETFS_TRANS_RETIRE is not defined.

I suppose those are defined in etfs.h, which came in the prebuilt dir of my old BSP. etfs.h is not included with the 
etfslib. The latest mpc8313 BSP doesn't include etfs.h, so I have no starting point..

I suppose I also need to modify my BSP part of ETFS to work with the new etfslib?

Greetings,
 Marc
RE: new ETFS lib...  
Marc,

The new header file should be at lib/etfs/public/fs/etfs.h.  A "make
install" or "make hinstall" will put it in /usr/include/fs.  The
devio_retireblk() function, and TRANS_RETIRE defines are supposed to be
in there.  Looking at the repository, I do see the new devio_retireblk.c
file, and the updated header.

I see numrblks in there also.

What version of the library are you trying to build with?

David
 

> -----Original Message-----
> From: Marc Roessler [mailto:community-noreply@qnx.com] 
> Sent: April 17, 2009 12:00 PM
> To: general-filesystems
> Subject: new ETFS lib... 
> 
> Hi,
> 
> on the background of the problems we're currently having with 
> ETFS, I tried to build with a newer version of the etfslib 
> (just got it from the svn).
> 
> Unfortunately, it won't build as some interfaces have 
> changed, and I don't know where to start looking..:
> 
> etfs.c:
> struct etfs_devio is expected to have a member called 
> "numrblks", which it doesn't have in the old version.
> ETFS_TRANS_RETIRE is not defined.
> 
> I suppose those are defined in etfs.h, which came in the 
> prebuilt dir of my old BSP. etfs.h is not included with the 
> etfslib. The latest mpc8313 BSP doesn't include etfs.h, so I 
> have no starting point..
> 
> I suppose I also need to modify my BSP part of ETFS to work 
> with the new etfslib?
> 
> Greetings,
>  Marc
> 
> _______________________________________________
> General
> http://community.qnx.com/sf/go/post27373
> 
> 
Re: RE: new ETFS lib...  
Ok found it... (must have been a bad case of temporary blindness..)
(I'm using the lastest etfslib from svn)

However, I still don't succeed in building it, even after changing the etfs.h file in the etfslib's public/fs/ directory
. For development and debugging, I'm building in the Momentics GUI (the "official" build process will be makefile-based)
. What is the equivalent of doing "make hinstall" with Momentics? I was under the impression that all files in project 
subdirectories named "public" will automatically be copied to the staging/build area... am I mistaken here?

Thanks & Greetings,
 Marc