• Home
  • Raw
  • Download

Lines Matching refs:sb

29 befs_error(const struct super_block *sb, const char *fmt, ...)  in befs_error()  argument
42 printk(KERN_ERR "BeFS(%s): %s\n", sb->s_id, err_buf); in befs_error()
47 befs_warning(const struct super_block *sb, const char *fmt, ...) in befs_warning() argument
60 printk(KERN_WARNING "BeFS(%s): %s\n", sb->s_id, err_buf); in befs_warning()
66 befs_debug(const struct super_block *sb, const char *fmt, ...) in befs_debug() argument
73 if (BEFS_SB(sb)->mount_opts.debug) { in befs_debug()
85 printk(KERN_DEBUG "BeFS(%s): %s\n", sb->s_id, err_buf); in befs_debug()
94 befs_dump_inode(const struct super_block *sb, befs_inode * inode) in befs_dump_inode() argument
100 befs_debug(sb, "befs_inode information"); in befs_dump_inode()
102 befs_debug(sb, " magic1 %08x", fs32_to_cpu(sb, inode->magic1)); in befs_dump_inode()
104 tmp_run = fsrun_to_cpu(sb, inode->inode_num); in befs_dump_inode()
105 befs_debug(sb, " inode_num %u, %hu, %hu", in befs_dump_inode()
108 befs_debug(sb, " uid %u", fs32_to_cpu(sb, inode->uid)); in befs_dump_inode()
109 befs_debug(sb, " gid %u", fs32_to_cpu(sb, inode->gid)); in befs_dump_inode()
110 befs_debug(sb, " mode %08x", fs32_to_cpu(sb, inode->mode)); in befs_dump_inode()
111 befs_debug(sb, " flags %08x", fs32_to_cpu(sb, inode->flags)); in befs_dump_inode()
112 befs_debug(sb, " create_time %Lu", in befs_dump_inode()
113 fs64_to_cpu(sb, inode->create_time)); in befs_dump_inode()
114 befs_debug(sb, " last_modified_time %Lu", in befs_dump_inode()
115 fs64_to_cpu(sb, inode->last_modified_time)); in befs_dump_inode()
117 tmp_run = fsrun_to_cpu(sb, inode->parent); in befs_dump_inode()
118 befs_debug(sb, " parent [%u, %hu, %hu]", in befs_dump_inode()
121 tmp_run = fsrun_to_cpu(sb, inode->attributes); in befs_dump_inode()
122 befs_debug(sb, " attributes [%u, %hu, %hu]", in befs_dump_inode()
125 befs_debug(sb, " type %08x", fs32_to_cpu(sb, inode->type)); in befs_dump_inode()
126 befs_debug(sb, " inode_size %u", fs32_to_cpu(sb, inode->inode_size)); in befs_dump_inode()
128 if (S_ISLNK(fs32_to_cpu(sb, inode->mode))) { in befs_dump_inode()
129 befs_debug(sb, " Symbolic link [%s]", inode->data.symlink); in befs_dump_inode()
135 fsrun_to_cpu(sb, inode->data.datastream.direct[i]); in befs_dump_inode()
136 befs_debug(sb, " direct %d [%u, %hu, %hu]", i, in befs_dump_inode()
140 befs_debug(sb, " max_direct_range %Lu", in befs_dump_inode()
141 fs64_to_cpu(sb, in befs_dump_inode()
145 tmp_run = fsrun_to_cpu(sb, inode->data.datastream.indirect); in befs_dump_inode()
146 befs_debug(sb, " indirect [%u, %hu, %hu]", in befs_dump_inode()
150 befs_debug(sb, " max_indirect_range %Lu", in befs_dump_inode()
151 fs64_to_cpu(sb, in befs_dump_inode()
156 fsrun_to_cpu(sb, inode->data.datastream.double_indirect); in befs_dump_inode()
157 befs_debug(sb, " double indirect [%u, %hu, %hu]", in befs_dump_inode()
161 befs_debug(sb, " max_double_indirect_range %Lu", in befs_dump_inode()
162 fs64_to_cpu(sb, in befs_dump_inode()
166 befs_debug(sb, " size %Lu", in befs_dump_inode()
167 fs64_to_cpu(sb, inode->data.datastream.size)); in befs_dump_inode()
178 befs_dump_super_block(const struct super_block *sb, befs_super_block * sup) in befs_dump_super_block() argument
184 befs_debug(sb, "befs_super_block information"); in befs_dump_super_block()
186 befs_debug(sb, " name %s", sup->name); in befs_dump_super_block()
187 befs_debug(sb, " magic1 %08x", fs32_to_cpu(sb, sup->magic1)); in befs_dump_super_block()
188 befs_debug(sb, " fs_byte_order %08x", in befs_dump_super_block()
189 fs32_to_cpu(sb, sup->fs_byte_order)); in befs_dump_super_block()
191 befs_debug(sb, " block_size %u", fs32_to_cpu(sb, sup->block_size)); in befs_dump_super_block()
192 befs_debug(sb, " block_shift %u", fs32_to_cpu(sb, sup->block_shift)); in befs_dump_super_block()
194 befs_debug(sb, " num_blocks %Lu", fs64_to_cpu(sb, sup->num_blocks)); in befs_dump_super_block()
195 befs_debug(sb, " used_blocks %Lu", fs64_to_cpu(sb, sup->used_blocks)); in befs_dump_super_block()
197 befs_debug(sb, " magic2 %08x", fs32_to_cpu(sb, sup->magic2)); in befs_dump_super_block()
198 befs_debug(sb, " blocks_per_ag %u", in befs_dump_super_block()
199 fs32_to_cpu(sb, sup->blocks_per_ag)); in befs_dump_super_block()
200 befs_debug(sb, " ag_shift %u", fs32_to_cpu(sb, sup->ag_shift)); in befs_dump_super_block()
201 befs_debug(sb, " num_ags %u", fs32_to_cpu(sb, sup->num_ags)); in befs_dump_super_block()
203 befs_debug(sb, " flags %08x", fs32_to_cpu(sb, sup->flags)); in befs_dump_super_block()
205 tmp_run = fsrun_to_cpu(sb, sup->log_blocks); in befs_dump_super_block()
206 befs_debug(sb, " log_blocks %u, %hu, %hu", in befs_dump_super_block()
209 befs_debug(sb, " log_start %Ld", fs64_to_cpu(sb, sup->log_start)); in befs_dump_super_block()
210 befs_debug(sb, " log_end %Ld", fs64_to_cpu(sb, sup->log_end)); in befs_dump_super_block()
212 befs_debug(sb, " magic3 %08x", fs32_to_cpu(sb, sup->magic3)); in befs_dump_super_block()
214 tmp_run = fsrun_to_cpu(sb, sup->root_dir); in befs_dump_super_block()
215 befs_debug(sb, " root_dir %u, %hu, %hu", in befs_dump_super_block()
218 tmp_run = fsrun_to_cpu(sb, sup->indices); in befs_dump_super_block()
219 befs_debug(sb, " indices %u, %hu, %hu", in befs_dump_super_block()
228 befs_dump_small_data(const struct super_block *sb, befs_small_data * sd)
234 befs_dump_run(const struct super_block *sb, befs_disk_block_run run)
238 befs_block_run n = fsrun_to_cpu(sb, run);
240 befs_debug(sb, "[%u, %hu, %hu]", n.allocation_group, n.start, n.len);
247 befs_dump_index_entry(const struct super_block *sb, befs_disk_btree_super * super) in befs_dump_index_entry() argument
251 befs_debug(sb, "Btree super structure"); in befs_dump_index_entry()
252 befs_debug(sb, " magic %08x", fs32_to_cpu(sb, super->magic)); in befs_dump_index_entry()
253 befs_debug(sb, " node_size %u", fs32_to_cpu(sb, super->node_size)); in befs_dump_index_entry()
254 befs_debug(sb, " max_depth %08x", fs32_to_cpu(sb, super->max_depth)); in befs_dump_index_entry()
256 befs_debug(sb, " data_type %08x", fs32_to_cpu(sb, super->data_type)); in befs_dump_index_entry()
257 befs_debug(sb, " root_node_pointer %016LX", in befs_dump_index_entry()
258 fs64_to_cpu(sb, super->root_node_ptr)); in befs_dump_index_entry()
259 befs_debug(sb, " free_node_pointer %016LX", in befs_dump_index_entry()
260 fs64_to_cpu(sb, super->free_node_ptr)); in befs_dump_index_entry()
261 befs_debug(sb, " maximum size %016LX", in befs_dump_index_entry()
262 fs64_to_cpu(sb, super->max_size)); in befs_dump_index_entry()
268 befs_dump_index_node(const struct super_block *sb, befs_btree_nodehead * node) in befs_dump_index_node() argument
272 befs_debug(sb, "Btree node structure"); in befs_dump_index_node()
273 befs_debug(sb, " left %016LX", fs64_to_cpu(sb, node->left)); in befs_dump_index_node()
274 befs_debug(sb, " right %016LX", fs64_to_cpu(sb, node->right)); in befs_dump_index_node()
275 befs_debug(sb, " overflow %016LX", fs64_to_cpu(sb, node->overflow)); in befs_dump_index_node()
276 befs_debug(sb, " all_key_count %hu", in befs_dump_index_node()
277 fs16_to_cpu(sb, node->all_key_count)); in befs_dump_index_node()
278 befs_debug(sb, " all_key_length %hu", in befs_dump_index_node()
279 fs16_to_cpu(sb, node->all_key_length)); in befs_dump_index_node()