STRUCT UBIFS_DEBUG_INFO(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’– struct ubifs_debug_info(9) πŸ’–

okay so this is the Kernel API Manual page for struct ubifs_debug_info, and it is literally per-FS debugging information. group chat, but kernel edition 🫢

πŸ’– NAME πŸ’–

struct ubifs_debug_info β€” per-FS debugging information. periodt ✨

✨ SYNOPSIS ✨

here is the whole struct, bestie β€” every field stays exactly as it is, no cap πŸ’…

struct ubifs_debug_info {
    struct ubifs_zbranch old_zroot;
    int old_zroot_level;
    unsigned long long old_zroot_sqnum;
    int pc_happened;
    int pc_delay;
    unsigned long pc_timeout;
    unsigned int pc_cnt;
    unsigned int pc_cnt_max;
    long long chk_lpt_sz;
    long long chk_lpt_sz2;
    long long chk_lpt_wastage;
    int chk_lpt_lebs;
    int new_nhead_offs;
    int new_ihead_lnum;
    int new_ihead_offs;
    struct ubifs_lp_stats saved_lst;
    struct ubifs_budg_info saved_bi;
    long long saved_free;
    int saved_idx_gc_cnt;
    unsigned int chk_gen:1;
    unsigned int chk_index:1;
    unsigned int chk_orph:1;
    unsigned int chk_lprops:1;
    unsigned int chk_fs:1;
    unsigned int tst_rcvry:1;
    char dfs_dir_name[UBIFS_DFS_DIR_LEN];
    struct dentry *dfs_dir;
    struct dentry *dfs_dump_lprops;
    struct dentry *dfs_dump_budg;
    struct dentry *dfs_dump_tnc;
    struct dentry *dfs_chk_gen;
    struct dentry *dfs_chk_index;
    struct dentry *dfs_chk_orph;
    struct dentry *dfs_chk_lprops;
    struct dentry *dfs_chk_fs;
    struct dentry *dfs_tst_rcvry;
    struct dentry *dfs_ro_error;
};

🫢 Members 🫢

okay bestie, meet the whole cast in order β€” every single one is iconic in its own little kernel way 🌸

  • old_zroot β€” old index root β€” used by dbg_check_old_index πŸ‘‘
  • old_zroot_level β€” old index root level β€” used by dbg_check_old_index ✨
  • old_zroot_sqnum β€” old index root sqnum β€” used by dbg_check_old_index πŸ’«
  • pc_happened β€” non-zero if an emulated power cut happened ⚑
  • pc_delay β€” 0=>don't delay, 1=>delay a time, 2=>delay a number of calls πŸ•°οΈ
  • pc_timeout β€” time in jiffies when delay of failure mode expires ⏳
  • pc_cnt β€” current number of calls to failure mode I/O functions πŸ”
  • pc_cnt_max β€” number of calls by which to delay failure mode 🎚️
  • chk_lpt_sz β€” used by LPT tree size checker 🌳
  • chk_lpt_sz2 β€” used by LPT tree size checker 🌳
  • chk_lpt_wastage β€” used by LPT tree size checker 🌳
  • chk_lpt_lebs β€” used by LPT tree size checker 🌳
  • new_nhead_offs β€” used by LPT tree size checker 🌳
  • new_ihead_lnum β€” used by debugging to check c->ihead_lnum πŸ”
  • new_ihead_offs β€” used by debugging to check c->ihead_offs πŸ”
  • saved_lst β€” saved lprops statistics (used by dbg_save_space_info) πŸ’Ύ
  • saved_bi β€” saved budgeting information πŸ’Ύ
  • saved_free β€” saved amount of free space πŸ’Ύ
  • saved_idx_gc_cnt β€” saved value of c->idx_gc_cnt πŸ’Ύ
  • chk_gen β€” if general extra checks are enabled βœ…
  • chk_index β€” if index xtra checks are enabled βœ…
  • chk_orph β€” if orphans extra checks are enabled βœ…
  • chk_lprops β€” if lprops extra checks are enabled βœ…
  • chk_fs β€” if UBIFS contents extra checks are enabled βœ…
  • tst_rcvry β€” if UBIFS recovery testing mode enabled βœ…
  • dfs_dir_name β€” name of debugfs directory containing this file-system's files πŸ“
  • dfs_dir β€” direntry object of the file-system debugfs directory πŸ“‚
  • dfs_dump_lprops β€” "dump lprops" debugfs knob πŸŽ›οΈ
  • dfs_dump_budg β€” "dump budgeting information" debugfs knob πŸŽ›οΈ
  • dfs_dump_tnc β€” "dump TNC" debugfs knob πŸŽ›οΈ
  • dfs_chk_gen β€” debugfs knob to enable UBIFS general extra checks πŸŽ›οΈ
  • dfs_chk_index β€” debugfs knob to enable UBIFS index extra checks πŸŽ›οΈ
  • dfs_chk_orph β€” debugfs knob to enable UBIFS orphans extra checks πŸŽ›οΈ
  • dfs_chk_lprops β€” debugfs knob to enable UBIFS LEP properties extra checks πŸŽ›οΈ
  • dfs_chk_fs β€” debugfs knob to enable UBIFS contents extra checks πŸŽ›οΈ
  • dfs_tst_rcvry β€” debugfs knob to enable UBIFS recovery testing πŸŽ›οΈ
  • dfs_ro_error β€” debugfs knob to switch UBIFS to R/O mode (different to re-mounting to R/O mode because it does not flush any buffers and UBIFS just starts returning -EROFS on all write operations) 🚨

🌈 SEE ALSO 🌈

  • Kernel file ./fs/ubifs/debug.h, plus struct ubifs_global_debug_info(9) πŸ¦‹

byeee πŸ’œ this page came from ./fs/ubifs, dated October 2026, and it is all about struct ubifs_debug_info(9) β€” mwah πŸ’‹

πŸ“¦ where this page comes from