Deleted Added
full compact
pseudofs_vnops.c (175202) pseudofs_vnops.c (175294)
1/*-
2 * Copyright (c) 2001 Dag-Erling Co�dan Sm�rgrav
3 * All rights reserved.
4 *
5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions
7 * are met:
8 * 1. Redistributions of source code must retain the above copyright

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

22 * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
23 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
24 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
25 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
26 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
27 */
28
29#include <sys/cdefs.h>
1/*-
2 * Copyright (c) 2001 Dag-Erling Co�dan Sm�rgrav
3 * All rights reserved.
4 *
5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions
7 * are met:
8 * 1. Redistributions of source code must retain the above copyright

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

22 * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
23 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
24 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
25 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
26 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
27 */
28
29#include <sys/cdefs.h>
30__FBSDID("$FreeBSD: head/sys/fs/pseudofs/pseudofs_vnops.c 175202 2008-01-10 01:10:58Z attilio $");
30__FBSDID("$FreeBSD: head/sys/fs/pseudofs/pseudofs_vnops.c 175294 2008-01-13 14:44:15Z attilio $");
31
32#include "opt_pseudofs.h"
33
34#include <sys/param.h>
35#include <sys/kernel.h>
36#include <sys/systm.h>
37#include <sys/ctype.h>
38#include <sys/dirent.h>

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

361 VREF(vn);
362 PFS_RETURN (0);
363 }
364
365 /* parent */
366 if (cnp->cn_flags & ISDOTDOT) {
367 if (pd->pn_type == pfstype_root)
368 PFS_RETURN (EIO);
31
32#include "opt_pseudofs.h"
33
34#include <sys/param.h>
35#include <sys/kernel.h>
36#include <sys/systm.h>
37#include <sys/ctype.h>
38#include <sys/dirent.h>

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

361 VREF(vn);
362 PFS_RETURN (0);
363 }
364
365 /* parent */
366 if (cnp->cn_flags & ISDOTDOT) {
367 if (pd->pn_type == pfstype_root)
368 PFS_RETURN (EIO);
369 VOP_UNLOCK(vn, 0, cnp->cn_thread);
369 VOP_UNLOCK(vn, 0);
370 KASSERT(pd->pn_parent != NULL,
371 ("%s(): non-root directory has no parent", __func__));
372 /*
373 * This one is tricky. Descendents of procdir nodes
374 * inherit their parent's process affinity, but
375 * there's no easy reverse mapping. For simplicity,
376 * we assume that if this node is a procdir, its
377 * parent isn't (which is correct as long as

--- 515 unchanged lines hidden ---
370 KASSERT(pd->pn_parent != NULL,
371 ("%s(): non-root directory has no parent", __func__));
372 /*
373 * This one is tricky. Descendents of procdir nodes
374 * inherit their parent's process affinity, but
375 * there's no easy reverse mapping. For simplicity,
376 * we assume that if this node is a procdir, its
377 * parent isn't (which is correct as long as

--- 515 unchanged lines hidden ---