Yannis:
The sm_p->getattr structure is initialized with the following macro in the
io-init state of the sys-io.sm state machine, prior to calling the getattr
state machine.
#define PINT_SM_GETATTR_STATE_FILL(_state, _objref, _mask, _reftype,
_flags) \
465 do { \
466 memset(&(_state), 0, sizeof(PINT_sm_getattr_state)); \
467 (_state).object_ref.fs_id = (_objref).fs_id; \
468 (_state).object_ref.handle = (_objref).handle; \
469 (_state).req_attrmask = _mask; \
470 (_state).ref_type = _reftype; \
471 (_state).flags = _flags; \
472 } while(0)
473
Hope this helps,
Becky
--
Becky Ligon
HPC Admin Staff
PVFS/OrangeFS Developer
Clemson University/Omnibond.com OrangeFS Support
864-650-4065
> Hi all,
> On file src/client/sysint/sm-io.sm the
> structure sm_p->getattr.attr.u.meta.dist contains garbage and returns me a
> segmentation fault when i try to cp a folder (not a file). I am trying to
> figure out where it is initialized so i would find the source of the
> problem.
> I m running pvfs2-8-1 and i have made some changes to the metadata
> servers.
> Yannis._______________________________________________
> Pvfs2-developers mailing list
> [email protected]
> http://www.beowulf-underground.org/mailman/listinfo/pvfs2-developers
>
_______________________________________________
Pvfs2-developers mailing list
[email protected]
http://www.beowulf-underground.org/mailman/listinfo/pvfs2-developers