From 679cdcf0e4c6184249b45f4a067bc03c20941e53 Mon Sep 17 00:00:00 2001 From: delphij Date: Thu, 4 Oct 2007 17:08:46 +0000 Subject: 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) --- sys/fs/tmpfs/tmpfs_vfsops.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'sys/fs') diff --git a/sys/fs/tmpfs/tmpfs_vfsops.c b/sys/fs/tmpfs/tmpfs_vfsops.c index a2ebf09..73eca06 100644 --- a/sys/fs/tmpfs/tmpfs_vfsops.c +++ b/sys/fs/tmpfs/tmpfs_vfsops.c @@ -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); -- cgit v1.1