Products > Embedded Computing

[solved] Linux/Arm, catastrophic crashes

<< < (7/7)

DiTBho:
The system is now up and running with an up-time of more than a week  :D :D :D

Days ago I developed a monitoring program that runs continuously in the background with a low priority and checks the integrity of each rootfs file(1).


--- Code: ---typedef struct
{
   char_t filename[filename_size];
   md5sum_t md5sum;
} mon_entry_t;

--- End code ---

There is a huge database in ram with the md5 checksum of each file of the rootfs, the monitoring program can calculate a fresh md5-checksum on the fly and compare with the value stored in the database.


It's also useful to find corrupted files due to filesystem crash, and this way it's easy to find the corrupted file and selective restore it from a backup.


(1) with "rootfs" I mean files in these folders

--- Code: ---/bin
/etc
/lib
/opt
/sbin
/usr/bin
/usr/include
/usr/lib
/usr/libexec
/usr/sbin
/usr/share

--- End code ---

/root, /home, /local, etc; services folders such as /var, /dev, /sys, /proc, /tmp, are not considered.
The database consumes ~90Mbyte of ram.

Navigation

[0] Message Index

[*] Previous page

There was an error while thanking
Thanking...
Go to full version
Powered by SMFPacks Advanced Attachments Uploader Mod