mirror of
https://github.com/freebsd/freebsd-src
synced 2024-10-19 06:44:31 +00:00
Additional work is still needed before we can claim that tmpfs
is stable enough for production usage. Warn user upon mount. Approved by: re (tmpfs blanket)
This commit is contained in:
parent
aafd6a87a6
commit
386c969205
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=172441
|
@ -215,6 +215,9 @@ tmpfs_mount(struct mount *mp, struct thread *td)
|
|||
return EOPNOTSUPP;
|
||||
}
|
||||
|
||||
printf("WARNING: TMPFS is considered to be a highly experimental "
|
||||
"feature in FreeBSD.\n");
|
||||
|
||||
vn_lock(mp->mnt_vnodecovered, LK_SHARED | LK_RETRY, td);
|
||||
error = VOP_GETATTR(mp->mnt_vnodecovered, &va, mp->mnt_cred, td);
|
||||
VOP_UNLOCK(mp->mnt_vnodecovered, 0, td);
|
||||
|
|
Loading…
Reference in a new issue