STRUCT UBIFS_DEBUG_INFO(9)
π 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 bydbg_check_old_indexπold_zroot_levelβ old index root level β used bydbg_check_old_indexβ¨old_zroot_sqnumβ old index root sqnum β used bydbg_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 checkc->ihead_lnumπnew_ihead_offsβ used by debugging to checkc->ihead_offsπsaved_lstβ saved lprops statistics (used bydbg_save_space_info) πΎsaved_biβ saved budgeting information πΎsaved_freeβ saved amount of free space πΎsaved_idx_gc_cntβ saved value ofc->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-EROFSon all write operations) π¨
π SEE ALSO π
- Kernel file
./fs/ubifs/debug.h, plusstruct 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
- nixpkgs unstable: linux-manual 7.3.1
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms