From: tao.ma <tao.ma@oracle.com>
To: ocfs2-devel@oss.oracle.com
Subject: [Ocfs2-devel] Re: [Ocfs2-tools-devel] [PATCH 5/6] Modify fsck to trust global bitmap than super block.take 3
Date: Wed Jan 2 20:29:03 2008 [thread overview]
Message-ID: <477C650E.6000909@oracle.com> (raw)
In-Reply-To: <477C58A2.7020907@oracle.com>
Sunil Mushran wrote:
> I still need to go thru the fs code for resize. But under what
> condition will the global bitmap be updated and not the
> superblock?
Actually in kernel, we update the global_bitmap first and then the super
block and backups.
And if the super block and backups' update fail, the kernel doesn't care
about it and only output some in message since the kernel only use the
info stored in global_bitmap.
>
> My problem with the fsck change is that we are manipulating
> fs->fs_clusters directly. This will just cause us grief later.
> It is best if this is populated only in ocfs2_open().
If we populate in ocfs2_open, maybe we need another flag and check
global_bitmap if needed?
>
> Sunil
>
> tao.ma wrote:
>> Sunil Mushran wrote:
>>> Tao Ma wrote:
>>>> In resize, we update the global_bitmap first and then the super block.
>>>> So if there is any corruption between these 2 steps, there will be a
>>>> inconsistence. In kernel we use the information in global_bitmap,
>>>> so fsck.ocfs2 should also trust it during the check.
>>>>
>>>> Signed-off-by: Tao Ma <tao.ma@oracle.com>
>>>> ---
>>>>
>>> Signed-off-by: Sunil Mushran <sunil.mushran@oracle.com>
>>>
>>> This looks correct. However, I am still confused as to how I managed to
>>> get clean runs when testing aborted offline resize cases.
>> In your offline resize design, you write this:
>>
>> * Segfault after writing global bitmap but before the superblock.
>>
>> /fsck will remove all the new BGs that are beyond the end-of-volume
>> as determined by the superblock->num_clusters.
>>
>>
>> So we trust superblock rather than global_bitmap and it works as the
>> design expects when testing aborted offline resize cases.
>> Now the order is reversed, so I think maybe I need to revise your
>> design doc so that it doesn't lead to the "strange" result.
>> Agree?
>> /
>
next prev parent reply other threads:[~2008-01-02 20:29 UTC|newest]
Thread overview: 19+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-12-17 17:09 [Ocfs2-devel] [PATCH 0/6] Add online resize for ocfs2-tools,take 3 tao.ma
2007-12-17 17:16 ` [Ocfs2-devel] [PATCH 2/6] Abstract some specific process in resize to some individual function.take 3 Tao Ma
2008-01-02 19:01 ` [Ocfs2-devel] Re: [Ocfs2-tools-devel] " Sunil Mushran
2007-12-17 17:16 ` [Ocfs2-devel] [PATCH 3/6] Abstract checking and validating process in tunefs.ocfs2.take 3 Tao Ma
2008-01-02 19:03 ` [Ocfs2-devel] Re: [Ocfs2-tools-devel] " Sunil Mushran
2007-12-17 17:16 ` [Ocfs2-devel] [PATCH 1/6] Move resize function out of tunefs.c, take 3 Tao Ma
2007-12-17 17:36 ` Mark Fasheh
2008-01-02 19:01 ` [Ocfs2-devel] Re: [Ocfs2-tools-devel] " Sunil Mushran
2007-12-17 17:16 ` [Ocfs2-devel] [PATCH 4/6] Modfiy cl_cpg in global_bitmap to be maximum value during mkfs.take 3 Tao Ma
2008-01-02 19:03 ` [Ocfs2-devel] Re: [Ocfs2-tools-devel] " Sunil Mushran
2007-12-17 17:18 ` [Ocfs2-devel] [PATCH 6/6] Add online resize support in tunefs.ocfs2.take 3 Tao Ma
2007-12-17 17:18 ` [Ocfs2-devel] [PATCH 5/6] Modify fsck to trust global bitmap than super block.take 3 Tao Ma
2007-12-17 17:34 ` [Ocfs2-devel] Re: [Ocfs2-tools-devel] " Mark Fasheh
2008-01-02 19:05 ` Sunil Mushran
2008-01-02 19:17 ` tao.ma
2008-01-02 19:40 ` Sunil Mushran
2008-01-02 20:29 ` tao.ma [this message]
2008-01-03 18:30 ` Sunil Mushran
2008-01-04 0:41 ` tao.ma
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=477C650E.6000909@oracle.com \
--to=tao.ma@oracle.com \
--cc=ocfs2-devel@oss.oracle.com \
/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.