ubifs: add option to specify version for new file systems
authorMartin Kaistra <martin.kaistra@linutronix.de>
Tue, 7 Jul 2020 10:31:59 +0000 (12:31 +0200)
committerRichard Weinberger <richard@nod.at>
Sun, 2 Aug 2020 20:23:46 +0000 (22:23 +0200)
commita7a8f4a1e6b309b5365be784a07bbda1ceab2d9e
tree6906568ee4d6f637030fb5cd8d3cc7d6eb6b64c6
parent92ed301919932f777713b9172e525674157e983d
ubifs: add option to specify version for new file systems

Instead of creating ubifs file systems with UBIFS_FORMAT_VERSION
by default, add a module parameter ubifs.default_version to allow
the user to specify the desired version. Valid values are 4 to
UBIFS_FORMAT_VERSION (currently 5).

This way, one can for example create a file system with version 4
on kernel 4.19 which can still be mounted rw when downgrading to
kernel 4.9.

Signed-off-by: Martin Kaistra <martin.kaistra@linutronix.de>
Signed-off-by: Richard Weinberger <richard@nod.at>
fs/ubifs/sb.c
fs/ubifs/super.c
fs/ubifs/ubifs.h