]> arthur.barton.de Git - netatalk.git/commitdiff
Adjust dbd to use the same fixup logic as afpd ie call dbd_lookup with hint
authorfranklahm <franklahm>
Wed, 9 Dec 2009 15:25:28 +0000 (15:25 +0000)
committerfranklahm <franklahm>
Wed, 9 Dec 2009 15:25:28 +0000 (15:25 +0000)
etc/cnid_dbd/cmd_dbd_scanvol.c
etc/cnid_dbd/dbd_lookup.c

index 9af6e585da10c0b1940ed8a0368a6cda30013fe4..3addca9fda336837f1d30d0c79c28cc0dcc1d210 100644 (file)
@@ -1,5 +1,5 @@
 /*
-  $Id: cmd_dbd_scanvol.c,v 1.12 2009-12-03 13:33:44 franklahm Exp $
+  $Id: cmd_dbd_scanvol.c,v 1.13 2009-12-09 15:25:28 franklahm Exp $
 
   Copyright (c) 2009 Frank Lahm <franklahm@gmail.com>
 
@@ -435,6 +435,7 @@ static cnid_t check_cnid(const char *name, cnid_t did, struct stat *st, int adfi
     memset(&rqst, 0, sizeof(struct cnid_dbd_rqst));
     memset(&rply, 0, sizeof(struct cnid_dbd_rply));
     rqst.did = did;
+    rqst.cnid = ad_cnid;
     if ( ! (volinfo->v_flags & AFPVOL_NODEV))
         rqst.dev = st->st_dev;
     rqst.ino = st->st_ino;
index b79548a60d124e9ebb4fd66c780fee6da8ddfadc..1f310fe9af7d53f653e8210ba657cf51677e4863 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * $Id: dbd_lookup.c,v 1.15 2009-12-08 10:26:12 franklahm Exp $
+ * $Id: dbd_lookup.c,v 1.16 2009-12-09 15:25:28 franklahm Exp $
  *
  * Copyright (C) Joerg Lenneis 2003
  * Copyright (C) Frank Lahm 2009
@@ -240,8 +240,8 @@ int dbd_lookup(DBD *dbd, struct cnid_dbd_rqst *rqst, struct cnid_dbd_rply *rply,
     }
 
     if ( ! didname) {
-        LOG(log_debug, logtype_cnid, "dbd_lookup(DID:%u/'%s',0x%llx/0x%llx): CNID resolve problem: server side rename oder reused inode",
-            ntohl(rqst->did), rqst->name, (unsigned long long)rqst->dev, (unsigned long long)rqst->ino);
+        LOG(log_debug, logtype_cnid, "dbd_lookup(CNID hint: %u, DID:%u, \"%s\", 0x%llx/0x%llx): CNID resolve problem: server side rename oder reused inode",
+            ntohl(rqst->cnid), ntohl(rqst->did), rqst->name, (unsigned long long)rqst->dev, (unsigned long long)rqst->ino);
         if (rqst->cnid == id_devino) {
             LOG(log_debug, logtype_cnid, "dbd_lookup: server side mv (with resource fork)");
             update = 1;