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

« back to all changes in this revision

Viewing changes to src/afs/VNOPS/afs_vnop_create.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:
17
17
#include "afs/param.h"
18
18
 
19
19
RCSID
20
 
    ("$Header: /cvs/openafs/src/afs/VNOPS/afs_vnop_create.c,v 1.16.2.9 2006/10/13 05:15:58 shadow Exp $");
 
20
    ("$Header: /cvs/openafs/src/afs/VNOPS/afs_vnop_create.c,v 1.16.2.10 2007/12/08 18:00:45 shadow Exp $");
21
21
 
22
22
#include "afs/sysincludes.h"    /* Standard vendor system headers */
23
23
#include "afsincludes.h"        /* Afs-based standard headers */
353
353
        UpgradeSToWLock(&tdc->lock, 631);
354
354
    if (afs_LocalHero(adp, tdc, &OutDirStatus, 1)) {
355
355
        /* we can do it locally */
 
356
        ObtainWriteLock(&afs_xdcache, 291);
356
357
        code = afs_dir_Create(tdc, aname, &newFid.Fid);
 
358
        ReleaseWriteLock(&afs_xdcache);
357
359
        if (code) {
358
360
            ZapDCE(tdc);
359
361
            DZap(tdc);