~ubuntu-branches/ubuntu/raring/openafs/raring

« back to all changes in this revision

Viewing changes to src/afs/SOLARIS/osi_vnodeops.c

  • Committer: Package Import Robot
  • Author(s): Luke Faraone
  • Date: 2013-03-05 01:01:49 UTC
  • mfrom: (44.1.1 raring-proposed)
  • Revision ID: package-import@ubuntu.com-20130305010149-3ui1dhq9a2fw9abp
Tags: 1.6.2-1+ubuntu2
Explicitly include -pthread in UAFS_XLIBS to fix build failure

Show diffs side-by-side

added added

removed removed

Lines of Context:
1706
1706
        (void) afs_lookup(andp, aname2, &avcp, NULL, 0, NULL, acred);
1707
1707
        if (avcp) {
1708
1708
            struct vnode *vp = AFSTOV(avcp), *pvp = AFSTOV(andp);
1709
 
            
 
1709
 
 
1710
# ifdef HAVE_VN_RENAMEPATH
 
1711
            vn_renamepath(pvp, vp, aname2, strlen(aname2));
 
1712
# else
1710
1713
            mutex_enter(&vp->v_lock);
1711
1714
            if (vp->v_path != NULL) {
1712
1715
                kmem_free(vp->v_path, strlen(vp->v_path) + 1);
1714
1717
            }
1715
1718
            mutex_exit(&vp->v_lock);
1716
1719
            vn_setpath(afs_globalVp, pvp, vp, aname2, strlen(aname2));
 
1720
# endif /* !HAVE_VN_RENAMEPATH */
1717
1721
 
1718
1722
            AFS_RELE(avcp);
1719
1723
        }
1828
1832
    }
1829
1833
    mutex_exit(&vp->v_lock);
1830
1834
 
 
1835
#ifndef AFS_SUN511_ENV
1831
1836
    /*
1832
1837
     * Solaris calls VOP_OPEN on exec, but doesn't call VOP_CLOSE when
1833
1838
     * the executable exits.  So we clean up the open count here.
1838
1843
     */
1839
1844
    if (avc->opens > 0 && avc->mvstat == 0 && !(avc->f.states & CCore))
1840
1845
        avc->opens = avc->execsOrWriters = 0;
 
1846
#endif
1841
1847
 
1842
1848
    afs_InactiveVCache(avc, acred);
1843
1849