]> git.karo-electronics.de Git - karo-tx-linux.git/commit
JFFS2: Add parameter to reserve disk space for root
authorDaniel Drake <dsd@laptop.org>
Tue, 10 Apr 2012 21:22:35 +0000 (22:22 +0100)
committerArtem Bityutskiy <Artem.Bityutskiy@linux.intel.com>
Fri, 27 Apr 2012 06:02:19 +0000 (09:02 +0300)
commit6387a96cd697e4eb4cafb16a184981142c7c5c64
tree246fffa0d58d2165bd8b62e8b1e152ebfbc706a5
parent44b010ec28fd1508df8b9c2660afa2522b6ffdd9
JFFS2: Add parameter to reserve disk space for root

Add a new rp_size= parameter which creates a "reserved pool" of disk
space which can only be used by root. Other users are not permitted
to write to disk when the available space is less than the pool size.

Based on original code by Artem Bityutskiy in
https://dev.laptop.org/ticket/5317

Signed-off-by: Daniel Drake <dsd@laptop.org>
Signed-off-by: Artem Bityutskiy <Artem.Bityutskiy@linux.intel.com>
fs/jffs2/jffs2_fs_sb.h
fs/jffs2/nodemgmt.c
fs/jffs2/super.c