Forum Topic - logging to ETFS partition using ETFS: (6 Items)
   
logging to ETFS partition using ETFS  
Hi,

we're using slogger and we're logging to an ETFS partition.

Now the problem is, when powering off without calling "shutdown" first, the last entries (since last boot) are lost! It 
seems slogger either keeps the entries in RAM for quite some time and flushes them regularly (?) or ETFS itself doesn't 
fluish too often... (?)

How can I tell slogger/ETFS to flush right away, similar the way syslogd does on unixoid systems by default?

I know that ETFS usually writes 512/2024 Byte blocks... but this shouldn't be a real issue: as far as I understand, you 
could flush by writing the (still quite empty) block padded with 0xFF (which is the default data value after erasing the
 flash), then later writing it a a second time with the first part identical but some of the padding replaced with new 
data... and so on.

This is an important issue for us, suggestions are very welcome.

Greetings,
 Marc
Post Deleted
RE: logging to ETFS partition using ETFS  
Marc,

You will want to start slogger with the -c option to force synchronous
flushing to the disk.

David 

> -----Original Message-----
> From: Marc Roessler [mailto:community-noreply@qnx.com] 
> Sent: August 24, 2009 8:02 AM
> To: general-filesystems
> Subject: logging to ETFS partition using ETFS
> 
> Hi,
> 
> we're using slogger and we're logging to an ETFS partition.
> 
> Now the problem is, when powering off without calling 
> "shutdown" first, the last entries (since last boot) are 
> lost! It seems slogger either keeps the entries in RAM for 
> quite some time and flushes them regularly (?) or ETFS itself 
> doesn't fluish too often... (?)
> 
> How can I tell slogger/ETFS to flush right away, similar the 
> way syslogd does on unixoid systems by default?
> 
> I know that ETFS usually writes 512/2024 Byte blocks... but 
> this shouldn't be a real issue: as far as I understand, you 
> could flush by writing the (still quite empty) block padded 
> with 0xFF (which is the default data value after erasing the 
> flash), then later writing it a a second time with the first 
> part identical but some of the padding replaced with new 
> data... and so on.
> 
> This is an important issue for us, suggestions are very welcome.
> 
> Greetings,
>  Marc
> 
> 
> 
> _______________________________________________
> 
> General
> http://community.qnx.com/sf/go/post36493
> 
> 
Post Deleted
Re: RE: logging to ETFS partition using ETFS  
Thanks David!

This seems to be a new option... which is why I didn't find it...
Post Deleted