From: wangdi <di.wang@whamcloud.com>
To: lustre-devel@lists.lustre.org
Subject: [Lustre-devel] FID update (reserve a bit in FID to identify it refers Metadata object or data object)
Date: Tue, 10 Jan 2012 15:11:18 -0800 [thread overview]
Message-ID: <4F0CC596.4020409@whamcloud.com> (raw)
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
reply other threads:[~2012-01-10 23:11 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=4F0CC596.4020409@whamcloud.com \
--to=di.wang@whamcloud.com \
--cc=lustre-devel@lists.lustre.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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.