All of lore.kernel.org
 help / color / mirror / Atom feed
* [Ocfs2-devel] What are the purposes of GLOBAL_INODE_ALLOC_SYSTEM_INODE and BAD_BLOCK_SYSTEM_INODE system file
@ 2016-10-09  8:47 Gang He
  2016-10-09  9:00 ` Junxiao Bi
  2016-10-09 10:33 ` Joseph Qi
  0 siblings, 2 replies; 4+ messages in thread
From: Gang He @ 2016-10-09  8:47 UTC (permalink / raw)
  To: ocfs2-devel

Hello Guys,

If you use debugfs.ocfs2 to list system files for a ocfs2 file system, you can find these two system files.
sles12sp1-node1:/ # debugfs.ocfs2 /dev/sdb1
debugfs.ocfs2 1.8.2
debugfs: ls //
 6               16   1    2  .
 6               16   2    2  ..
 7               24   10   1  bad_blocks             << ==  BAD_BLOCK_SYSTEM_INODE
 8               32   18   1  global_inode_alloc     << ==  GLOBAL_INODE_ALLOC_SYSTEM_INODE
  ....

But, What are the purposes of GLOBAL_INODE_ALLOC_SYSTEM_INODE and BAD_BLOCK_SYSTEM_INODE system file?
For BAD_BLOCK_SYSTEM_INODE system file, it looks to be used to store bad blocks for a file system partition, but from the code, there is not any code for this system file.
For GLOBAL_INODE_ALLOC_SYSTEM_INODE system file, there is also not any code for it, what is the purpose of this file ?


Thanks
Gang

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

* [Ocfs2-devel] What are the purposes of GLOBAL_INODE_ALLOC_SYSTEM_INODE and BAD_BLOCK_SYSTEM_INODE system file
  2016-10-09  8:47 [Ocfs2-devel] What are the purposes of GLOBAL_INODE_ALLOC_SYSTEM_INODE and BAD_BLOCK_SYSTEM_INODE system file Gang He
@ 2016-10-09  9:00 ` Junxiao Bi
  2016-10-09 10:33 ` Joseph Qi
  1 sibling, 0 replies; 4+ messages in thread
From: Junxiao Bi @ 2016-10-09  9:00 UTC (permalink / raw)
  To: ocfs2-devel

On 10/09/2016 04:47 PM, Gang He wrote:
> Hello Guys,
> 
> If you use debugfs.ocfs2 to list system files for a ocfs2 file system, you can find these two system files.
> sles12sp1-node1:/ # debugfs.ocfs2 /dev/sdb1
> debugfs.ocfs2 1.8.2
> debugfs: ls //
>  6               16   1    2  .
>  6               16   2    2  ..
>  7               24   10   1  bad_blocks             << ==  BAD_BLOCK_SYSTEM_INODE
>  8               32   18   1  global_inode_alloc     << ==  GLOBAL_INODE_ALLOC_SYSTEM_INODE
>   ....
> 
> But, What are the purposes of GLOBAL_INODE_ALLOC_SYSTEM_INODE and BAD_BLOCK_SYSTEM_INODE system file?
> For BAD_BLOCK_SYSTEM_INODE system file, it looks to be used to store bad blocks for a file system partition, but from the code, there is not any code for this system file.
> For GLOBAL_INODE_ALLOC_SYSTEM_INODE system file, there is also not any code for it, what is the purpose of this file ?
These two are not used. Maybe left for future extend.

Thanks,
Junxiao.
> 
> 
> Thanks
> Gang
> 
> 
> 
> 

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

* [Ocfs2-devel] What are the purposes of GLOBAL_INODE_ALLOC_SYSTEM_INODE and BAD_BLOCK_SYSTEM_INODE system file
  2016-10-09  8:47 [Ocfs2-devel] What are the purposes of GLOBAL_INODE_ALLOC_SYSTEM_INODE and BAD_BLOCK_SYSTEM_INODE system file Gang He
  2016-10-09  9:00 ` Junxiao Bi
@ 2016-10-09 10:33 ` Joseph Qi
  2016-10-10  1:51   ` Gang He
  1 sibling, 1 reply; 4+ messages in thread
From: Joseph Qi @ 2016-10-09 10:33 UTC (permalink / raw)
  To: ocfs2-devel

Hi Gang,
GLOBAL_INODE_ALLOC_SYSTEM_INODE is used for system file inodes
allocation, you can refer mkfs.c for details.

Thanks,
Joseph

On 2016/10/9 16:47, Gang He wrote:
> Hello Guys,
> 
> If you use debugfs.ocfs2 to list system files for a ocfs2 file system, you can find these two system files.
> sles12sp1-node1:/ # debugfs.ocfs2 /dev/sdb1
> debugfs.ocfs2 1.8.2
> debugfs: ls //
>  6               16   1    2  .
>  6               16   2    2  ..
>  7               24   10   1  bad_blocks             << ==  BAD_BLOCK_SYSTEM_INODE
>  8               32   18   1  global_inode_alloc     << ==  GLOBAL_INODE_ALLOC_SYSTEM_INODE
>   ....
> 
> But, What are the purposes of GLOBAL_INODE_ALLOC_SYSTEM_INODE and BAD_BLOCK_SYSTEM_INODE system file?
> For BAD_BLOCK_SYSTEM_INODE system file, it looks to be used to store bad blocks for a file system partition, but from the code, there is not any code for this system file.
> For GLOBAL_INODE_ALLOC_SYSTEM_INODE system file, there is also not any code for it, what is the purpose of this file ?
> 
> 
> Thanks
> Gang
> 
> 
> 
> 
> 
> .
> 

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

* [Ocfs2-devel] What are the purposes of GLOBAL_INODE_ALLOC_SYSTEM_INODE and BAD_BLOCK_SYSTEM_INODE system file
  2016-10-09 10:33 ` Joseph Qi
@ 2016-10-10  1:51   ` Gang He
  0 siblings, 0 replies; 4+ messages in thread
From: Gang He @ 2016-10-10  1:51 UTC (permalink / raw)
  To: ocfs2-devel

Hello Junxiao and Joseph,

Thank for your confirm. 

-Gang


>>> 
> Hi Gang,
> GLOBAL_INODE_ALLOC_SYSTEM_INODE is used for system file inodes
> allocation, you can refer mkfs.c for details.
> 
> Thanks,
> Joseph
> 
> On 2016/10/9 16:47, Gang He wrote:
>> Hello Guys,
>> 
>> If you use debugfs.ocfs2 to list system files for a ocfs2 file system, you 
> can find these two system files.
>> sles12sp1-node1:/ # debugfs.ocfs2 /dev/sdb1
>> debugfs.ocfs2 1.8.2
>> debugfs: ls //
>>  6               16   1    2  .
>>  6               16   2    2  ..
>>  7               24   10   1  bad_blocks             << ==  
> BAD_BLOCK_SYSTEM_INODE
>>  8               32   18   1  global_inode_alloc     << ==  
> GLOBAL_INODE_ALLOC_SYSTEM_INODE
>>   ....
>> 
>> But, What are the purposes of GLOBAL_INODE_ALLOC_SYSTEM_INODE and 
> BAD_BLOCK_SYSTEM_INODE system file?
>> For BAD_BLOCK_SYSTEM_INODE system file, it looks to be used to store bad 
> blocks for a file system partition, but from the code, there is not any code 
> for this system file.
>> For GLOBAL_INODE_ALLOC_SYSTEM_INODE system file, there is also not any code 
> for it, what is the purpose of this file ?
>> 
>> 
>> Thanks
>> Gang
>> 
>> 
>> 
>> 
>> 
>> .
>> 

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

end of thread, other threads:[~2016-10-10  1:51 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-10-09  8:47 [Ocfs2-devel] What are the purposes of GLOBAL_INODE_ALLOC_SYSTEM_INODE and BAD_BLOCK_SYSTEM_INODE system file Gang He
2016-10-09  9:00 ` Junxiao Bi
2016-10-09 10:33 ` Joseph Qi
2016-10-10  1:51   ` Gang He

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.