[systemd-devel] systemd-makefs with very slight data corruption ?

Chuck Wolber chuckwolber at gmail.com
Thu Feb 13 01:47:55 UTC 2020


On Wed, Feb 12, 2020 at 10:31 AM Xogium <contact at xogium.me> wrote:


> I am wondering about how to best implement a mechanism to recreate a
> specific
> filesystem in case of the slightest data corruption done to it.
>

I am not sure if there is a built-in method to do what you are asking, but
I think you could
use a drop-in to do it. Simply use a drop-in to add a requires/after into
systemd-makefs
for a service of your own. Your service would do whatever checks you want
and, if
necessary, wipe out the file system altogether, which would then trigger
systemd-makefs
to rebuild it.

You would, of course, need to be careful to write your service
intelligently enough to avoid
wiping out file systems you care to keep around...

..Ch:W..
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/systemd-devel/attachments/20200212/70892062/attachment.htm>


More information about the systemd-devel mailing list