/*
- * $Id: dbd_lookup.c,v 1.7 2009-05-14 13:46:08 franklahm Exp $
+ * $Id: dbd_lookup.c,v 1.8 2009-05-28 10:22:07 franklahm Exp $
*
* Copyright (C) Joerg Lenneis 2003
* All Rights Reserved. See COPYING.
}
if (didname) {
+ LOG(log_maxdebug, logtype_cnid, "CNID resolve problem: changed dev/ino for '%s'", rqst->name);
rqst->cnid = id_didname;
/* we have a did:name
* if it's the same dev or not the same type
}
if (devino) {
+ LOG(log_maxdebug, logtype_cnid, "CNID resolve problem: server side rename oder reused inode for '%s'", rqst->name);
rqst->cnid = id_devino;
if (type_devino != rqst->type) {
/* same dev:inode but not same type one is a folder the other
/*
- * $Id: dbd_update.c,v 1.5 2009-05-06 11:54:24 franklahm Exp $
+ * $Id: dbd_update.c,v 1.6 2009-05-28 10:22:07 franklahm Exp $
*
* Copyright (C) Joerg Lenneis 2003
* All Rights Reserved. See COPYING.
else if (rc > 0) {
memcpy(&tmpcnid, pkey.data, sizeof(cnid_t));
LOG(log_debug, logtype_cnid, "dbd_update: Deleting %u corresponding to dev/ino 0x%llx/0x%llx from cnid2.db",
- ntohl(tmpcnid), ntoh64((unsigned long long int)rqst->dev), ntoh64((unsigned long long int)rqst->ino));
+ ntohl(tmpcnid), (unsigned long long)rqst->dev, (unsigned long long)rqst->ino);
if ((rc = dbif_del(dbd, DBIF_CNID, &pkey, 0)) < 0 ) {
goto err_db;
goto err_db;
LOG(log_info, logtype_cnid, "dbd_update: Updated cnid2.db with dev/ino 0x%llx/0x%llx did %u name %s cnid %u",
- ntoh64((unsigned long long int)rqst->dev), ntoh64((unsigned long long int)rqst->ino),
- ntohl(rqst->did), rqst->name, ntohl(rqst->cnid));
+ (unsigned long long)rqst->dev, (unsigned long long)rqst->ino, ntohl(rqst->did), rqst->name, ntohl(rqst->cnid));
rply->result = CNID_DBD_RES_OK;
return 1;
err_db:
LOG(log_error, logtype_cnid, "dbd_update: Unable to update CNID %u dev/ino 0x%llx/0x%llx, DID %ul: %s",
- ntohl(rqst->cnid),
- ntoh64((unsigned long long int)rqst->dev), ntoh64((unsigned long long int)rqst->ino),
- rqst->did, rqst->name);
+ ntohl(rqst->cnid), (unsigned long long)rqst->dev, (unsigned long long)rqst->ino, rqst->did, rqst->name);
rply->result = CNID_DBD_RES_ERR_DB;
return -1;
/*
- * $Id: cnid_dbd.c,v 1.7 2009-04-21 08:55:44 franklahm Exp $
+ * $Id: cnid_dbd.c,v 1.8 2009-05-28 10:22:07 franklahm Exp $
*
* Copyright (C) Joerg Lenneis 2003
* All Rights Reserved. See COPYING.
case CNID_DBD_RES_OK:
*id = rply.did;
name = rply.name;
- LOG(log_debug, logtype_cnid, "cnid_dbd_resolve: resolved CNID: %u to '%s'", ntohl(*id), name);
+ LOG(log_debug, logtype_cnid, "cnid_dbd_resolve: resolved did: %u, name: '%s'", ntohl(*id), name);
break;
case CNID_DBD_RES_NOTFOUND:
*id = CNID_INVALID;