Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:fs\namespace.c Create Date:2022-07-28 20:09:17
Last Modify:2020-03-12 14:18:49 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name: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.

Proto:static int do_remount(struct path *path, int ms_flags, int sb_flags, int mnt_flags, void *data)

Type:int

Parameter:

TypeParameterName
struct path *path
intms_flags
intsb_flags
intmnt_flags
void *data
2531  sb = mnt_sb
2532  mnt = real_mount(mnt)
2535  If Not check_mnt(mnt) Then Return -EINVAL
2538  If dentry != mnt_root Then Return -EINVAL
2541  If Not Don't allow locked mount flags to be cleared.* No locks need to be held here while testing the various MNT_LOCK* flags because those flags can never be cleared once they are set. Then Return -EPERM
2544  fc = fs_context_for_reconfigure(dentry, sb_flags, Superblock flags that can be altered by MS_REMOUNT)
2545  If IS_ERR(fc) Then Return PTR_ERR(fc)
2548  err = parse_monolithic_mount_data(fc, data)
2549  If Not err Then
2550  lock for writing
2551  err = -EPERM
2557  lease a write lock
2560  mnt_warn_timestamp_expiry(path, & mnt)
2562  put_fs_context - Dispose of a superblock configuration context.*@fc: The context to dispose of.
2563  Return err
Caller
NameDescribe
do_mountFlags is a 32-bit value that allows up to 31 non-fs dependent flags to* be given to the mount() call (ie: read-only, no-dev, no-suid etc)