tmpfs_vfsops.c (178243) | tmpfs_vfsops.c (182371) |
---|---|
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 178243 2008-04-16 11:33:32Z kib $"); | 51__FBSDID("$FreeBSD: head/sys/fs/tmpfs/tmpfs_vfsops.c 182371 2008-08-28 15:23:18Z 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 213 return EOPNOTSUPP; 214 } 215 216 printf("WARNING: TMPFS is considered to be a highly experimental " 217 "feature in FreeBSD.\n"); 218 219 vn_lock(mp->mnt_vnodecovered, LK_SHARED | LK_RETRY); | 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 213 return EOPNOTSUPP; 214 } 215 216 printf("WARNING: TMPFS is considered to be a highly experimental " 217 "feature in FreeBSD.\n"); 218 219 vn_lock(mp->mnt_vnodecovered, LK_SHARED | LK_RETRY); |
220 error = VOP_GETATTR(mp->mnt_vnodecovered, &va, mp->mnt_cred, td); | 220 error = VOP_GETATTR(mp->mnt_vnodecovered, &va, mp->mnt_cred); |
221 VOP_UNLOCK(mp->mnt_vnodecovered, 0); 222 if (error) 223 return (error); 224 225 if (mp->mnt_cred->cr_ruid != 0 || 226 vfs_scanopt(mp->mnt_optnew, "gid", "%d", &root_gid) != 1) 227 root_gid = va.va_gid; 228 if (mp->mnt_cred->cr_ruid != 0 || --- 244 unchanged lines hidden --- | 221 VOP_UNLOCK(mp->mnt_vnodecovered, 0); 222 if (error) 223 return (error); 224 225 if (mp->mnt_cred->cr_ruid != 0 || 226 vfs_scanopt(mp->mnt_optnew, "gid", "%d", &root_gid) != 1) 227 root_gid = va.va_gid; 228 if (mp->mnt_cred->cr_ruid != 0 || --- 244 unchanged lines hidden --- |