Home
last modified time | relevance | path

Searched refs:magic (Results 1 – 25 of 86) sorted by relevance

1234

/fs/xfs/libxfs/
Dxfs_da_format.c454 to->magic = be16_to_cpu(from->hdr.info.magic); in xfs_dir2_leaf_hdr_from_disk()
458 ASSERT(to->magic == XFS_DIR2_LEAF1_MAGIC || in xfs_dir2_leaf_hdr_from_disk()
459 to->magic == XFS_DIR2_LEAFN_MAGIC); in xfs_dir2_leaf_hdr_from_disk()
467 ASSERT(from->magic == XFS_DIR2_LEAF1_MAGIC || in xfs_dir2_leaf_hdr_to_disk()
468 from->magic == XFS_DIR2_LEAFN_MAGIC); in xfs_dir2_leaf_hdr_to_disk()
472 to->hdr.info.magic = cpu_to_be16(from->magic); in xfs_dir2_leaf_hdr_to_disk()
486 to->magic = be16_to_cpu(hdr3->info.hdr.magic); in xfs_dir3_leaf_hdr_from_disk()
490 ASSERT(to->magic == XFS_DIR3_LEAF1_MAGIC || in xfs_dir3_leaf_hdr_from_disk()
491 to->magic == XFS_DIR3_LEAFN_MAGIC); in xfs_dir3_leaf_hdr_from_disk()
501 ASSERT(from->magic == XFS_DIR3_LEAF1_MAGIC || in xfs_dir3_leaf_hdr_to_disk()
[all …]
Dxfs_dir2_data.c79 switch (hdr->magic) { in __xfs_dir3_data_check()
178 if (hdr->magic == cpu_to_be32(XFS_DIR2_BLOCK_MAGIC) || in __xfs_dir3_data_check()
179 hdr->magic == cpu_to_be32(XFS_DIR3_BLOCK_MAGIC)) { in __xfs_dir3_data_check()
200 if (hdr->magic == cpu_to_be32(XFS_DIR2_BLOCK_MAGIC) || in __xfs_dir3_data_check()
201 hdr->magic == cpu_to_be32(XFS_DIR3_BLOCK_MAGIC)) { in __xfs_dir3_data_check()
226 if (hdr3->magic != cpu_to_be32(XFS_DIR3_DATA_MAGIC)) in xfs_dir3_data_verify()
235 if (hdr3->magic != cpu_to_be32(XFS_DIR2_DATA_MAGIC)) in xfs_dir3_data_verify()
254 switch (hdr->magic) { in xfs_dir3_data_reada_verify()
376 ASSERT(hdr->magic == cpu_to_be32(XFS_DIR2_DATA_MAGIC) || in xfs_dir2_data_freefind()
377 hdr->magic == cpu_to_be32(XFS_DIR3_DATA_MAGIC) || in xfs_dir2_data_freefind()
[all …]
Dxfs_da_btree.c147 if (ichdr.magic != XFS_DA3_NODE_MAGIC) in xfs_da3_node_verify()
157 if (ichdr.magic != XFS_DA_NODE_MAGIC) in xfs_da3_node_verify()
215 switch (be16_to_cpu(info->magic)) { in xfs_da3_node_read_verify()
270 switch (be16_to_cpu(info->magic)) { in xfs_da3_node_read()
330 ichdr.magic = XFS_DA3_NODE_MAGIC; in xfs_da3_node_create()
335 ichdr.magic = XFS_DA_NODE_MAGIC; in xfs_da3_node_create()
374 ASSERT(state->path.blk[max].magic == XFS_ATTR_LEAF_MAGIC || in xfs_da3_split()
375 state->path.blk[max].magic == XFS_DIR2_LEAFN_MAGIC); in xfs_da3_split()
388 switch (oldblk->magic) { in xfs_da3_split()
455 state->path.blk[max].magic == XFS_DIR2_LEAFN_MAGIC); in xfs_da3_split()
[all …]
Dxfs_dir2_leaf.c69 if (leafhdr.magic == XFS_DIR3_LEAF1_MAGIC) { in xfs_dir3_leaf1_check()
73 } else if (leafhdr.magic != XFS_DIR2_LEAF1_MAGIC) in xfs_dir3_leaf1_check()
120 if ((hdr->magic == XFS_DIR2_LEAF1_MAGIC || in xfs_dir3_leaf_check_int()
121 hdr->magic == XFS_DIR3_LEAF1_MAGIC) && in xfs_dir3_leaf_check_int()
148 uint16_t magic) in xfs_dir3_leaf_verify() argument
153 ASSERT(magic == XFS_DIR2_LEAF1_MAGIC || magic == XFS_DIR2_LEAFN_MAGIC); in xfs_dir3_leaf_verify()
159 magic3 = (magic == XFS_DIR2_LEAF1_MAGIC) ? XFS_DIR3_LEAF1_MAGIC in xfs_dir3_leaf_verify()
162 if (leaf3->info.hdr.magic != cpu_to_be16(magic3)) in xfs_dir3_leaf_verify()
171 if (leaf->hdr.info.magic != cpu_to_be16(magic)) in xfs_dir3_leaf_verify()
181 uint16_t magic) in __read_verify() argument
[all …]
Dxfs_da_format.h36 __be16 magic; /* validity check on block */ member
116 uint16_t magic; member
325 __be32 magic; /* XFS_DIR2_DATA_MAGIC or */ member
337 __be32 magic; /* magic number */ member
452 uint16_t magic; member
507 __be32 magic; /* XFS_DIR2_FREE_MAGIC */ member
541 uint32_t magic; member
730 uint16_t magic; member
789 if (leafp->hdr.info.magic == cpu_to_be16(XFS_ATTR3_LEAF_MAGIC)) in xfs_attr3_leaf_hdr_size()
797 if (leafp->hdr.info.magic == cpu_to_be16(XFS_ATTR3_LEAF_MAGIC)) in xfs_attr3_leaf_entryp()
Dxfs_dir2_node.c72 if (leafhdr.magic == XFS_DIR3_LEAFN_MAGIC) { in xfs_dir3_leafn_check()
76 } else if (leafhdr.magic != XFS_DIR2_LEAFN_MAGIC) in xfs_dir3_leafn_check()
95 if (hdr3->magic != cpu_to_be32(XFS_DIR3_FREE_MAGIC)) in xfs_dir3_free_verify()
104 if (hdr->magic != cpu_to_be32(XFS_DIR2_FREE_MAGIC)) in xfs_dir3_free_verify()
276 hdr.magic = XFS_DIR3_FREE_MAGIC; in xfs_dir3_free_get_buf()
282 hdr.magic = XFS_DIR2_FREE_MAGIC; in xfs_dir3_free_get_buf()
303 ASSERT(free->hdr.magic == cpu_to_be32(XFS_DIR2_FREE_MAGIC) || in xfs_dir2_free_log_bests()
304 free->hdr.magic == cpu_to_be32(XFS_DIR3_FREE_MAGIC)); in xfs_dir2_free_log_bests()
323 ASSERT(free->hdr.magic == cpu_to_be32(XFS_DIR2_FREE_MAGIC) || in xfs_dir2_free_log_header()
324 free->hdr.magic == cpu_to_be32(XFS_DIR3_FREE_MAGIC)); in xfs_dir2_free_log_header()
[all …]
Dxfs_attr_leaf.c114 if (from->hdr.info.magic == cpu_to_be16(XFS_ATTR3_LEAF_MAGIC)) { in xfs_attr3_leaf_firstused_from_disk()
156 if (from->magic == XFS_ATTR3_LEAF_MAGIC) { in xfs_attr3_leaf_firstused_to_disk()
172 ASSERT(from->hdr.info.magic == cpu_to_be16(XFS_ATTR_LEAF_MAGIC) || in xfs_attr3_leaf_hdr_from_disk()
173 from->hdr.info.magic == cpu_to_be16(XFS_ATTR3_LEAF_MAGIC)); in xfs_attr3_leaf_hdr_from_disk()
175 if (from->hdr.info.magic == cpu_to_be16(XFS_ATTR3_LEAF_MAGIC)) { in xfs_attr3_leaf_hdr_from_disk()
180 to->magic = be16_to_cpu(hdr3->info.hdr.magic); in xfs_attr3_leaf_hdr_from_disk()
194 to->magic = be16_to_cpu(from->hdr.info.magic); in xfs_attr3_leaf_hdr_from_disk()
214 ASSERT(from->magic == XFS_ATTR_LEAF_MAGIC || in xfs_attr3_leaf_hdr_to_disk()
215 from->magic == XFS_ATTR3_LEAF_MAGIC); in xfs_attr3_leaf_hdr_to_disk()
217 if (from->magic == XFS_ATTR3_LEAF_MAGIC) { in xfs_attr3_leaf_hdr_to_disk()
[all …]
Dxfs_dir2_block.c69 if (hdr3->magic != cpu_to_be32(XFS_DIR3_BLOCK_MAGIC)) in xfs_dir3_block_verify()
78 if (hdr3->magic != cpu_to_be32(XFS_DIR2_BLOCK_MAGIC)) in xfs_dir3_block_verify()
161 hdr3->magic = cpu_to_be32(XFS_DIR3_BLOCK_MAGIC); in xfs_dir3_block_init()
168 hdr3->magic = cpu_to_be32(XFS_DIR2_BLOCK_MAGIC); in xfs_dir3_block_init()
938 ASSERT(leafhdr.magic == XFS_DIR2_LEAF1_MAGIC || in xfs_dir2_leaf_to_block()
939 leafhdr.magic == XFS_DIR3_LEAF1_MAGIC); in xfs_dir2_leaf_to_block()
969 ASSERT(hdr->magic == cpu_to_be32(XFS_DIR2_DATA_MAGIC) || in xfs_dir2_leaf_to_block()
970 hdr->magic == cpu_to_be32(XFS_DIR3_DATA_MAGIC)); in xfs_dir2_leaf_to_block()
/fs/
Dbinfmt_misc.c55 char *magic; /* magic or filename extension */ member
105 if (p && !strcmp(e->magic, p + 1)) in check_file()
114 if ((*s++ ^ e->magic[j]) & e->mask[j]) in check_file()
118 if ((*s++ ^ e->magic[j])) in check_file()
402 e->magic = p; in create_entry()
406 if (!e->magic[0]) in create_entry()
411 DUMP_PREFIX_NONE, e->magic, p - e->magic); in create_entry()
432 e->size = string_unescape_inplace(e->magic, UNESCAPE_HEX); in create_entry()
443 DUMP_PREFIX_NONE, e->magic, e->size); in create_entry()
455 masked[i] = e->magic[i] & e->mask[i]; in create_entry()
[all …]
/fs/hpfs/
Dhpfs.h67 __le16 magic; /* aa55 */ member
79 __le32 magic; /* f995 e849 */ member
113 __le32 magic; /* f991 1849 */ member
206 __le32 magic; /* 4945 21f7 */ member
228 __le32 magic; /* 8945 21f7 */ member
282 __le32 magic; /* 77e4 0aae */ member
439 __le32 magic; /* f7e4 0aae */ member
493 __le32 magic; /* 37e4 0aae */ member
Dmap.c68 if (le32_to_cpu(cp->magic) != CP_DIR_MAGIC) { in hpfs_load_code_page()
70 le32_to_cpu(cp->magic)); in hpfs_load_code_page()
174 if (le32_to_cpu(fnode->magic) != FNODE_MAGIC) { in hpfs_map_fnode()
227 if (le32_to_cpu(anode->magic) != ANODE_MAGIC) { in hpfs_map_anode()
272 if (le32_to_cpu(dnode->magic) != DNODE_MAGIC) { in hpfs_map_dnode()
/fs/ubifs/
Dscan.c73 uint32_t magic; in ubifs_scan_a_node() local
75 magic = le32_to_cpu(ch->magic); in ubifs_scan_a_node()
77 if (magic == 0xFFFFFFFF) { in ubifs_scan_a_node()
82 if (magic != UBIFS_NODE_MAGIC) in ubifs_scan_a_node()
Dio.c241 uint32_t crc, node_crc, magic; in ubifs_check_node() local
247 magic = le32_to_cpu(ch->magic); in ubifs_check_node()
248 if (magic != UBIFS_NODE_MAGIC) { in ubifs_check_node()
251 magic, UBIFS_NODE_MAGIC); in ubifs_check_node()
328 ch->magic = cpu_to_le32(UBIFS_NODE_MAGIC); in ubifs_pad()
387 ch->magic = cpu_to_le32(UBIFS_NODE_MAGIC); in ubifs_prepare_node()
420 ch->magic = cpu_to_le32(UBIFS_NODE_MAGIC); in ubifs_prep_grp_node()
/fs/xfs/
Dxfs_attr_list.c241 switch (be16_to_cpu(node->hdr.info.magic)) { in xfs_attr_node_list()
282 uint16_t magic; in xfs_attr_node_list() local
290 magic = be16_to_cpu(node->hdr.info.magic); in xfs_attr_node_list()
291 if (magic == XFS_ATTR_LEAF_MAGIC || in xfs_attr_node_list()
292 magic == XFS_ATTR3_LEAF_MAGIC) in xfs_attr_node_list()
294 if (magic != XFS_DA_NODE_MAGIC && in xfs_attr_node_list()
295 magic != XFS_DA3_NODE_MAGIC) { in xfs_attr_node_list()
/fs/autofs4/
Ddev-ioctl.c541 unsigned int devid, magic; in autofs_dev_ioctl_ismountpoint() local
550 param->ismountpoint.out.magic = magic = 0; in autofs_dev_ioctl_ismountpoint()
565 magic = path.dentry->d_sb->s_magic; in autofs_dev_ioctl_ismountpoint()
579 magic = path.dentry->d_sb->s_magic; in autofs_dev_ioctl_ismountpoint()
583 param->ismountpoint.out.magic = magic; in autofs_dev_ioctl_ismountpoint()
683 if (!sbi || sbi->magic != AUTOFS_SBI_MAGIC) { in _autofs_dev_ioctl()
/fs/ntfs/
Dmst.c81 b->magic = magic_BAAD; in post_read_mst_fixup()
130 if (!b || ntfs_is_baad_record(b->magic) || in pre_write_mst_fixup()
131 ntfs_is_hole_record(b->magic)) in pre_write_mst_fixup()
Dlogfile.c96 if (ntfs_is_chkd_record(rp->magic) && !le16_to_cpu(rp->usa_count)) { in ntfs_check_restart_page_header()
135 if (!ntfs_is_chkd_record(rp->magic) && sle64_to_cpu(rp->chkdsk_lsn)) { in ntfs_check_restart_page_header()
422 if ((!ntfs_is_chkd_record(trp->magic) || le16_to_cpu(trp->usa_count)) in ntfs_check_and_load_restart_page()
445 if (ntfs_is_rstr_record(rp->magic) && in ntfs_check_and_load_restart_page()
453 if (ntfs_is_rstr_record(rp->magic)) in ntfs_check_and_load_restart_page()
692 if (!ntfs_is_rstr_record(rp->magic) && in ntfs_is_logfile_clean()
693 !ntfs_is_chkd_record(rp->magic)) { in ntfs_is_logfile_clean()
/fs/gfs2/
Dutil.h87 u32 magic = be32_to_cpu(mh->mh_magic); in gfs2_meta_check() local
88 if (unlikely(magic != GFS2_MAGIC)) { in gfs2_meta_check()
108 u32 magic = be32_to_cpu(mh->mh_magic); in gfs2_metatype_check_i() local
110 if (unlikely(magic != GFS2_MAGIC)) in gfs2_metatype_check_i()
/fs/cramfs/
Dinode.c34 unsigned long magic; member
283 if (super.magic != CRAMFS_MAGIC) { in cramfs_fill_super()
285 if (super.magic == CRAMFS_MAGIC_WEND) { in cramfs_fill_super()
295 if (super.magic != CRAMFS_MAGIC) { in cramfs_fill_super()
296 if (super.magic == CRAMFS_MAGIC_WEND && !silent) in cramfs_fill_super()
328 sbi->magic = super.magic; in cramfs_fill_super()
/fs/orangefs/
Ddevorangefs-req.c164 static __s32 magic = ORANGEFS_DEVREQ_MAGIC; in orangefs_devreq_read() local
284 ret = copy_to_user(buf+sizeof(__s32), &magic, sizeof(__s32)); in orangefs_devreq_read()
365 __u32 magic; in orangefs_devreq_write_iter() member
399 if (head.magic != ORANGEFS_DEVREQ_MAGIC) { in orangefs_devreq_write_iter()
591 static __s32 magic = ORANGEFS_DEVREQ_MAGIC; in dispatch_ioctl_command() local
603 return ((put_user(magic, (__s32 __user *) arg) == -EFAULT) ? in dispatch_ioctl_command()
/fs/kernfs/
Dmount.c225 static int kernfs_fill_super(struct super_block *sb, unsigned long magic) in kernfs_fill_super() argument
236 sb->s_magic = magic; in kernfs_fill_super()
310 struct kernfs_root *root, unsigned long magic, in kernfs_mount_ns() argument
337 error = kernfs_fill_super(sb, magic); in kernfs_mount_ns()
/fs/jffs2/
Dscan.c490 if (je32_to_cpu(sm->magic) == JFFS2_SUM_MAGIC) { in jffs2_scan_eraseblock()
509 if (je32_to_cpu(sm->magic) == JFFS2_SUM_MAGIC) { in jffs2_scan_eraseblock()
718 if (ofs == jeb->offset && je16_to_cpu(node->magic) == KSAMTIB_CIGAM_2SFFJ) { in jffs2_scan_eraseblock()
726 if (je16_to_cpu(node->magic) == JFFS2_DIRTY_BITMASK) { in jffs2_scan_eraseblock()
733 if (je16_to_cpu(node->magic) == JFFS2_OLD_MAGIC_BITMASK) { in jffs2_scan_eraseblock()
741 if (je16_to_cpu(node->magic) != JFFS2_MAGIC_BITMASK) { in jffs2_scan_eraseblock()
746 je16_to_cpu(node->magic)); in jffs2_scan_eraseblock()
753 crcnode.magic = node->magic; in jffs2_scan_eraseblock()
761 ofs, je16_to_cpu(node->magic), in jffs2_scan_eraseblock()
Dwrite.c44 ri->magic = cpu_to_je16(JFFS2_MAGIC_BITMASK); in jffs2_do_new_inode()
375 ri->magic = cpu_to_je16(JFFS2_MAGIC_BITMASK); in jffs2_write_inode_range()
510 rd->magic = cpu_to_je16(JFFS2_MAGIC_BITMASK); in jffs2_do_create()
573 rd->magic = cpu_to_je16(JFFS2_MAGIC_BITMASK); in jffs2_do_unlink()
690 rd->magic = cpu_to_je16(JFFS2_MAGIC_BITMASK); in jffs2_do_link()
/fs/befs/
Dbefs_fs_types.h218 fs32 magic; member
228 u32 magic; member
/fs/freevxfs/
Dvxfs_super.c156 unsigned blk, __fs32 magic) in vxfs_try_sb_magic() argument
176 if (rsbp->vs_magic != magic) { in vxfs_try_sb_magic()

1234