~ubuntu-branches/ubuntu/oneiric/openafs/oneiric-201305130334

« back to all changes in this revision

Viewing changes to src/afs/VNOPS/afs_vnop_dirops.c

  • Committer: Bazaar Package Importer
  • Author(s): Russ Allbery
  • Date: 2008-09-22 19:07:02 UTC
  • mfrom: (12.1.14 intrepid)
  • Revision ID: james.westby@ubuntu.com-20080922190702-59m13d7kn6gkw32d
Tags: 1.4.7.dfsg1-6
* Apply upstream patch to free /proc entries in the correct order.
  Thanks, Marc Dionne.  (Closes: #493914)
* Apply upstream deltas to support 2.6.27 kernels and to stop using
  COMMON_KERN_CFLAGS for all 2.6 kernels uniformly, which fixes
  problems on amd64 with newer kernels.  Thanks, Björn Torkelsson.
  (LP: #267504)
* Translation updates:
  - Swedish, thanks Martin Bagge.  (Closes: #493120)

Show diffs side-by-side

added added

removed removed

Lines of Context:
21
21
#include "afs/param.h"
22
22
 
23
23
RCSID
24
 
    ("$Header: /cvs/openafs/src/afs/VNOPS/afs_vnop_dirops.c,v 1.14.2.5 2005/05/30 04:05:44 shadow Exp $");
 
24
    ("$Header: /cvs/openafs/src/afs/VNOPS/afs_vnop_dirops.c,v 1.14.2.6 2007/12/08 18:00:45 shadow Exp $");
25
25
 
26
26
#include "afs/sysincludes.h"    /* Standard vendor system headers */
27
27
#include "afsincludes.h"        /* Afs-based standard headers */
132
132
        ObtainWriteLock(&tdc->lock, 632);
133
133
    if (afs_LocalHero(adp, tdc, &OutDirStatus, 1)) {
134
134
        /* we can do it locally */
 
135
        ObtainWriteLock(&afs_xdcache, 294);
135
136
        code = afs_dir_Create(tdc, aname, &newFid.Fid);
 
137
        ReleaseWriteLock(&afs_xdcache);
136
138
        if (code) {
137
139
            ZapDCE(tdc);        /* surprise error -- use invalid value */
138
140
            DZap(tdc);