On Mon, Oct 03, 2011 at 02:15:37PM -0000, Endre Karlson wrote:
> What does the first inode do?

Inode #1 is the "bad block inode".  It's an indirect-block mapped
(never extent mapped) inode that is used to reserve blocks which
shouldn't be used because they have hardware errors.  In modern-day
devices this is done by the HDD/SDD automatically, so its use in
ext2/3/4 file systems is largely vestigal.

Other low numbered inodes:

#define EXT4_BAD_INO             1      /* Bad blocks inode */
#define EXT4_ROOT_INO            2      /* Root inode */
#define EXT4_USR_QUOTA_INO       3      /* User quota inode */
#define EXT4_GRP_QUOTA_INO       4      /* Group quota inode */
#define EXT4_BOOT_LOADER_INO     5      /* Boot loader inode */
#define EXT4_UNDEL_DIR_INO       6      /* Undelete directory inode */
#define EXT4_RESIZE_INO          7      /* Reserved group descriptors inode */
#define EXT4_JOURNAL_INO         8      /* Journal inode */

Inodes 3,4 is only used in some experimental code that hasn't been
fully integrated into ext4 yet.  (The current quota system uses
user-visible files that be corrupted by careless system
administrators; inodes 3 and 4 are hidden inodes.)  Inodes 5 and 6
aren't actually used at the moment, but they are reserved for future
use.

                                                - Ted

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/861281

Title:
  FSCK on fs with claimed blocks yields Programming Error in
  process_bad_block

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/e2fsprogs/+bug/861281/+subscriptions

-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to