mirror of
https://github.com/ceph/ceph
synced 2024-12-27 22:13:28 +00:00
*** empty log message ***
git-svn-id: https://ceph.svn.sf.net/svnroot/ceph@75 29311d96-e01e-0410-9327-a35deaab8ce9
This commit is contained in:
parent
f578a27cc4
commit
3e74ac1385
@ -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
|
||||
|
@ -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();
|
||||
|
||||
|
30
ceph/messages/MInodeSyncRecall.h
Normal file
30
ceph/messages/MInodeSyncRecall.h
Normal 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
|
Loading…
Reference in New Issue
Block a user