Function report |
Source Code:fs\super.c |
Create Date:2022-07-28 20:02:27 |
Last Modify:2022-05-24 06:42:17 | Copyright©Brick |
home page | Tree |
Annotation kernel can get tool activity | Download SCCT | Chinese |
Name:gure_super - asks filesystem to change superblock parameters*@fc: The superblock and configuration* Alters the configuration parameters of a live superblock.
Proto:int reconfigure_super(struct fs_context *fc)
Type:int
Parameter:
Type | Parameter | Name |
---|---|---|
struct fs_context * | fc |
907 | bool remount_ro = false |
910 | If sb_flags_mask & ~Superblock flags that can be altered by MS_REMOUNT Then Return -EINVAL |
912 | If frozen != SB_UNFROZEN Then Return -EBUSY |
915 | retval = security_sb_remount(sb, security) |
919 | If sb_flags_mask & Mount read-only Then |
921 | If Not (sb_flags & Mount read-only ) && bdev_read_only(s_bdev) Then Return -EACCES |
925 | remount_ro = sb_flags & Mount read-only && Not sb_rdonly(sb) |
928 | If remount_ro Then |
929 | If Not hlist_empty( & s_pins) Then |
931 | s_pin.c |
932 | lock for writing |
933 | If Not s_root Then Return 0 |
935 | If frozen != SB_UNFROZEN Then Return -EBUSY |
937 | remount_ro = Not sb_rdonly(sb) |
945 | If remount_ro Then |
946 | If force Then |
947 | s_readonly_remount = 1 |
948 | smp_wmb() |
949 | Else |
950 | retval = sb_prepare_remount_readonly(sb) |
956 | If reconfigure Then |
967 | WRITE_ONCE(s_flags, ((s_flags & ~sb_flags_mask) | (sb_flags & sb_flags_mask))) |
970 | smp_wmb() |
971 | s_readonly_remount = 0 |
981 | If remount_ro && s_bdev Then invalidate_bdev(s_bdev) |
983 | Return 0 |
985 | cancel_readonly : |
986 | s_readonly_remount = 0 |
987 | Return retval |
Name | Describe |
---|---|
do_emergency_remount_callback | |
vfs_get_super | vfs_get_super - Get a superblock with a search key set in s_fs_info.*@fc: The filesystem context holding the parameters*@keying: How to distinguish superblocks*@fill_super: Helper to initialise a new superblock |
reconfigure_single | |
do_umount_root | |
do_remount | hange filesystem flags. dir should be a physical root of filesystem.* If you've mounted a non-root directory somewhere and want to do remount* on it - tough luck. |
vfs_fsconfig_locked | Check the state and apply the configuration. Note that this function is* allowed to 'steal' the value by setting param->xxx to NULL before returning. |
Source code conversion tool public plug-in interface | X |
---|---|
Support c/c++/esqlc/java Oracle/Informix/Mysql Plug-in can realize: logical Report Code generation and batch code conversion |