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

1 /* SPDX-License-Identifier: GPL-2.0-only */
5 * Copyright (C) 2006-2008 Nokia Corporation.
28 * ubifs_debug_info - per-FS debugging information.
29 * @old_zroot: old index root - used by 'dbg_check_old_index()'
30 * @old_zroot_level: old index root level - used by 'dbg_check_old_index()'
31 * @old_zroot_sqnum: old index root sqnum - used by 'dbg_check_old_index()'
33 * @pc_happened: non-zero if an emulated power cut happened
35 * @pc_timeout: time in jiffies when delay of failure mode expires
36 * @pc_cnt: current number of calls to failure mode I/O functions
37 * @pc_cnt_max: number of calls by which to delay failure mode
44 * @new_ihead_lnum: used by debugging to check @c->ihead_lnum
45 * @new_ihead_offs: used by debugging to check @c->ihead_offs
50 * @saved_idx_gc_cnt: saved value of @c->idx_gc_cnt
57 * @tst_rcvry: if UBIFS recovery testing mode enabled
59 * @dfs_dir_name: name of debugfs directory containing this file-system's files
60 * @dfs_dir: direntry object of the file-system debugfs directory
69 * @dfs_tst_rcvry: debugfs knob to enable UBIFS recovery testing
70 * @dfs_ro_error: debugfs knob to switch UBIFS to R/O mode (different to
71 * re-mounting to R/O mode because it does not flush any buffers
72 * and UBIFS just starts returning -EROFS on all write
121 * ubifs_global_debug_info - global (not per-FS) UBIFS debugging information.
128 * @tst_rcvry: if UBIFS recovery testing mode enabled
150 if (unlikely(down_write_trylock(&(c)->commit_sem))) { \
151 up_write(&(c)->commit_sem); \
158 pr_debug("UBIFS DBG " type " (pid %d): " fmt "\n", current->pid, \
164 pr_debug("UBIFS DBG " type " (pid %d): " fmt "%s\n", current->pid, \
199 /* Additional recovery messages */
206 return !!(ubifs_dbg.chk_gen || c->dbg->chk_gen); in dbg_is_chk_gen()
210 return !!(ubifs_dbg.chk_index || c->dbg->chk_index); in dbg_is_chk_index()
214 return !!(ubifs_dbg.chk_orph || c->dbg->chk_orph); in dbg_is_chk_orph()
218 return !!(ubifs_dbg.chk_lprops || c->dbg->chk_lprops); in dbg_is_chk_lprops()
222 return !!(ubifs_dbg.chk_fs || c->dbg->chk_fs); in dbg_is_chk_fs()
226 return !!(ubifs_dbg.tst_rcvry || c->dbg->tst_rcvry); in dbg_is_tst_rcvry()
230 return !!c->dbg->pc_happened; in dbg_is_power_cut()
298 /* Debugfs-related stuff */