All of lore.kernel.org
 help / color / mirror / Atom feed
* [Lustre-devel] FID update (reserve a bit in FID to identify it refers Metadata object or data object)
@ 2012-01-10 23:11 wangdi
  0 siblings, 0 replies; only message in thread
From: wangdi @ 2012-01-10 23:11 UTC (permalink / raw)
  To: lustre-devel

Hello

Here is an update about FID in Lustre.

We will implement FID on OST in lustre 2.x, so both data and metadata objects will be referred by FID in lustre. But different with the FID on MDT, OST FID will not use OI to map the real inode.(OI is container for FID->inode mapping). Instead it will still store objects under /O structure (like the current 1.8 implementation), so they can have an internal reference from the namespace to avoid problems with fsck.

Then

1. for metadata object, it will be stored under /root and referenced by OI, i.e. the target must lookup OI by FID to get the inode.
2. for data object, it will be stored under /O and referenced by the /O structure itself, i.e. the target can lookup /O by some kind of FID hash to get the inode.

So the target(MDT or OST) needs to know it is meta_data object or data object, to figure out where to get the object by FID.

We thought to reserve the highest bit of OID to identify whether it is a metadata or data object, so the maximum OID for each sequence will shrink from 4 billion to 2 billion.

For FID related information, you can referhttp://wiki.lustre.org/index.php/Architecture_-_Interoperability_fids_zfs

Thanks
WangDi

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2012-01-10 23:11 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-01-10 23:11 [Lustre-devel] FID update (reserve a bit in FID to identify it refers Metadata object or data object) wangdi

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.