Show
Ignore:
Timestamp:
06/29/10 12:53:16 (3 years ago)
Author:
elaine
Message:

Pass multiple dirent handles between server and client.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • branches/Orange-Elaine-Distr-Dir-Branch/src/client/sysint/sys-remove.sm

    r8386 r8418  
    1616 
    1717#include "client-state-machine.h" 
     18#include "pint-util.h" 
    1819#include "pvfs2-debug.h" 
    1920#include "job.h" 
     
    299300    msg_p = &sm_p->msgarray_op.msgpair; 
    300301 
     302    /* TODO: Need to find the correct dirent_handle */ 
    301303    PINT_SERVREQ_RMDIRENT_FILL( 
    302304        msg_p->req, 
     
    304306        sm_p->parent_ref.fs_id, 
    305307        sm_p->parent_ref.handle, 
    306         sm_p->getattr.attr.u.dir.dirent_handle, 
     308        sm_p->getattr.attr.u.dir.dirent_handle[0], 
    307309        sm_p->u.remove.object_name, 
    308310        sm_p->hints); 
     
    370372    assert(attr); 
    371373 
     374    /* TODO: Need to find the correct dirent_handle */ 
    372375    gossip_debug(GOSSIP_CLIENT_DEBUG, "dirent_handle: %llu\n", 
    373         llu(attr->u.dir.dirent_handle)); 
     376        llu(attr->u.dir.dirent_handle[0])); 
    374377  
    375378    PINT_msgpair_init(&sm_p->msgarray_op); 
     
    382385        sm_p->object_ref.handle, 
    383386        sm_p->parent_ref.handle, 
    384         attr->u.dir.dirent_handle, 
     387        attr->u.dir.dirent_handle[0], 
    385388        sm_p->parent_ref.fs_id, 
    386389        sm_p->hints); 
     
    501504 
    502505    PINT_msgpairarray_destroy(&sm_p->msgarray_op); 
     506    PINT_SM_GETATTR_STATE_CLEAR(sm_p->getattr); 
    503507 
    504508    PINT_SET_OP_COMPLETE;