|
|
logging to ETFS partition using ETFS
|
|
08/24/2009 8:01 AM
post36493
|
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
|
|
|
|
|