I am prototyping a new embedded system that uses ext4 on Flash memory. These systems will be remotely deployed with no local sysadmin, so any diagnostics must also be done remotely via a network.
The default mount option for ext4 is to set the FS to read only when it encounters an error. I think this is too severe for my case, as it can cause many operations to cease working and prevent remote logins.
I would prefer to keep the system running (and tolerate some FS errors). So for my case the mount option "errors=continue" seems more appropriate. However, I would like my application to be notified when any FS errors occur so it can log these as high priority problems and send that info. back to our servers.
Does anyone know if this can be done with the stock Linux kernel (4.8.1 on x86_64)?