[Ocfs2-devel] A question on OCFS2 mount

Gechangwei ge.changwei at h3c.com
Sat Nov 19 00:32:24 PST 2016


On 2016年08月31日 18:59, Gechangwei wrote:
Hi,

I am asking for your help on OCFS2 again.

I can’t figure out a segment of code.

In the function dlm_register_domain which is called during mount procedure, below code stays:

         dlm = __dlm_lookup_domain(domain);
         if (dlm) {
                   if (dlm->dlm_state != DLM_CTXT_JOINED) {
                            spin_unlock(&dlm_domain_lock);

                            mlog(ML_ERROR, "fence: dlm(%s) is not joined yet.\n", dlm->name);

                            mlog(0, "This ctxt is not joined yet!\n");
                            wait_event_interruptible(dlm_domain_events,
                                                        dlm_wait_on_domain_helper(
                                                                 domain));
                            goto retry;
                   }

I can see that it wants to look up an existed DLM context object which matches file system’s UUID.

According to my comprehension, DLM context object must be detached from the DLM domain’s list and released when dismount.

So it’s weird that such a DLM context object can be found at the procedure of MOUNT.

Could you please provide a clue for me, if convenient?
 how are u
Many thanks!

BR.

Changwei.

-------------------------------------------------------------------------------------------------------------------------------------
本邮件及其附件含有杭州华三通信技术有限公司的保密信息,仅限于发送给上面地址中列出
的个人或群组。禁止任何其他人以任何形式使用(包括但不限于全部或部分地泄露、复制、
或散发)本邮件中的信息。如果您错收了本邮件,请您立即电话或邮件通知发件人并删除本
邮件!
This e-mail and its attachments contain confidential information from H3C, which is
intended only for the person or entity whose address is listed above. Any use of the
information contained herein in any way (including, but not limited to, total or partial
disclosure, reproduction, or dissemination) by persons other than the intended
recipient(s) is prohibited. If you receive this e-mail in error, please notify the sender
by phone or email immediately and delete it!

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://oss.oracle.com/pipermail/ocfs2-devel/attachments/20161119/8c86b03a/attachment-0001.html 


More information about the Ocfs2-devel mailing list