How are people handling the situation where a user turns off the system
without executing a proper shutdown?  I have an ext2 file system mounted
with read/write attributes.  If the user pulls the plug on the system the
file system will be dirty when the system is restarted.  In this situation
e2fsck will be run, but how do I know that the file system is still usable?
I am checking the return value from e2fsck and recreating the file system if
the exit code is greater than 1, but I have seen cases where e2fsck returns
the value 1 while many of the files are gone (they apparently end up in
lost+found).  Short of going to a journaling file system, are there any
other methods that anyone can recommend?  (And no, I don't have control of
the hardware so I can't prevent an unexpected shutdown.)

David Christensen

--
To unsubscribe from this list, send a message to [EMAIL PROTECTED]
with the command "unsubscribe linux-embedded" in the message body.
For more information, see <http://waste.org/mail/linux-embedded>.

Reply via email to