smbfs_vnops.c (164033) | smbfs_vnops.c (170152) |
---|---|
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_vnops.c 164033 2006-11-06 13:42:10Z rwatson $ | 32 * $FreeBSD: head/sys/fs/smbfs/smbfs_vnops.c 170152 2007-05-31 11:51:53Z kib $ |
33 */ 34#include <sys/param.h> 35#include <sys/systm.h> 36#include <sys/namei.h> 37#include <sys/kernel.h> 38#include <sys/proc.h> 39#include <sys/bio.h> 40#include <sys/buf.h> --- 339 unchanged lines hidden (view full) --- 380 atime = &np->n_atime; 381#endif 382 /* 383 * If file is opened, then we can use handle based calls. 384 * If not, use path based ones. 385 */ 386 if ((np->n_flag & NOPEN) == 0) { 387 if (vcp->vc_flags & SMBV_WIN95) { | 33 */ 34#include <sys/param.h> 35#include <sys/systm.h> 36#include <sys/namei.h> 37#include <sys/kernel.h> 38#include <sys/proc.h> 39#include <sys/bio.h> 40#include <sys/buf.h> --- 339 unchanged lines hidden (view full) --- 380 atime = &np->n_atime; 381#endif 382 /* 383 * If file is opened, then we can use handle based calls. 384 * If not, use path based ones. 385 */ 386 if ((np->n_flag & NOPEN) == 0) { 387 if (vcp->vc_flags & SMBV_WIN95) { |
388 error = VOP_OPEN(vp, FWRITE, ap->a_cred, ap->a_td, -1); | 388 error = VOP_OPEN(vp, FWRITE, ap->a_cred, ap->a_td, NULL); |
389 if (!error) { 390/* error = smbfs_smb_setfattrNT(np, 0, mtime, atime, &scred); 391 VOP_GETATTR(vp, &vattr, ap->a_cred, ap->a_td);*/ 392 if (mtime) 393 np->n_mtime = *mtime; 394 VOP_CLOSE(vp, FWRITE, ap->a_cred, ap->a_td); 395 } 396 } else if ((vcp->vc_sopt.sv_caps & SMB_CAP_NT_SMBS)) { --- 875 unchanged lines hidden --- | 389 if (!error) { 390/* error = smbfs_smb_setfattrNT(np, 0, mtime, atime, &scred); 391 VOP_GETATTR(vp, &vattr, ap->a_cred, ap->a_td);*/ 392 if (mtime) 393 np->n_mtime = *mtime; 394 VOP_CLOSE(vp, FWRITE, ap->a_cred, ap->a_td); 395 } 396 } else if ((vcp->vc_sopt.sv_caps & SMB_CAP_NT_SMBS)) { --- 875 unchanged lines hidden --- |