ext4: support read-only images
authorDarrick J. Wong <darrick.wong@oracle.com>
Fri, 13 Feb 2015 03:31:21 +0000 (22:31 -0500)
committerTheodore Ts'o <tytso@mit.edu>
Fri, 13 Feb 2015 03:31:21 +0000 (22:31 -0500)
commit2cb5cc8b09c939c77826635956c35995b15c9331
treea172f96f3dca8c8432786eef7d103138ef859370
parent04ecddb73dd83d1094a904b8d03c57880998daee
ext4: support read-only images

Add a rocompat feature, "readonly" to mark a FS image as read-only.
The feature prevents the kernel and e2fsprogs from changing the image;
the flag can be toggled by tune2fs.

Signed-off-by: Darrick J. Wong <darrick.wong@oracle.com>
Signed-off-by: Theodore Ts'o <tytso@mit.edu>
fs/ext4/ext4.h
fs/ext4/super.c