mirror of
https://github.com/ceph/ceph
synced 2025-01-18 17:12:29 +00:00
*** empty log message ***
git-svn-id: https://ceph.svn.sf.net/svnroot/ceph@159 29311d96-e01e-0410-9327-a35deaab8ce9
This commit is contained in:
parent
bdab1ad015
commit
81574598ce
@ -59,7 +59,7 @@ md_config_t g_conf = {
|
||||
client_op_mknod: 10,
|
||||
client_op_link: false,
|
||||
client_op_unlink: 10,
|
||||
client_op_rename: 100,
|
||||
client_op_rename: 00,
|
||||
|
||||
client_op_mkdir: 10,
|
||||
client_op_rmdir: 10,
|
||||
|
@ -373,11 +373,11 @@ void MDS::handle_client_request(MClientRequest *req)
|
||||
*/
|
||||
|
||||
case MDS_OP_TRUNCATE:
|
||||
if (!req->get_ino()) break; // can be called w/ either ino OR path
|
||||
if (!req->get_iarg()) break; // can be called w/ either fh OR path
|
||||
|
||||
case MDS_OP_CLOSE:
|
||||
case MDS_OP_FSYNC:
|
||||
ref = mdcache->get_inode(req->get_ino());
|
||||
ref = mdcache->get_inode(req->get_iarg()); // FIXME: WRONG, look up fh!
|
||||
}
|
||||
|
||||
if (!ref) {
|
||||
@ -1708,7 +1708,7 @@ void MDS::handle_client_close(MClientRequest *req, CInode *cur)
|
||||
// reply
|
||||
MClientReply *reply = new MClientReply(req);
|
||||
reply->set_trace_dist( cur, whoami );
|
||||
reply->set_iarg( req->get_iarg() );
|
||||
//reply->set_iarg( req->get_iarg() );
|
||||
messenger->send_message(reply,
|
||||
req->get_source(), 0, MDS_PORT_SERVER);
|
||||
|
||||
|
@ -3,6 +3,16 @@
|
||||
|
||||
#include "msg/Message.h"
|
||||
|
||||
/*
|
||||
* OSD read request
|
||||
*
|
||||
* oid - object id
|
||||
* offset, len -- guess
|
||||
*
|
||||
* caveat: if len=0, then the _entire_ object is read. this is currently
|
||||
* used by the MDS, and pretty much a dumb idea in general.
|
||||
*/
|
||||
|
||||
typedef struct {
|
||||
long tid;
|
||||
size_t len;
|
||||
|
@ -3,6 +3,15 @@
|
||||
|
||||
#include "MOSDRead.h"
|
||||
|
||||
/*
|
||||
* OSD Read Reply
|
||||
*
|
||||
* oid - object id
|
||||
* offset, len - data returned
|
||||
*
|
||||
* len may not match the read request, if the end of object is hit.
|
||||
*/
|
||||
|
||||
typedef struct {
|
||||
long tid;
|
||||
off_t offset;
|
||||
|
@ -3,6 +3,19 @@
|
||||
|
||||
#include "msg/Message.h"
|
||||
|
||||
/*
|
||||
* OSD Write
|
||||
*
|
||||
* tid - caller's transaction id
|
||||
*
|
||||
* oid - object id
|
||||
* offset, len -
|
||||
*
|
||||
* flags - passed to open(). not used at all.. this should be removed?
|
||||
*
|
||||
*/
|
||||
|
||||
|
||||
typedef struct {
|
||||
long tid;
|
||||
off_t offset;
|
||||
|
@ -3,6 +3,15 @@
|
||||
|
||||
#include "MOSDWrite.h"
|
||||
|
||||
/*
|
||||
* OSD WRite Reply
|
||||
*
|
||||
* tid - caller's transaction #
|
||||
* oid - object id
|
||||
* offset, len - ...
|
||||
* result - result code, matchines write() system call: # of bytes written, or error code.
|
||||
*/
|
||||
|
||||
typedef struct {
|
||||
long tid;
|
||||
long result;
|
||||
|
Loading…
Reference in New Issue
Block a user