Skip to content
Snippets Groups Projects
Commit f290bcc7 authored by Lai Siyao's avatar Lai Siyao
Browse files

cleanup debug message.
parent 96b6ec84
No related branches found
No related tags found
No related merge requests found
...@@ -515,7 +515,7 @@ int mds_pack_capa(struct obd_device *obd, struct mds_export_data *med, ...@@ -515,7 +515,7 @@ int mds_pack_capa(struct obd_device *obd, struct mds_export_data *med,
if (mfd == NULL) { if (mfd == NULL) {
DEBUG_CAPA(D_INFO, req_capa, "no handle "LPX64" for", DEBUG_CAPA(D_INFO, req_capa, "no handle "LPX64" for",
req_body->handle.cookie); req_body->handle.cookie);
RETURN(-ESTALE); RETURN(-ENOENT);
} }
mode = accmode(mfd->mfd_mode); mode = accmode(mfd->mfd_mode);
......
...@@ -340,14 +340,6 @@ struct obd_capa *capa_renew(struct lustre_capa *capa, int type) ...@@ -340,14 +340,6 @@ struct obd_capa *capa_renew(struct lustre_capa *capa, int type)
return ocapa; return ocapa;
} }
static void dump_capa_key(char *buf, char *key)
{
int i, n = 0;
for (i = 0; i < CAPA_KEY_LEN; i++)
n += sprintf(buf + n, "%02x", (unsigned char) key[i]);
}
void capa_hmac(struct crypto_tfm *tfm, __u8 *key, struct lustre_capa *capa) void capa_hmac(struct crypto_tfm *tfm, __u8 *key, struct lustre_capa *capa)
{ {
int keylen = CAPA_KEY_LEN; int keylen = CAPA_KEY_LEN;
...@@ -359,15 +351,6 @@ void capa_hmac(struct crypto_tfm *tfm, __u8 *key, struct lustre_capa *capa) ...@@ -359,15 +351,6 @@ void capa_hmac(struct crypto_tfm *tfm, __u8 *key, struct lustre_capa *capa)
LASSERT(tfm); LASSERT(tfm);
crypto_hmac(tfm, key, &keylen, &sl, 1, capa->lc_hmac); crypto_hmac(tfm, key, &keylen, &sl, 1, capa->lc_hmac);
{
char *buf = NULL;
OBD_ALLOC(buf, keylen * 2 + 1);
if (key) {
dump_capa_key(buf, key);
DEBUG_CAPA(D_INODE, capa, "hmac with %s", buf);
}
}
} }
void capa_dup(void *dst, struct obd_capa *ocapa) void capa_dup(void *dst, struct obd_capa *ocapa)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment