devfs_vfsops.c (138481) | devfs_vfsops.c (139664) |
---|---|
1/* 2 * Copyright (c) 1992, 1993, 1995 3 * The Regents of the University of California. All rights reserved. 4 * Copyright (c) 2000 5 * Poul-Henning Kamp. All rights reserved. 6 * 7 * This code is derived from software donated to Berkeley by 8 * Jan-Simon Pendry. --- 17 unchanged lines hidden (view full) --- 26 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 27 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 28 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 29 * SUCH DAMAGE. 30 * 31 * @(#)kernfs_vfsops.c 8.10 (Berkeley) 5/14/95 32 * From: FreeBSD: src/sys/miscfs/kernfs/kernfs_vfsops.c 1.36 33 * | 1/* 2 * Copyright (c) 1992, 1993, 1995 3 * The Regents of the University of California. All rights reserved. 4 * Copyright (c) 2000 5 * Poul-Henning Kamp. All rights reserved. 6 * 7 * This code is derived from software donated to Berkeley by 8 * Jan-Simon Pendry. --- 17 unchanged lines hidden (view full) --- 26 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 27 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 28 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 29 * SUCH DAMAGE. 30 * 31 * @(#)kernfs_vfsops.c 8.10 (Berkeley) 5/14/95 32 * From: FreeBSD: src/sys/miscfs/kernfs/kernfs_vfsops.c 1.36 33 * |
34 * $FreeBSD: head/sys/fs/devfs/devfs_vfsops.c 138481 2004-12-06 19:54:31Z phk $ | 34 * $FreeBSD: head/sys/fs/devfs/devfs_vfsops.c 139664 2005-01-04 07:52:26Z phk $ |
35 */ 36 37#include "opt_devfs.h" 38#include "opt_mac.h" 39 40#include <sys/param.h> 41#include <sys/systm.h> 42#include <sys/kernel.h> --- 74 unchanged lines hidden (view full) --- 117 struct thread *td; 118{ 119 int error; 120 int flags = 0; 121 struct devfs_mount *fmp; 122 123 fmp = VFSTODEVFS(mp); 124 if (mntflags & MNT_FORCE) | 35 */ 36 37#include "opt_devfs.h" 38#include "opt_mac.h" 39 40#include <sys/param.h> 41#include <sys/systm.h> 42#include <sys/kernel.h> --- 74 unchanged lines hidden (view full) --- 117 struct thread *td; 118{ 119 int error; 120 int flags = 0; 121 struct devfs_mount *fmp; 122 123 fmp = VFSTODEVFS(mp); 124 if (mntflags & MNT_FORCE) |
125 flags |= FORCECLOSE; | 125 return (EOPNOTSUPP); |
126 /* There is 1 extra root vnode reference from devfs_mount(). */ 127 error = vflush(mp, 1, flags, td); 128 if (error) 129 return (error); 130 devfs_purge(fmp->dm_rootdir); 131 mp->mnt_data = 0; 132 lockdestroy(&fmp->dm_lock); 133 free(fmp->dm_dirent, M_DEVFS); --- 51 unchanged lines hidden --- | 126 /* There is 1 extra root vnode reference from devfs_mount(). */ 127 error = vflush(mp, 1, flags, td); 128 if (error) 129 return (error); 130 devfs_purge(fmp->dm_rootdir); 131 mp->mnt_data = 0; 132 lockdestroy(&fmp->dm_lock); 133 free(fmp->dm_dirent, M_DEVFS); --- 51 unchanged lines hidden --- |