diff --git a/man/integritytab.xml b/man/integritytab.xml index 44f0a55929..44da039dde 100644 --- a/man/integritytab.xml +++ b/man/integritytab.xml @@ -72,6 +72,17 @@ + + + + + Disable the journal. Corresponds to the "direct writes" mode documented in + the dm-integrity documentation. + Note that without a journal, if there is a crash, it is possible that the integrity tags and data will not match. If used, the journal-* + options below will have no effect if passed. + + + diff --git a/src/integritysetup/integrity-util.c b/src/integritysetup/integrity-util.c index c2d2f950de..66f93e7d2e 100644 --- a/src/integritysetup/integrity-util.c +++ b/src/integritysetup/integrity-util.c @@ -34,6 +34,9 @@ int parse_integrity_options( else if (streq(word, "allow-discards")) { if (ret_activate_flags) *ret_activate_flags |= CRYPT_ACTIVATE_ALLOW_DISCARDS; + } else if (streq(word, "no-journal")) { + if (ret_activate_flags) + *ret_activate_flags |= CRYPT_ACTIVATE_NO_JOURNAL; } else if ((val = startswith(word, "journal-watermark="))) { r = parse_percent(val); if (r < 0)