From: tao.ma <tao.ma@oracle.com>
To: ocfs2-devel@oss.oracle.com
Subject: [Ocfs2-devel] [PATCH 2/2] Add online resize support for ocfs2, take 1
Date: Tue Nov 20 18:39:15 2007 [thread overview]
Message-ID: <47439A32.6050406@oracle.com> (raw)
In-Reply-To: <20071121015258.GK28607@ca-server1.us.oracle.com>
Mark Fasheh wrote:
> On Wed, Nov 21, 2007 at 09:33:40AM +0800, tao.ma wrote:
>
>> Thanks for your review.
>> Just one thing that I am not clear.
>> Mark Fasheh wrote:
>>
>>>> diff --git a/fs/ocfs2/journal.h b/fs/ocfs2/journal.h
>>>> index 4b32e09..ae08951 100644
>>>> --- a/fs/ocfs2/journal.h
>>>> +++ b/fs/ocfs2/journal.h
>>>> @@ -278,6 +278,9 @@ int ocfs2_journal_dirty
>>>> /* simple file updates like chmod, etc. */
>>>> #define OCFS2_INODE_UPDATE_CREDITS 1
>>>> +/* onine resize. Just dinode + last group descriptor update. */
>>>> +#define OCFS2_ONLINE_RESIZE_CREDITS (2)
>>>> +
>>>> /* get one bit out of a suballocator: dinode + group descriptor +
>>>> * prev. group desc. if we relink. */
>>>> #define OCFS2_SUBALLOC_ALLOC (3)
>>>> diff --git a/fs/ocfs2/ocfs2_fs.h b/fs/ocfs2/ocfs2_fs.h
>>>> index 6ef8767..099d984 100644
>>>> --- a/fs/ocfs2/ocfs2_fs.h
>>>> +++ b/fs/ocfs2/ocfs2_fs.h
>>>> @@ -27,7 +27,7 @@ #define _OCFS2_FS_H
>>>> /* Version */
>>>> #define OCFS2_MAJOR_REV_LEVEL 0
>>>> -#define OCFS2_MINOR_REV_LEVEL 90
>>>> +#define OCFS2_MINOR_REV_LEVEL 91
>>>>
>>>>
>>> This isn't needed.
>>>
>>>
>> This is needed. I'd like to copy your previous comments here.
>>
>> 1) This kind of change requires bumping the protocol version, because
>> without it the value will get stale on other nodes. We're fine though since
>> you should be bumping protocol anyway to make sure non-resize capable nodes
>> don't mount at the same time.
>> So maybe "the protocol version" your mentioned isn't here?
>>
>
> Yeah, I was referring to O2NET_PROTOCOL_VERSION in cluster/tcp_internal.h
>
> However, if we refuse a change to any file system if the disk bitmap_cpg is
> wrong, then I don't think we need to bump the protocol version after all as
> the value should never change past mount and thus won't ever be stale on any
> node.
>
As you have said, we have to bump protocol to make sure non-resize capable nodes don't mount at the same time. ;)
So do you think 2 node(one know online-resize, one don't know it) can work happily with each other if we do online resize in the one who knows it?
next prev parent reply other threads:[~2007-11-20 18:39 UTC|newest]
Thread overview: 15+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-11-16 0:32 [Ocfs2-devel] [PATCH 0/2] Add online resize in ocfs2, take 1 Tao Ma
2007-11-16 0:44 ` [Ocfs2-devel] [PATCH 1/2] Initalize bitmap_cpg of ocfs2_super to be the maximum,take 1 Tao Ma
2007-11-20 15:00 ` Mark Fasheh
2007-11-20 15:14 ` Sunil Mushran
2007-11-20 15:23 ` Mark Fasheh
2007-11-20 15:40 ` Mark Fasheh
2007-11-20 17:14 ` tao.ma
2007-11-21 1:16 ` tao.ma
2007-11-21 7:39 ` Mark Fasheh
2007-11-16 0:46 ` [Ocfs2-devel] [PATCH 2/2] Add online resize support for ocfs2, take 1 Tao Ma
2007-11-20 17:08 ` Mark Fasheh
2007-11-20 17:32 ` tao.ma
2007-11-20 17:54 ` Mark Fasheh
2007-11-20 18:39 ` tao.ma [this message]
2007-11-20 20:01 ` Mark Fasheh
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=47439A32.6050406@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.