*** empty log message ***

git-svn-id: https://ceph.svn.sf.net/svnroot/ceph@75 29311d96-e01e-0410-9327-a35deaab8ce9
This commit is contained in:
sage 2004-08-06 00:11:31 +00:00
parent f578a27cc4
commit 3e74ac1385
3 changed files with 32 additions and 1 deletions

View File

@ -41,7 +41,7 @@ test: test.cc FakeMessenger.o pmds.o
${CC} ${CFLAGS} ${LIBS} pmds.o FakeMessenger.o ${LEAKTRACER} test.cc -o test
import: pmds.o FakeMessenger.o import.cc
${CC} ${CFLAGS} ${LIBS} pmds.o FakeMessenger.o import.cc -o import
${CC} ${CFLAGS} ${LIBS} pmds.o FakeMessenger.o import.cc ${LEAKTRACER} -o import
mpitest: mpitest.cc MPIMessenger.cc pmds.o
${MPICC} ${MPICFLAGS} ${MPILIBS} mpitest.cc MPIMessenger.cc pmds.o -o mpitest

View File

@ -75,6 +75,7 @@ class MDCache {
size_t set_cache_size(size_t max) {
lru->lru_set_max(max);
}
size_t get_cache_size() { lru->lru_get_size(); }
bool trim(__int32_t max = -1); // trim cache
bool shutdown_pass();

View File

@ -0,0 +1,30 @@
#ifndef __MINODESYNCRECALL_H
#define __MINODESYNCRECALL_H
#include "include/Message.h"
class MInodeSyncRecall : public Message {
inodeno_t ino;
public:
inodeno_t get_ino() { return ino; }
MInodeSyncRecall() {}
MInodeSyncRecall(inodeno_t ino) :
Message(MSG_MDS_INODESYNCRECALL) {
this->ino = ino;
}
virtual char *get_type_name() { return "ISyRec"; }
virtual int decode_payload(crope s) {
s.copy(0,sizeof(inodeno_t), (char*)&ino);
return 0;
}
virtual crope get_payload() {
crope s;
s.append((char*)&ino, sizeof(ino));
return s;
}
};
#endif