summaryrefslogtreecommitdiff
path: root/.github/workflows/static_code_analysis.yml
diff options
context:
space:
mode:
authorShell <[email protected]>2024-11-13 15:37:23 +0800
committerRbb666 <[email protected]>2025-01-06 19:34:16 +0800
commitb63b388d1f9341e97b9e62687271d74c70a40f86 (patch)
tree0c91e88e060d5e4632127a14be7ca7c0270bc975 /.github/workflows/static_code_analysis.yml
parent944f3d05b508d5eaeaabd8f5d2964847c80dbc3e (diff)
feat: add support for dfs remount functionality
This patch introduces a remount feature for the DFS, allowing for the modification of mount parameters without unmounting the filesystem, the remount functionality helps modify certain mount flags (like `MS_RDONLY`) without requiring an unmount, providing more control over mounted filesystems in the system. The updates is essential for user space init proc to cleanup the runtime resource, ensuring clean handling of cached data and enhancing system robustness during power down processing. Changes: - Defined new constants for remount flags in `dfs_fs.h`. - Added the `dfs_remount()` function in `dfs_fs.c` to handle remount operations. - Introduced a check for unsupported flags and handle error conditions such as invalid paths or non-directory targets. - Updated the `dfs_mnt` structure in `dfs_mnt.h` to include a read-only flag (`MNT_RDONLY`). - The `dfs_remount()` function allows changing the read-only status of a mounted filesystem. - Added `MNT_LAZY_UMNT` and `MNT_RDONLY` flags to `dfs_mnt` structure. - Introduced `dfs_mnt_setflags` function for dynamic flag management. - Updated `dfs_remount` to utilize `dfs_mnt_setflags` for flag setting. - Enhanced unmount operations with `dfs_mnt_umount_iter` and lazy unmounting. - Added `dfs_pcache_clean` to handle cache cleanup for read-only mounts. - Improved error reporting in `dfs_umount` for better user feedback. - Refactored `sys_mount` to streamline parameter handling and support remounts. - Introduced `_cp_from_usr_string` helper for user-space string operations. - Updated internal APIs to ensure consistency in reference count management. Signed-off-by: Shell <[email protected]>
Diffstat (limited to '.github/workflows/static_code_analysis.yml')
0 files changed, 0 insertions, 0 deletions