*** empty log message ***

git-svn-id: https://ceph.svn.sf.net/svnroot/ceph@159 29311d96-e01e-0410-9327-a35deaab8ce9
This commit is contained in:
sage 2005-04-22 04:52:47 +00:00
parent bdab1ad015
commit 81574598ce
6 changed files with 45 additions and 4 deletions

View File

@ -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,

View File

@ -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);

View File

@ -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;

View File

@ -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;

View File

@ -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;

View File

@ -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;