Lines Matching +full:mode +full:- +full:recovery

1 /* SPDX-License-Identifier: GPL-2.0-only */
5 * Copyright (C) 2006-2008 Nokia Corporation.
29 * ubifs_debug_info - per-FS debugging information.
30 * @old_zroot: old index root - used by 'dbg_check_old_index()'
31 * @old_zroot_level: old index root level - used by 'dbg_check_old_index()'
32 * @old_zroot_sqnum: old index root sqnum - used by 'dbg_check_old_index()'
34 * @pc_happened: non-zero if an emulated power cut happened
36 * @pc_timeout: time in jiffies when delay of failure mode expires
37 * @pc_cnt: current number of calls to failure mode I/O functions
38 * @pc_cnt_max: number of calls by which to delay failure mode
45 * @new_ihead_lnum: used by debugging to check @c->ihead_lnum
46 * @new_ihead_offs: used by debugging to check @c->ihead_offs
51 * @saved_idx_gc_cnt: saved value of @c->idx_gc_cnt
58 * @tst_rcvry: if UBIFS recovery testing mode enabled
60 * @dfs_dir_name: name of debugfs directory containing this file-system's files
61 * @dfs_dir: direntry object of the file-system debugfs directory
70 * @dfs_tst_rcvry: debugfs knob to enable UBIFS recovery testing
71 * @dfs_ro_error: debugfs knob to switch UBIFS to R/O mode (different to
72 * re-mounting to R/O mode because it does not flush any buffers
73 * and UBIFS just starts returning -EROFS on all write
122 * ubifs_global_debug_info - global (not per-FS) UBIFS debugging information.
129 * @tst_rcvry: if UBIFS recovery testing mode enabled
151 if (unlikely(down_write_trylock(&(c)->commit_sem))) { \
152 up_write(&(c)->commit_sem); \
159 pr_debug("UBIFS DBG " type " (pid %d): " fmt "\n", current->pid, \
165 pr_debug("UBIFS DBG " type " (pid %d): " fmt "%s\n", current->pid, \
200 /* Additional recovery messages */
207 return !!(ubifs_dbg.chk_gen || c->dbg->chk_gen); in dbg_is_chk_gen()
211 return !!(ubifs_dbg.chk_index || c->dbg->chk_index); in dbg_is_chk_index()
215 return !!(ubifs_dbg.chk_orph || c->dbg->chk_orph); in dbg_is_chk_orph()
219 return !!(ubifs_dbg.chk_lprops || c->dbg->chk_lprops); in dbg_is_chk_lprops()
223 return !!(ubifs_dbg.chk_fs || c->dbg->chk_fs); in dbg_is_chk_fs()
227 return !!(ubifs_dbg.tst_rcvry || c->dbg->tst_rcvry); in dbg_is_tst_rcvry()
231 return !!c->dbg->pc_happened; in dbg_is_power_cut()
299 /* Debugfs-related stuff */