[rtems commit] jffs2: Allow setting rp_size to zero during remounting
Sebastian Huber
sebh at rtems.org
Thu Jan 12 07:03:00 UTC 2023
Module: rtems
Branch: master
Commit: c4b8ba842b1cd9519fab1657ad3031cd4e151dc4
Changeset: http://git.rtems.org/rtems/commit/?id=c4b8ba842b1cd9519fab1657ad3031cd4e151dc4
Author: lizhe <lizhe67 at huawei.com>
Date: Wed Oct 14 14:54:43 2020 +0800
jffs2: Allow setting rp_size to zero during remounting
Set rp_size to zero will be ignore during remounting.
The method to identify whether we input a remounting option of
rp_size is to check if the rp_size input is zero. It can not work
well if we pass "rp_size=0".
This patch add a bool variable "set_rp_size" to fix this problem.
Reported-by: Jubin Zhong <zhongjubin at huawei.com>
Signed-off-by: lizhe <lizhe67 at huawei.com>
Signed-off-by: Richard Weinberger <richard at nod.at>
---
cpukit/libfs/src/jffs2/src/jffs2_fs_sb.h | 1 +
1 file changed, 1 insertion(+)
diff --git a/cpukit/libfs/src/jffs2/src/jffs2_fs_sb.h b/cpukit/libfs/src/jffs2/src/jffs2_fs_sb.h
index 778275f48a..5a7091746f 100644
--- a/cpukit/libfs/src/jffs2/src/jffs2_fs_sb.h
+++ b/cpukit/libfs/src/jffs2/src/jffs2_fs_sb.h
@@ -38,6 +38,7 @@ struct jffs2_mount_opts {
* users. This is implemented simply by means of not allowing the
* latter users to write to the file system if the amount if the
* available space is less then 'rp_size'. */
+ bool set_rp_size;
unsigned int rp_size;
};
More information about the vc
mailing list