lu_dirent changes for zfs based mds
Hi All,
Lustre based on zfs need a change readdir page wire protocol.
lu_dirent->lde_hash maintains iterator cookie. with zfs - zap cursor API we have 64bit cookie (ref. zap_cursor_serialize()). So we need to change this lde_hash to 64 bit.
This changes layout of readdir pages which is transmitted on wire, so we need to merge it into head asap.
I have posted patch on bugzilla :
https://bugzilla.lustre.org/attachment.cgi?id=15817&action=edit
plz post your comment there.
Thanks,
Pravin.
Quoted 8 lines · pravin shelar
Hi All,
Lustre based on zfs need a change readdir page wire protocol.
lu_dirent->lde_hashmaintains iterator cookie. with zfs - zap cursor API we have 64bit cookie (ref.zap_cursor_serialize()). So we need to change thislde_hashto 64 bit.
This changes layout of readdir pages which is transmitted on wire, so we need to merge it into head asap.
Note for the record that the 1.8 readdir wire protocol is already different from that used by 1.6 (because of use of FID and ability to have cross-MDT references for CMD) so changing the wire format again (before the 1.8 release) is not a problem. No release is yet using the new format.
Cheers, Andreas
--
Andreas Dilger
Sr. Staff Engineer, Lustre Group
Sun Microsystems of Canada, Inc.