Deleted Added
full compact
vfs_syscalls.c (18020) vfs_syscalls.c (18397)
1/*
2 * Copyright (c) 1989, 1993
3 * The Regents of the University of California. All rights reserved.
4 * (c) UNIX System Laboratories, Inc.
5 * All or some portions of this file are derived from material licensed
6 * to the University of California by American Telephone and Telegraph
7 * Co. or Unix System Laboratories, Inc. and are reproduced herein with
8 * the permission of UNIX System Laboratories, Inc.

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

31 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
32 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
33 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
34 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
35 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
36 * SUCH DAMAGE.
37 *
38 * @(#)vfs_syscalls.c 8.13 (Berkeley) 4/15/94
1/*
2 * Copyright (c) 1989, 1993
3 * The Regents of the University of California. All rights reserved.
4 * (c) UNIX System Laboratories, Inc.
5 * All or some portions of this file are derived from material licensed
6 * to the University of California by American Telephone and Telegraph
7 * Co. or Unix System Laboratories, Inc. and are reproduced herein with
8 * the permission of UNIX System Laboratories, Inc.

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

31 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
32 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
33 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
34 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
35 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
36 * SUCH DAMAGE.
37 *
38 * @(#)vfs_syscalls.c 8.13 (Berkeley) 4/15/94
39 * $Id: vfs_syscalls.c,v 1.49 1996/09/03 07:09:03 davidg Exp $
39 * $Id: vfs_syscalls.c,v 1.50 1996/09/03 14:21:53 bde Exp $
40 */
41
42/*
43 * XXX - The following is required because of some magic done
44 * in getdirentries() below which is only done if the translucent
45 * filesystem `UNION' is compiled into the kernel. This is broken,
46 * but I don't have time to study the code deeply enough to understand
47 * what's going on and determine an appropriate fix. -GAW

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

1688 }
1689 NDINIT(&nd, LOOKUP, FOLLOW, UIO_USERSPACE, uap->path, p);
1690 error = namei(&nd);
1691 if (error)
1692 return (error);
1693 vp = nd.ni_vp;
1694 LEASE_CHECK(vp, p, p->p_ucred, LEASE_WRITE);
1695 VOP_LOCK(vp);
40 */
41
42/*
43 * XXX - The following is required because of some magic done
44 * in getdirentries() below which is only done if the translucent
45 * filesystem `UNION' is compiled into the kernel. This is broken,
46 * but I don't have time to study the code deeply enough to understand
47 * what's going on and determine an appropriate fix. -GAW

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

1688 }
1689 NDINIT(&nd, LOOKUP, FOLLOW, UIO_USERSPACE, uap->path, p);
1690 error = namei(&nd);
1691 if (error)
1692 return (error);
1693 vp = nd.ni_vp;
1694 LEASE_CHECK(vp, p, p->p_ucred, LEASE_WRITE);
1695 VOP_LOCK(vp);
1696 vattr.va_atime.ts_sec = tv[0].tv_sec;
1697 vattr.va_atime.ts_nsec = tv[0].tv_usec * 1000;
1698 vattr.va_mtime.ts_sec = tv[1].tv_sec;
1699 vattr.va_mtime.ts_nsec = tv[1].tv_usec * 1000;
1696 vattr.va_atime.tv_sec = tv[0].tv_sec;
1697 vattr.va_atime.tv_nsec = tv[0].tv_usec * 1000;
1698 vattr.va_mtime.tv_sec = tv[1].tv_sec;
1699 vattr.va_mtime.tv_nsec = tv[1].tv_usec * 1000;
1700 error = VOP_SETATTR(vp, &vattr, p->p_ucred, p);
1701 vput(vp);
1702 return (error);
1703}
1704
1705/*
1706 * Truncate a file given its path name.
1707 */

--- 646 unchanged lines hidden ---
1700 error = VOP_SETATTR(vp, &vattr, p->p_ucred, p);
1701 vput(vp);
1702 return (error);
1703}
1704
1705/*
1706 * Truncate a file given its path name.
1707 */

--- 646 unchanged lines hidden ---