簡體   English   中英

Ext4“未使用的inode”“空閑inode”的區別?

[英]Ext4 "unused inodes" "free inodes" diffrence?

當我使用 dumpe2fs 命令查看 ext4 文件系統的塊組時,我看到“free inodes”和“unused inodes”。

我想知道它們之間的區別?

為什么它們在第 0 組中具有不同的值?

Group 0: (Blocks 0-32767) [ITABLE_ZEROED]
  Checksum 0xd1a1, unused inodes 0
  Primary superblock at 0, Group descriptors at 1-3
  Reserved GDT blocks at 4-350
  Block bitmap at 351 (+351), Inode bitmap at 367 (+367)
  Inode table at 383-892 (+383)
  12 free blocks, 1 free inodes, 1088 directories
  Free blocks: 9564, 12379-12380, 12401-12408, 12411
  Free inodes: 168
Group 1: (Blocks 32768-65535) [ITABLE_ZEROED]
  Checksum 0x0432, unused inodes 0
  Backup superblock at 32768, Group descriptors at 32769-32771
  Reserved GDT blocks at 32772-33118
  Block bitmap at 352 (+4294934880), Inode bitmap at 368 (+4294934896)
  Inode table at 893-1402 (+4294935421)
  30 free blocks, 0 free inodes, 420 directories
  Free blocks: 37379-37384, 37386-37397, 42822-42823, 42856-42859, 42954-42955, 44946-44947, 45014-45015
  Free inodes:

報告的“未使用的 inode”是每個組在文件系統生命周期內從未使用過的 inode 表末尾的 inode,因此 e2fsck 在修復期間不需要掃描它們。 這可以顯着加快 e2fsck pass-1 掃描。

“空閑 inode”是組中當前未分配的 inode。 此數字包括“未使用的 inode”數字,因此如果在單個組中分配了許多(通常非常小的)inode,它們仍將被使用。

來自: https://unix.stackexchange.com/a/715165/536354

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM