Whamcloud - gitweb
git://git.whamcloud.com
/
fs
/
lustre-release.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
96b6ec8
)
cleanup debug message.
author
lsy
<lsy>
Tue, 20 Sep 2005 21:39:06 +0000
(21:39 +0000)
committer
lsy
<lsy>
Tue, 20 Sep 2005 21:39:06 +0000
(21:39 +0000)
lustre/mds/mds_capa.c
patch
|
blob
|
history
lustre/obdclass/capa.c
patch
|
blob
|
history
diff --git
a/lustre/mds/mds_capa.c
b/lustre/mds/mds_capa.c
index
6f8d091
..
8b29840
100644
(file)
--- a/
lustre/mds/mds_capa.c
+++ b/
lustre/mds/mds_capa.c
@@
-515,7
+515,7
@@
int mds_pack_capa(struct obd_device *obd, struct mds_export_data *med,
if (mfd == NULL) {
DEBUG_CAPA(D_INFO, req_capa, "no handle "LPX64" for",
req_body->handle.cookie);
if (mfd == NULL) {
DEBUG_CAPA(D_INFO, req_capa, "no handle "LPX64" for",
req_body->handle.cookie);
- RETURN(-E
STALE
);
+ RETURN(-E
NOENT
);
}
mode = accmode(mfd->mfd_mode);
}
mode = accmode(mfd->mfd_mode);
diff --git
a/lustre/obdclass/capa.c
b/lustre/obdclass/capa.c
index
36caa80
..
92335c6
100644
(file)
--- a/
lustre/obdclass/capa.c
+++ b/
lustre/obdclass/capa.c
@@
-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)
{
int keylen = CAPA_KEY_LEN;
void capa_hmac(struct crypto_tfm *tfm, __u8 *key, struct lustre_capa *capa)
{
int keylen = CAPA_KEY_LEN;
@@
-359,15
+351,6
@@
void capa_hmac(struct crypto_tfm *tfm, __u8 *key, struct lustre_capa *capa)
LASSERT(tfm);
crypto_hmac(tfm, key, &keylen, &sl, 1, capa->lc_hmac);
LASSERT(tfm);
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)