Deleted Added
full compact
tmpfs_vfsops.c (174379) tmpfs_vfsops.c (175202)
1/* $NetBSD: tmpfs_vfsops.c,v 1.10 2005/12/11 12:24:29 christos Exp $ */
2
3/*
4 * Copyright (c) 2005 The NetBSD Foundation, Inc.
5 * All rights reserved.
6 *
7 * This code is derived from software contributed to The NetBSD Foundation
8 * by Julio M. Merino Vidal, developed as part of Google's Summer of Code

--- 34 unchanged lines hidden (view full) ---

43 * tmpfs is a file system that uses NetBSD's virtual memory sub-system
44 * (the well-known UVM) to store file data and metadata in an efficient
45 * way. This means that it does not follow the structure of an on-disk
46 * file system because it simply does not need to. Instead, it uses
47 * memory-specific data structures and algorithms to automatically
48 * allocate and release resources.
49 */
50#include <sys/cdefs.h>
1/* $NetBSD: tmpfs_vfsops.c,v 1.10 2005/12/11 12:24:29 christos Exp $ */
2
3/*
4 * Copyright (c) 2005 The NetBSD Foundation, Inc.
5 * All rights reserved.
6 *
7 * This code is derived from software contributed to The NetBSD Foundation
8 * by Julio M. Merino Vidal, developed as part of Google's Summer of Code

--- 34 unchanged lines hidden (view full) ---

43 * tmpfs is a file system that uses NetBSD's virtual memory sub-system
44 * (the well-known UVM) to store file data and metadata in an efficient
45 * way. This means that it does not follow the structure of an on-disk
46 * file system because it simply does not need to. Instead, it uses
47 * memory-specific data structures and algorithms to automatically
48 * allocate and release resources.
49 */
50#include <sys/cdefs.h>
51__FBSDID("$FreeBSD: head/sys/fs/tmpfs/tmpfs_vfsops.c 174379 2007-12-06 23:19:05Z delphij $");
51__FBSDID("$FreeBSD: head/sys/fs/tmpfs/tmpfs_vfsops.c 175202 2008-01-10 01:10:58Z attilio $");
52
53#include <sys/param.h>
54#include <sys/limits.h>
55#include <sys/lock.h>
56#include <sys/mutex.h>
57#include <sys/kernel.h>
58#include <sys/stat.h>
59#include <sys/systm.h>

--- 152 unchanged lines hidden (view full) ---

212 * settings. Should be added. */
213
214 return EOPNOTSUPP;
215 }
216
217 printf("WARNING: TMPFS is considered to be a highly experimental "
218 "feature in FreeBSD.\n");
219
52
53#include <sys/param.h>
54#include <sys/limits.h>
55#include <sys/lock.h>
56#include <sys/mutex.h>
57#include <sys/kernel.h>
58#include <sys/stat.h>
59#include <sys/systm.h>

--- 152 unchanged lines hidden (view full) ---

212 * settings. Should be added. */
213
214 return EOPNOTSUPP;
215 }
216
217 printf("WARNING: TMPFS is considered to be a highly experimental "
218 "feature in FreeBSD.\n");
219
220 vn_lock(mp->mnt_vnodecovered, LK_SHARED | LK_RETRY, td);
220 vn_lock(mp->mnt_vnodecovered, LK_SHARED | LK_RETRY);
221 error = VOP_GETATTR(mp->mnt_vnodecovered, &va, mp->mnt_cred, td);
222 VOP_UNLOCK(mp->mnt_vnodecovered, 0, td);
223 if (error)
224 return (error);
225
226 if (mp->mnt_cred->cr_ruid != 0 ||
227 vfs_scanopt(mp->mnt_optnew, "gid", "%d", &root_gid) != 1)
228 root_gid = va.va_gid;

--- 245 unchanged lines hidden ---
221 error = VOP_GETATTR(mp->mnt_vnodecovered, &va, mp->mnt_cred, td);
222 VOP_UNLOCK(mp->mnt_vnodecovered, 0, td);
223 if (error)
224 return (error);
225
226 if (mp->mnt_cred->cr_ruid != 0 ||
227 vfs_scanopt(mp->mnt_optnew, "gid", "%d", &root_gid) != 1)
228 root_gid = va.va_gid;

--- 245 unchanged lines hidden ---