mirror of
https://github.com/ceph/ceph
synced 2024-12-23 03:44:23 +00:00
43 lines
977 B
C
43 lines
977 B
C
|
// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*-
|
||
|
/*
|
||
|
* Ceph - scalable distributed file system
|
||
|
*
|
||
|
* Copyright (C) 2004-2006 Sage Weil <sage@newdream.net>
|
||
|
*
|
||
|
* This is free software; you can redistribute it and/or
|
||
|
* modify it under the terms of the GNU Lesser General Public
|
||
|
* License version 2.1, as published by the Free Software
|
||
|
* Foundation. See file COPYING.
|
||
|
*
|
||
|
*/
|
||
|
|
||
|
|
||
|
#ifndef __MUNHASHDIRNOTIFYACK_H
|
||
|
#define __MUNHASHDIRNOTIFYACK_H
|
||
|
|
||
|
#include "msg/Message.h"
|
||
|
|
||
|
class MUnhashDirNotifyAck : public Message {
|
||
|
inodeno_t ino;
|
||
|
|
||
|
public:
|
||
|
inodeno_t get_ino() { return ino; }
|
||
|
|
||
|
MUnhashDirNotifyAck() {}
|
||
|
MUnhashDirNotifyAck(inodeno_t ino) :
|
||
|
Message(MSG_MDS_UNHASHDIRNOTIFYACK) {
|
||
|
this->ino = ino;
|
||
|
}
|
||
|
virtual char *get_type_name() { return "UHNa"; }
|
||
|
|
||
|
virtual void decode_payload() {
|
||
|
payload.copy(0, sizeof(ino), (char*)&ino);
|
||
|
}
|
||
|
virtual void encode_payload() {
|
||
|
payload.append((char*)&ino, sizeof(ino));
|
||
|
}
|
||
|
|
||
|
};
|
||
|
|
||
|
#endif
|