From 1ccd8313ba54497e9516ca5ad395c32730c0d270 Mon Sep 17 00:00:00 2001 From: Daniel Rosenberg Date: Tue, 8 May 2018 19:48:33 -0700 Subject: WIP: Add partial shrinking support to f2fs allow 'safe' resizing leaving the metadata nearly unchanged. Will likely need to adjust growing for the case where a fs had previously shrunk without altering data, and the newly grown fs would be smaller than the original. Probably makes sense to case it out into metadata size changes, instead of fs size changes Signed-off-by: Daniel Rosenberg Signed-off-by: Jaegeuk Kim --- include/f2fs_fs.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'include/f2fs_fs.h') diff --git a/include/f2fs_fs.h b/include/f2fs_fs.h index e3b4529..e2a5767 100644 --- a/include/f2fs_fs.h +++ b/include/f2fs_fs.h @@ -404,6 +404,9 @@ struct f2fs_configuration { int nr_opt; #endif + /* resize parameters */ + int safe_resize; + /* precomputed fs UUID checksum for seeding other checksums */ u_int32_t chksum_seed; }; -- cgit v1.2.3