mirror of
https://git.FreeBSD.org/src.git
synced 2024-12-27 11:55:06 +00:00
In vfs_nmount(), check to see if "update" mount option was passed
in, and if so, set MNT_UPDATE filesystem flag. vfs_nmount() calls vfs_domount(), and there is special logic inside vfs_domount() if MNT_UPDATE is set. This is very important when we want to do an update mount of the root filesystem, using nmount().
This commit is contained in:
parent
e6431fb208
commit
8fd860cfa1
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=152561
@ -515,6 +515,15 @@ vfs_donmount(struct thread *td, int fsflags, struct uio *fsoptions)
|
||||
goto bail;
|
||||
}
|
||||
|
||||
/*
|
||||
* We need to see if we have the "update" option
|
||||
* before we call vfs_domount(), since vfs_domount() has special
|
||||
* logic based on MNT_UPDATE. This is very important
|
||||
* when we want to update the root filesystem.
|
||||
*/
|
||||
if (vfs_getopt(optlist, "update", NULL, NULL) == 0)
|
||||
fsflags |= MNT_UPDATE;
|
||||
|
||||
/*
|
||||
* Be ultra-paranoid about making sure the type and fspath
|
||||
* variables will fit in our mp buffers, including the
|
||||
|
Loading…
Reference in New Issue
Block a user