Skip to contentSkip to conversation

What are the purposes of GLOBAL_INODE_ALLOC_SYSTEM_INODE and BAD_BLOCK_SYSTEM_INODE system file

Ocfs2-devel Gang He 3 participants 4 messages Oct 9, 2016 – Oct 10, 2016 OCFS2

lore
Share & tools
lore

Gang He

author
#0 lore raw

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

#1 lore raw
Quoted 10 lines · Gang He

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
Quoted 5 lines

....

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.

Quoted 8 lines

Thanks
Gang

#2 lore raw
In reply to Gang He

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

Thanks,
Joseph

Quoted 26 lines · Gang He

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

.

author
#3 lore raw

Hello Junxiao and Joseph,

Thank for your confirm.

-Gang

Quoted 42 lines
Quoted 1 line
Quoted 1 line

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

Thanks,
Joseph

Quoted 3 lines · Gang He

Hello Guys,

If you use debugfs.ocfs2 to list system files for a ocfs2 file system, you

can find these two system files.

Quoted 6 lines

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

Quoted 1 line

8 32 18 1 global_inode_alloc << ==

GLOBAL_INODE_ALLOC_SYSTEM_INODE

Quoted 3 lines

....

But, What are the purposes of GLOBAL_INODE_ALLOC_SYSTEM_INODE and

BAD_BLOCK_SYSTEM_INODE system file?

Quoted 1 line

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.

Quoted 1 line

For GLOBAL_INODE_ALLOC_SYSTEM_INODE system file, there is also not any code

for it, what is the purpose of this file ?

Quoted 11 lines

Thanks
Gang

.