Home
last modified time | relevance | path

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

12345

/fs/xfs/libxfs/
Dxfs_da_btree.c137 to->magic = be16_to_cpu(from3->hdr.info.hdr.magic); in xfs_da3_node_hdr_from_disk()
141 ASSERT(to->magic == XFS_DA3_NODE_MAGIC); in xfs_da3_node_hdr_from_disk()
145 to->magic = be16_to_cpu(from->hdr.info.magic); in xfs_da3_node_hdr_from_disk()
149 ASSERT(to->magic == XFS_DA_NODE_MAGIC); in xfs_da3_node_hdr_from_disk()
162 ASSERT(from->magic == XFS_DA3_NODE_MAGIC); in xfs_da3_node_hdr_to_disk()
165 to3->hdr.info.hdr.magic = cpu_to_be16(from->magic); in xfs_da3_node_hdr_to_disk()
169 ASSERT(from->magic == XFS_DA_NODE_MAGIC); in xfs_da3_node_hdr_to_disk()
172 to->hdr.info.magic = cpu_to_be16(from->magic); in xfs_da3_node_hdr_to_disk()
191 if (!xfs_verify_magic16(bp, hdr->magic)) in xfs_da3_blkinfo_verify()
278 switch (be16_to_cpu(info->magic)) { in xfs_da3_node_read_verify()
[all …]
Dxfs_dir2_data.c129 switch (hdr->magic) { in __xfs_dir3_data_check()
231 if (hdr->magic == cpu_to_be32(XFS_DIR2_BLOCK_MAGIC) || in __xfs_dir3_data_check()
232 hdr->magic == cpu_to_be32(XFS_DIR3_BLOCK_MAGIC)) { in __xfs_dir3_data_check()
254 if (hdr->magic == cpu_to_be32(XFS_DIR2_BLOCK_MAGIC) || in __xfs_dir3_data_check()
255 hdr->magic == cpu_to_be32(XFS_DIR3_BLOCK_MAGIC)) { in __xfs_dir3_data_check()
297 if (!xfs_verify_magic(bp, hdr3->magic)) in xfs_dir3_data_verify()
322 switch (hdr->magic) { in xfs_dir3_data_reada_verify()
382 .magic = { cpu_to_be32(XFS_DIR2_DATA_MAGIC),
391 .magic = { cpu_to_be32(XFS_DIR2_DATA_MAGIC),
561 ASSERT(hdr->magic == cpu_to_be32(XFS_DIR2_DATA_MAGIC) || in xfs_dir2_data_freeinsert()
[all …]
Dxfs_dir2_leaf.c45 to->magic = be16_to_cpu(from3->hdr.info.hdr.magic); in xfs_dir2_leaf_hdr_from_disk()
50 ASSERT(to->magic == XFS_DIR3_LEAF1_MAGIC || in xfs_dir2_leaf_hdr_from_disk()
51 to->magic == XFS_DIR3_LEAFN_MAGIC); in xfs_dir2_leaf_hdr_from_disk()
55 to->magic = be16_to_cpu(from->hdr.info.magic); in xfs_dir2_leaf_hdr_from_disk()
60 ASSERT(to->magic == XFS_DIR2_LEAF1_MAGIC || in xfs_dir2_leaf_hdr_from_disk()
61 to->magic == XFS_DIR2_LEAFN_MAGIC); in xfs_dir2_leaf_hdr_from_disk()
74 ASSERT(from->magic == XFS_DIR3_LEAF1_MAGIC || in xfs_dir2_leaf_hdr_to_disk()
75 from->magic == XFS_DIR3_LEAFN_MAGIC); in xfs_dir2_leaf_hdr_to_disk()
79 to3->hdr.info.hdr.magic = cpu_to_be16(from->magic); in xfs_dir2_leaf_hdr_to_disk()
83 ASSERT(from->magic == XFS_DIR2_LEAF1_MAGIC || in xfs_dir2_leaf_hdr_to_disk()
[all …]
Dxfs_dir2_node.c69 if (leafhdr.magic == XFS_DIR3_LEAFN_MAGIC) { in xfs_dir3_leafn_check()
73 } else if (leafhdr.magic != XFS_DIR2_LEAFN_MAGIC) in xfs_dir3_leafn_check()
105 if (!xfs_verify_magic(bp, hdr->magic)) in xfs_dir3_free_verify()
167 .magic = { cpu_to_be32(XFS_DIR2_FREE_MAGIC),
253 to->magic = be32_to_cpu(from3->hdr.hdr.magic); in xfs_dir2_free_hdr_from_disk()
259 ASSERT(to->magic == XFS_DIR3_FREE_MAGIC); in xfs_dir2_free_hdr_from_disk()
261 to->magic = be32_to_cpu(from->hdr.magic); in xfs_dir2_free_hdr_from_disk()
267 ASSERT(to->magic == XFS_DIR2_FREE_MAGIC); in xfs_dir2_free_hdr_from_disk()
280 ASSERT(from->magic == XFS_DIR3_FREE_MAGIC); in xfs_dir2_free_hdr_to_disk()
282 to3->hdr.hdr.magic = cpu_to_be32(from->magic); in xfs_dir2_free_hdr_to_disk()
[all …]
Dxfs_da_format.h24 __be16 magic; /* validity check on block */ member
300 __be32 magic; /* XFS_DIR2_DATA_MAGIC or */ member
312 __be32 magic; /* magic number */ member
474 __be32 magic; /* XFS_DIR2_FREE_MAGIC */ member
706 if (leafp->hdr.info.magic == cpu_to_be16(XFS_ATTR3_LEAF_MAGIC)) in xfs_attr3_leaf_hdr_size()
714 if (leafp->hdr.info.magic == cpu_to_be16(XFS_ATTR3_LEAF_MAGIC)) in xfs_attr3_leaf_entryp()
Dxfs_attr_leaf.c100 if (from->hdr.info.magic == cpu_to_be16(XFS_ATTR3_LEAF_MAGIC)) { in xfs_attr3_leaf_firstused_from_disk()
142 if (from->magic == XFS_ATTR3_LEAF_MAGIC) { in xfs_attr3_leaf_firstused_to_disk()
158 ASSERT(from->hdr.info.magic == cpu_to_be16(XFS_ATTR_LEAF_MAGIC) || in xfs_attr3_leaf_hdr_from_disk()
159 from->hdr.info.magic == cpu_to_be16(XFS_ATTR3_LEAF_MAGIC)); in xfs_attr3_leaf_hdr_from_disk()
161 if (from->hdr.info.magic == cpu_to_be16(XFS_ATTR3_LEAF_MAGIC)) { in xfs_attr3_leaf_hdr_from_disk()
166 to->magic = be16_to_cpu(hdr3->info.hdr.magic); in xfs_attr3_leaf_hdr_from_disk()
180 to->magic = be16_to_cpu(from->hdr.info.magic); in xfs_attr3_leaf_hdr_from_disk()
200 ASSERT(from->magic == XFS_ATTR_LEAF_MAGIC || in xfs_attr3_leaf_hdr_to_disk()
201 from->magic == XFS_ATTR3_LEAF_MAGIC); in xfs_attr3_leaf_hdr_to_disk()
203 if (from->magic == XFS_ATTR3_LEAF_MAGIC) { in xfs_attr3_leaf_hdr_to_disk()
[all …]
Dxfs_dir2_priv.h18 uint16_t magic; member
30 uint32_t magic; member
110 struct xfs_buf **bpp, uint16_t magic);
Dxfs_dir2_block.c53 if (!xfs_verify_magic(bp, hdr3->magic)) in xfs_dir3_block_verify()
110 .magic = { cpu_to_be32(XFS_DIR2_BLOCK_MAGIC),
176 hdr3->magic = cpu_to_be32(XFS_DIR3_BLOCK_MAGIC); in xfs_dir3_block_init()
183 hdr3->magic = cpu_to_be32(XFS_DIR2_BLOCK_MAGIC); in xfs_dir3_block_init()
956 ASSERT(leafhdr.magic == XFS_DIR2_LEAF1_MAGIC || in xfs_dir2_leaf_to_block()
957 leafhdr.magic == XFS_DIR3_LEAF1_MAGIC); in xfs_dir2_leaf_to_block()
987 ASSERT(hdr->magic == cpu_to_be32(XFS_DIR2_DATA_MAGIC) || in xfs_dir2_leaf_to_block()
988 hdr->magic == cpu_to_be32(XFS_DIR3_DATA_MAGIC)); in xfs_dir2_leaf_to_block()
Dxfs_da_btree.h115 int magic; /* blk's magic number, ie: blk type */ member
143 uint16_t magic; member
/fs/
Dbinfmt_misc.c57 char *magic; /* magic or filename extension */ member
107 if (p && !strcmp(e->magic, p + 1)) in check_file()
116 if ((*s++ ^ e->magic[j]) & e->mask[j]) in check_file()
120 if ((*s++ ^ e->magic[j])) in check_file()
357 e->magic = p; in create_entry()
361 if (!e->magic[0]) in create_entry()
366 DUMP_PREFIX_NONE, e->magic, p - e->magic); in create_entry()
387 e->size = string_unescape_inplace(e->magic, UNESCAPE_HEX); in create_entry()
398 DUMP_PREFIX_NONE, e->magic, e->size); in create_entry()
410 masked[i] = e->magic[i] & e->mask[i]; in create_entry()
[all …]
/fs/xfs/scrub/
Ddabtree.c88 ASSERT(blk->magic == XFS_DA_NODE_MAGIC); in xchk_da_btree_node_entry()
152 switch (be16_to_cpu(info->magic)) { in xchk_da_btree_read_verify()
174 switch (be16_to_cpu(info->magic)) { in xchk_da_btree_write_verify()
196 switch (be16_to_cpu(info->magic)) { in xchk_da_btree_verify()
366 blk->magic = be16_to_cpu(hdr3->hdr.magic); in xchk_da_btree_block()
386 switch (blk->magic) { in xchk_da_btree_block()
391 blk->magic = XFS_ATTR_LEAF_MAGIC; in xchk_da_btree_block()
400 blk->magic = XFS_DIR2_LEAFN_MAGIC; in xchk_da_btree_block()
409 blk->magic = XFS_DIR2_LEAF1_MAGIC; in xchk_da_btree_block()
418 blk->magic = XFS_DA_NODE_MAGIC; in xchk_da_btree_block()
[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
440 __le32 magic; /* f7e4 0aae */ member
494 __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/xfs/
Dxfs_attr_list.c216 uint16_t magic; in xfs_attr_node_list_lookup() local
226 magic = be16_to_cpu(node->hdr.info.magic); in xfs_attr_node_list_lookup()
227 if (magic == XFS_ATTR_LEAF_MAGIC || in xfs_attr_node_list_lookup()
228 magic == XFS_ATTR3_LEAF_MAGIC) in xfs_attr_node_list_lookup()
230 if (magic != XFS_DA_NODE_MAGIC && in xfs_attr_node_list_lookup()
231 magic != XFS_DA3_NODE_MAGIC) { in xfs_attr_node_list_lookup()
314 switch (be16_to_cpu(node->hdr.info.magic)) { in xfs_attr_node_list()
Dxfs_ondisk.h153 XFS_CHECK_OFFSET(struct xfs_dir3_data_hdr, hdr.magic, 0); in xfs_check_ondisk_structs()
154 XFS_CHECK_OFFSET(struct xfs_dir3_free, hdr.hdr.magic, 0); in xfs_check_ondisk_structs()
/fs/ubifs/
Dscan.c61 uint32_t magic; in ubifs_scan_a_node() local
63 magic = le32_to_cpu(ch->magic); in ubifs_scan_a_node()
65 if (magic == 0xFFFFFFFF) { in ubifs_scan_a_node()
70 if (magic != UBIFS_NODE_MAGIC) in ubifs_scan_a_node()
Dio.c230 uint32_t crc, node_crc, magic; in ubifs_check_node() local
236 magic = le32_to_cpu(ch->magic); in ubifs_check_node()
237 if (magic != UBIFS_NODE_MAGIC) { in ubifs_check_node()
240 magic, UBIFS_NODE_MAGIC); in ubifs_check_node()
317 ch->magic = cpu_to_le32(UBIFS_NODE_MAGIC); in ubifs_pad()
364 ch->magic = cpu_to_le32(UBIFS_NODE_MAGIC); in ubifs_init_node()
457 ch->magic = cpu_to_le32(UBIFS_NODE_MAGIC); in ubifs_prep_grp_node()
/fs/ntfs/
Dmst.c67 b->magic = magic_BAAD; in post_read_mst_fixup()
116 if (!b || ntfs_is_baad_record(b->magic) || in pre_write_mst_fixup()
117 ntfs_is_hole_record(b->magic)) in pre_write_mst_fixup()
Dlogfile.c82 if (ntfs_is_chkd_record(rp->magic) && !le16_to_cpu(rp->usa_count)) { in ntfs_check_restart_page_header()
121 if (!ntfs_is_chkd_record(rp->magic) && sle64_to_cpu(rp->chkdsk_lsn)) { in ntfs_check_restart_page_header()
408 if ((!ntfs_is_chkd_record(trp->magic) || le16_to_cpu(trp->usa_count)) in ntfs_check_and_load_restart_page()
431 if (ntfs_is_rstr_record(rp->magic) && in ntfs_check_and_load_restart_page()
439 if (ntfs_is_rstr_record(rp->magic)) in ntfs_check_and_load_restart_page()
677 if (!ntfs_is_rstr_record(rp->magic) && in ntfs_is_logfile_clean()
678 !ntfs_is_chkd_record(rp->magic)) { in ntfs_is_logfile_clean()
/fs/autofs/
Ddev-ioctl.c511 unsigned int devid, magic; in autofs_dev_ioctl_ismountpoint() local
520 param->ismountpoint.out.magic = magic = 0; in autofs_dev_ioctl_ismountpoint()
535 magic = path.dentry->d_sb->s_magic; in autofs_dev_ioctl_ismountpoint()
549 magic = path.dentry->d_sb->s_magic; in autofs_dev_ioctl_ismountpoint()
553 param->ismountpoint.out.magic = magic; in autofs_dev_ioctl_ismountpoint()
/fs/gfs2/
Dutil.h102 u32 magic = be32_to_cpu(mh->mh_magic); in gfs2_meta_check() local
103 if (unlikely(magic != GFS2_MAGIC)) { in gfs2_meta_check()
123 u32 magic = be32_to_cpu(mh->mh_magic); in gfs2_metatype_check_i() local
125 if (unlikely(magic != GFS2_MAGIC)) in gfs2_metatype_check_i()
/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()
368 __u32 magic; in orangefs_devreq_write_iter() member
402 if (head.magic != ORANGEFS_DEVREQ_MAGIC) { in orangefs_devreq_write_iter()
593 static __s32 magic = ORANGEFS_DEVREQ_MAGIC; in dispatch_ioctl_command() local
605 return ((put_user(magic, (__s32 __user *) arg) == -EFAULT) ? in dispatch_ioctl_command()
/fs/jffs2/
Dscan.c493 if (je32_to_cpu(sm->magic) == JFFS2_SUM_MAGIC) { in jffs2_scan_eraseblock()
512 if (je32_to_cpu(sm->magic) == JFFS2_SUM_MAGIC) { in jffs2_scan_eraseblock()
724 if (ofs == jeb->offset && je16_to_cpu(node->magic) == KSAMTIB_CIGAM_2SFFJ) { in jffs2_scan_eraseblock()
732 if (je16_to_cpu(node->magic) == JFFS2_DIRTY_BITMASK) { in jffs2_scan_eraseblock()
739 if (je16_to_cpu(node->magic) == JFFS2_OLD_MAGIC_BITMASK) { in jffs2_scan_eraseblock()
747 if (je16_to_cpu(node->magic) != JFFS2_MAGIC_BITMASK) { in jffs2_scan_eraseblock()
752 je16_to_cpu(node->magic)); in jffs2_scan_eraseblock()
759 crcnode.magic = node->magic; in jffs2_scan_eraseblock()
767 ofs, je16_to_cpu(node->magic), in jffs2_scan_eraseblock()
/fs/cramfs/
Dinode.c40 unsigned long magic; member
531 if (super->magic != CRAMFS_MAGIC) { in cramfs_read_super()
533 if (super->magic == CRAMFS_MAGIC_WEND) { in cramfs_read_super()
545 if (super->magic != CRAMFS_MAGIC) { in cramfs_read_super()
546 if (super->magic == CRAMFS_MAGIC_WEND && !silent) in cramfs_read_super()
578 sbi->magic = super->magic; in cramfs_read_super()
/fs/befs/
Dbefs_fs_types.h218 fs32 magic; member
228 u32 magic; member

12345