Deleted Added
full compact
smbfs_node.c (139776) smbfs_node.c (140223)
1/*-
2 * Copyright (c) 2000-2001 Boris Popov
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

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

24 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
25 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
26 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
27 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
28 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
29 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
30 * SUCH DAMAGE.
31 *
1/*-
2 * Copyright (c) 2000-2001 Boris Popov
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

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

24 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
25 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
26 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
27 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
28 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
29 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
30 * SUCH DAMAGE.
31 *
32 * $FreeBSD: head/sys/fs/smbfs/smbfs_node.c 139776 2005-01-06 18:10:42Z imp $
32 * $FreeBSD: head/sys/fs/smbfs/smbfs_node.c 140223 2005-01-14 08:52:55Z phk $
33 */
34#include <sys/param.h>
35#include <sys/systm.h>
36#include <sys/kdb.h>
37#include <sys/kernel.h>
38#include <sys/lock.h>
39#include <sys/malloc.h>
40#include <sys/mount.h>

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

357 struct vnode *vp = ap->a_vp;
358 struct smbnode *np = VTOSMB(vp);
359 struct smb_cred scred;
360 struct vattr va;
361
362 SMBVDEBUG("%s: %d\n", VTOSMB(vp)->n_name, vrefcnt(vp));
363 if ((np->n_flag & NOPEN) != 0) {
364 smb_makescred(&scred, td, cred);
33 */
34#include <sys/param.h>
35#include <sys/systm.h>
36#include <sys/kdb.h>
37#include <sys/kernel.h>
38#include <sys/lock.h>
39#include <sys/malloc.h>
40#include <sys/mount.h>

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

357 struct vnode *vp = ap->a_vp;
358 struct smbnode *np = VTOSMB(vp);
359 struct smb_cred scred;
360 struct vattr va;
361
362 SMBVDEBUG("%s: %d\n", VTOSMB(vp)->n_name, vrefcnt(vp));
363 if ((np->n_flag & NOPEN) != 0) {
364 smb_makescred(&scred, td, cred);
365 smbfs_vinvalbuf(vp, V_SAVE, cred, td, 1);
365 smbfs_vinvalbuf(vp, td);
366 if (vp->v_type == VREG) {
367 VOP_GETATTR(vp, &va, cred, td);
368 smbfs_smb_close(np->n_mount->sm_share, np->n_fid,
369 &np->n_mtime, &scred);
370 } else if (vp->v_type == VDIR) {
371 if (np->n_dirseq != NULL) {
372 smbfs_findclose(np->n_dirseq, &scred);
373 np->n_dirseq = NULL;

--- 70 unchanged lines hidden ---
366 if (vp->v_type == VREG) {
367 VOP_GETATTR(vp, &va, cred, td);
368 smbfs_smb_close(np->n_mount->sm_share, np->n_fid,
369 &np->n_mtime, &scred);
370 } else if (vp->v_type == VDIR) {
371 if (np->n_dirseq != NULL) {
372 smbfs_findclose(np->n_dirseq, &scred);
373 np->n_dirseq = NULL;

--- 70 unchanged lines hidden ---