All of lore.kernel.org
 help / color / mirror / Atom feed
* [Ocfs2-devel] a puzzle about is_global_system_inode function
@ 2017-10-24 10:39 Larry Chen
  2017-10-24 11:04 ` Joseph Qi
  2017-10-24 12:35 ` alex chen
  0 siblings, 2 replies; 6+ messages in thread
From: Larry Chen @ 2017-10-24 10:39 UTC (permalink / raw)
  To: ocfs2-devel

Hi all,

Function is_global_system_inode checks whether the type is
in the range [OCFS2_FIRST_ONLINE_SYSTEM_INODE , 
OCFS2_LAST_GLOBAL_SYSTEM_INODE ].
But why the range does not include GLOBAL_INODE_ALLOC_SYSTEM_INODE ??

enum {
 ????? ....
 ?????? GLOBAL_INODE_ALLOC_SYSTEM_INODE,
 ??????? SLOT_MAP_SYSTEM_INODE,
#define OCFS2_FIRST_ONLINE_SYSTEM_INODE SLOT_MAP_SYSTEM_INODE
 ??????? HEARTBEAT_SYSTEM_INODE,
 ??????? GLOBAL_BITMAP_SYSTEM_INODE,
 ??????? USER_QUOTA_SYSTEM_INODE,
 ??????? GROUP_QUOTA_SYSTEM_INODE,
#define OCFS2_LAST_GLOBAL_SYSTEM_INODE GROUP_QUOTA_SYSTEM_INODE
 ??? ....
}

Thanks
Larry Chen

^ permalink raw reply	[flat|nested] 6+ messages in thread

* [Ocfs2-devel] a puzzle about is_global_system_inode function
  2017-10-24 10:39 [Ocfs2-devel] a puzzle about is_global_system_inode function Larry Chen
@ 2017-10-24 11:04 ` Joseph Qi
  2017-10-24 12:23   ` Larry Chen
  2017-10-24 12:35 ` alex chen
  1 sibling, 1 reply; 6+ messages in thread
From: Joseph Qi @ 2017-10-24 11:04 UTC (permalink / raw)
  To: ocfs2-devel

GLOBAL_INODE_ALLOC_SYSTEM_INODE is used for system files inode
allocation, you can refer to ocfs2-tools for details.

Thanks,
Joseph

On 17/10/24 18:39, Larry Chen wrote:
> Hi all,
> 
> Function is_global_system_inode checks whether the type is
> in the range [OCFS2_FIRST_ONLINE_SYSTEM_INODE , 
> OCFS2_LAST_GLOBAL_SYSTEM_INODE ].
> But why the range does not include GLOBAL_INODE_ALLOC_SYSTEM_INODE ??
> 
> enum {
>  ????? ....
>  ?????? GLOBAL_INODE_ALLOC_SYSTEM_INODE,
>  ??????? SLOT_MAP_SYSTEM_INODE,
> #define OCFS2_FIRST_ONLINE_SYSTEM_INODE SLOT_MAP_SYSTEM_INODE
>  ??????? HEARTBEAT_SYSTEM_INODE,
>  ??????? GLOBAL_BITMAP_SYSTEM_INODE,
>  ??????? USER_QUOTA_SYSTEM_INODE,
>  ??????? GROUP_QUOTA_SYSTEM_INODE,
> #define OCFS2_LAST_GLOBAL_SYSTEM_INODE GROUP_QUOTA_SYSTEM_INODE
>  ??? ....
> }
> 
> Thanks
> Larry Chen
> _______________________________________________
> Ocfs2-devel mailing list
> Ocfs2-devel at oss.oracle.com
> https://oss.oracle.com/mailman/listinfo/ocfs2-devel
> 

^ permalink raw reply	[flat|nested] 6+ messages in thread

* [Ocfs2-devel] a puzzle about is_global_system_inode function
  2017-10-24 11:04 ` Joseph Qi
@ 2017-10-24 12:23   ` Larry Chen
  2017-10-24 13:16     ` ge changwei
  0 siblings, 1 reply; 6+ messages in thread
From: Larry Chen @ 2017-10-24 12:23 UTC (permalink / raw)
  To: ocfs2-devel

On 10/24/2017 7:04 PM, Joseph Qi wrote:
> GLOBAL_INODE_ALLOC_SYSTEM_INODE is used for system files inode
> allocation, you can refer to ocfs2-tools for details.

So it won't be used as an allocator after mkfs.ocfs2.? Is that true??

Thanks,
Larry Chen

>
> Thanks,
> Joseph
>
> On 17/10/24 18:39, Larry Chen wrote:
>> Hi all,
>>
>> Function is_global_system_inode checks whether the type is
>> in the range [OCFS2_FIRST_ONLINE_SYSTEM_INODE ,
>> OCFS2_LAST_GLOBAL_SYSTEM_INODE ].
>> But why the range does not include GLOBAL_INODE_ALLOC_SYSTEM_INODE ??
>>
>> enum {
>>   ????? ....
>>   ?????? GLOBAL_INODE_ALLOC_SYSTEM_INODE,
>>   ??????? SLOT_MAP_SYSTEM_INODE,
>> #define OCFS2_FIRST_ONLINE_SYSTEM_INODE SLOT_MAP_SYSTEM_INODE
>>   ??????? HEARTBEAT_SYSTEM_INODE,
>>   ??????? GLOBAL_BITMAP_SYSTEM_INODE,
>>   ??????? USER_QUOTA_SYSTEM_INODE,
>>   ??????? GROUP_QUOTA_SYSTEM_INODE,
>> #define OCFS2_LAST_GLOBAL_SYSTEM_INODE GROUP_QUOTA_SYSTEM_INODE
>>   ??? ....
>> }
>>
>> Thanks
>> Larry Chen
>> _______________________________________________
>> Ocfs2-devel mailing list
>> Ocfs2-devel at oss.oracle.com
>> https://oss.oracle.com/mailman/listinfo/ocfs2-devel
>>

^ permalink raw reply	[flat|nested] 6+ messages in thread

* [Ocfs2-devel] a puzzle about is_global_system_inode function
  2017-10-24 10:39 [Ocfs2-devel] a puzzle about is_global_system_inode function Larry Chen
  2017-10-24 11:04 ` Joseph Qi
@ 2017-10-24 12:35 ` alex chen
  1 sibling, 0 replies; 6+ messages in thread
From: alex chen @ 2017-10-24 12:35 UTC (permalink / raw)
  To: ocfs2-devel

Hi Larry Chen,

I think the reason is because the GLOBAL_INODE_ALLOC_SYSTEM_INODE
is just used when the device is offline, such as used in mkfs.ocfs2
and tunefs.ocfs2, it is not needed when the device is online.

Thanks
Alex

On 2017/10/24 18:39, Larry Chen wrote:
> Hi all,
> 
> Function is_global_system_inode checks whether the type is
> in the range [OCFS2_FIRST_ONLINE_SYSTEM_INODE , 
> OCFS2_LAST_GLOBAL_SYSTEM_INODE ].
> But why the range does not include GLOBAL_INODE_ALLOC_SYSTEM_INODE ??
> 
> enum {
>        ....
>         GLOBAL_INODE_ALLOC_SYSTEM_INODE,
>          SLOT_MAP_SYSTEM_INODE,
> #define OCFS2_FIRST_ONLINE_SYSTEM_INODE SLOT_MAP_SYSTEM_INODE
>          HEARTBEAT_SYSTEM_INODE,
>          GLOBAL_BITMAP_SYSTEM_INODE,
>          USER_QUOTA_SYSTEM_INODE,
>          GROUP_QUOTA_SYSTEM_INODE,
> #define OCFS2_LAST_GLOBAL_SYSTEM_INODE GROUP_QUOTA_SYSTEM_INODE
>      ....
> }
> 
> Thanks
> Larry Chen
> _______________________________________________
> Ocfs2-devel mailing list
> Ocfs2-devel at oss.oracle.com
> https://oss.oracle.com/mailman/listinfo/ocfs2-devel
> 

^ permalink raw reply	[flat|nested] 6+ messages in thread

* [Ocfs2-devel] a puzzle about is_global_system_inode function
  2017-10-24 12:23   ` Larry Chen
@ 2017-10-24 13:16     ` ge changwei
  2017-10-25  2:08       ` Larry Chen
  0 siblings, 1 reply; 6+ messages in thread
From: ge changwei @ 2017-10-24 13:16 UTC (permalink / raw)
  To: ocfs2-devel



On 24/10/2017 8:23 PM, Larry Chen wrote:
> On 10/24/2017 7:04 PM, Joseph Qi wrote:
>> GLOBAL_INODE_ALLOC_SYSTEM_INODE is used for system files inode
>> allocation, you can refer to ocfs2-tools for details.
> So it won't be used as an allocator after mkfs.ocfs2.? Is that true??
Hi Larry,
I think GLOBAL_INODE_ALLOC_SYSTEM_INODE system file is a reserved space 
for allocating inodes representing local allocater, etc.

So there is no chance for us to modify it since it has no relation with 
file space allocation and declaim.

So I suppose you are right, we won't use it anymore after mkfs until you 
have to tune it.

Thanks?
Changwei.

>
> Thanks,
> Larry Chen
>
>> Thanks,
>> Joseph
>>
>> On 17/10/24 18:39, Larry Chen wrote:
>>> Hi all,
>>>
>>> Function is_global_system_inode checks whether the type is
>>> in the range [OCFS2_FIRST_ONLINE_SYSTEM_INODE ,
>>> OCFS2_LAST_GLOBAL_SYSTEM_INODE ].
>>> But why the range does not include GLOBAL_INODE_ALLOC_SYSTEM_INODE ??
>>>
>>> enum {
>>>    ????? ....
>>>    ?????? GLOBAL_INODE_ALLOC_SYSTEM_INODE,
>>>    ??????? SLOT_MAP_SYSTEM_INODE,
>>> #define OCFS2_FIRST_ONLINE_SYSTEM_INODE SLOT_MAP_SYSTEM_INODE
>>>    ??????? HEARTBEAT_SYSTEM_INODE,
>>>    ??????? GLOBAL_BITMAP_SYSTEM_INODE,
>>>    ??????? USER_QUOTA_SYSTEM_INODE,
>>>    ??????? GROUP_QUOTA_SYSTEM_INODE,
>>> #define OCFS2_LAST_GLOBAL_SYSTEM_INODE GROUP_QUOTA_SYSTEM_INODE
>>>    ??? ....
>>> }
>>>
>>> Thanks
>>> Larry Chen
>>> _______________________________________________
>>> Ocfs2-devel mailing list
>>> Ocfs2-devel at oss.oracle.com
>>> https://oss.oracle.com/mailman/listinfo/ocfs2-devel
>>>
>
> _______________________________________________
> Ocfs2-devel mailing list
> Ocfs2-devel at oss.oracle.com
> https://oss.oracle.com/mailman/listinfo/ocfs2-devel

^ permalink raw reply	[flat|nested] 6+ messages in thread

* [Ocfs2-devel] a puzzle about is_global_system_inode function
  2017-10-24 13:16     ` ge changwei
@ 2017-10-25  2:08       ` Larry Chen
  0 siblings, 0 replies; 6+ messages in thread
From: Larry Chen @ 2017-10-25  2:08 UTC (permalink / raw)
  To: ocfs2-devel

Hi changwei, alex, and Joseph,

Really appreciate your help.

Thanks
Larry Chen

On 10/24/2017 9:16 PM, ge changwei wrote:
>
> On 24/10/2017 8:23 PM, Larry Chen wrote:
>> On 10/24/2017 7:04 PM, Joseph Qi wrote:
>>> GLOBAL_INODE_ALLOC_SYSTEM_INODE is used for system files inode
>>> allocation, you can refer to ocfs2-tools for details.
>> So it won't be used as an allocator after mkfs.ocfs2.? Is that true??
> Hi Larry,
> I think GLOBAL_INODE_ALLOC_SYSTEM_INODE system file is a reserved space
> for allocating inodes representing local allocater, etc.
>
> So there is no chance for us to modify it since it has no relation with
> file space allocation and declaim.
>
> So I suppose you are right, we won't use it anymore after mkfs until you
> have to tune it.
>
> Thanks?
> Changwei.
>
>> Thanks,
>> Larry Chen
>>
>>> Thanks,
>>> Joseph
>>>
>>> On 17/10/24 18:39, Larry Chen wrote:
>>>> Hi all,
>>>>
>>>> Function is_global_system_inode checks whether the type is
>>>> in the range [OCFS2_FIRST_ONLINE_SYSTEM_INODE ,
>>>> OCFS2_LAST_GLOBAL_SYSTEM_INODE ].
>>>> But why the range does not include GLOBAL_INODE_ALLOC_SYSTEM_INODE ??
>>>>
>>>> enum {
>>>>     ????? ....
>>>>     ?????? GLOBAL_INODE_ALLOC_SYSTEM_INODE,
>>>>     ??????? SLOT_MAP_SYSTEM_INODE,
>>>> #define OCFS2_FIRST_ONLINE_SYSTEM_INODE SLOT_MAP_SYSTEM_INODE
>>>>     ??????? HEARTBEAT_SYSTEM_INODE,
>>>>     ??????? GLOBAL_BITMAP_SYSTEM_INODE,
>>>>     ??????? USER_QUOTA_SYSTEM_INODE,
>>>>     ??????? GROUP_QUOTA_SYSTEM_INODE,
>>>> #define OCFS2_LAST_GLOBAL_SYSTEM_INODE GROUP_QUOTA_SYSTEM_INODE
>>>>     ??? ....
>>>> }
>>>>
>>>> Thanks
>>>> Larry Chen
>>>> _______________________________________________
>>>> Ocfs2-devel mailing list
>>>> Ocfs2-devel at oss.oracle.com
>>>> https://oss.oracle.com/mailman/listinfo/ocfs2-devel
>>>>
>> _______________________________________________
>> Ocfs2-devel mailing list
>> Ocfs2-devel at oss.oracle.com
>> https://oss.oracle.com/mailman/listinfo/ocfs2-devel

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2017-10-25  2:08 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-10-24 10:39 [Ocfs2-devel] a puzzle about is_global_system_inode function Larry Chen
2017-10-24 11:04 ` Joseph Qi
2017-10-24 12:23   ` Larry Chen
2017-10-24 13:16     ` ge changwei
2017-10-25  2:08       ` Larry Chen
2017-10-24 12:35 ` alex chen

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.