Home
last modified time | relevance | path

Searched refs:s_magic (Results 1 – 25 of 95) sorted by relevance

1234

/Linux-v5.4/include/linux/
Dsysv_fs.h51 s32 s_magic; /* version of file system */ member
93 s32 s_magic; /* version of file system */ member
121 s32 s_magic; /* version of file system */ member
/Linux-v5.4/include/uapi/linux/
Dminix_fs.h74 __u16 s_magic; member
92 __u16 s_magic; member
Dbfs_fs.h52 __le32 s_magic; member
/Linux-v5.4/fs/minix/
Dinode.c189 s->s_magic = ms->s_magic; in minix_fill_super()
190 if (s->s_magic == MINIX_SUPER_MAGIC) { in minix_fill_super()
195 } else if (s->s_magic == MINIX_SUPER_MAGIC2) { in minix_fill_super()
200 } else if (s->s_magic == MINIX2_SUPER_MAGIC) { in minix_fill_super()
206 } else if (s->s_magic == MINIX2_SUPER_MAGIC2) { in minix_fill_super()
214 s->s_magic = m3s->s_magic; in minix_fill_super()
358 buf->f_type = sb->s_magic; in minix_statfs()
/Linux-v5.4/fs/devpts/
Dinode.c143 if ((sb->s_magic != DEVPTS_SUPER_MAGIC) || in devpts_ptmx_path()
184 if ((path.mnt->mnt_sb->s_magic != DEVPTS_SUPER_MAGIC) || in devpts_mntget()
209 if (path.mnt->mnt_sb->s_magic != DEVPTS_SUPER_MAGIC) { in devpts_acquire()
453 s->s_magic = DEVPTS_SUPER_MAGIC; in devpts_fill_super()
607 if (dentry->d_sb->s_magic != DEVPTS_SUPER_MAGIC) in devpts_get_priv()
620 WARN_ON_ONCE(dentry->d_sb->s_magic != DEVPTS_SUPER_MAGIC); in devpts_pty_kill()
/Linux-v5.4/init/
Ddo_mounts_rd.c117 if (le32_to_cpu(squashfsb->s_magic) == SQUASHFS_MAGIC) { in identify_ramdisk_image()
147 if (minixsb->s_magic == MINIX_SUPER_MAGIC || in identify_ramdisk_image()
148 minixsb->s_magic == MINIX_SUPER_MAGIC2) { in identify_ramdisk_image()
/Linux-v5.4/fs/sysv/
Dsuper.c182 if (*(__le32 *)&sbd->s_magic == cpu_to_le32(0x2b5544)) in detect_xenix()
184 else if (*(__be32 *)&sbd->s_magic == cpu_to_be32(0x2b5544)) in detect_xenix()
208 if (*(__le32 *)&sbd->s_magic == cpu_to_le32(0xfd187e20)) in detect_sysv()
210 else if (*(__be32 *)&sbd->s_magic == cpu_to_be32(0xfd187e20)) in detect_sysv()
332 sb->s_magic = SYSV_MAGIC_BASE + sbi->s_type; in complete_read_super()
/Linux-v5.4/security/tomoyo/
Drealpath.c161 if (sb->s_magic == PROC_SUPER_MAGIC && *pos == '/') { in tomoyo_get_local_path()
283 if (sb->s_magic == SOCKFS_MAGIC) { in tomoyo_realpath_from_path()
/Linux-v5.4/fs/jfs/
Djfs_superblock.h26 char s_magic[4]; /* 4: magic number */ member
/Linux-v5.4/fs/omfs/
Domfs_fs.h28 __be32 s_magic; /* OMFS_MAGIC */ member
Dinode.c493 if (omfs_sb->s_magic != cpu_to_be32(OMFS_MAGIC)) { in omfs_fill_super()
496 omfs_sb->s_magic); in omfs_fill_super()
499 sb->s_magic = OMFS_MAGIC; in omfs_fill_super()
/Linux-v5.4/fs/squashfs/
Dsuper.c112 sb->s_magic = le32_to_cpu(sblk->s_magic); in squashfs_fill_super()
113 if (sb->s_magic != SQUASHFS_MAGIC) { in squashfs_fill_super()
/Linux-v5.4/Documentation/filesystems/
Dsysv-fs.txt103 unsigned short s_magic;
127 long s_magic;
132 long s_magic;
/Linux-v5.4/fs/erofs/
Dsuper.c358 sb->s_magic = EROFS_SUPER_MAGIC; in erofs_fill_super()
440 WARN_ON(sb->s_magic != EROFS_SUPER_MAGIC); in erofs_kill_sb()
531 buf->f_type = sb->s_magic; in erofs_statfs()
/Linux-v5.4/fs/autofs/
Ddev-ioctl.c194 if (path.dentry->d_sb->s_magic == AUTOFS_SUPER_MAGIC) { in find_autofs_mount()
533 magic = path.dentry->d_sb->s_magic; in autofs_dev_ioctl_ismountpoint()
547 magic = path.dentry->d_sb->s_magic; in autofs_dev_ioctl_ismountpoint()
/Linux-v5.4/fs/bfs/
Dinode.c336 if (le32_to_cpu(bfs_sb->s_magic) != BFS_MAGIC) { in bfs_fill_super()
338 printf("No BFS filesystem on %s (magic=%08x)\n", s->s_id, le32_to_cpu(bfs_sb->s_magic)); in bfs_fill_super()
344 s->s_magic = BFS_MAGIC; in bfs_fill_super()
/Linux-v5.4/security/integrity/evm/
Devm_main.c339 if (dentry->d_sb->s_magic == TMPFS_MAGIC in evm_protect_xattr()
340 || dentry->d_sb->s_magic == SYSFS_MAGIC) in evm_protect_xattr()
/Linux-v5.4/fs/configfs/
Dmount.c72 sb->s_magic = CONFIGFS_MAGIC; in configfs_fill_super()
/Linux-v5.4/security/apparmor/
Dpath.c105 if (path->dentry->d_sb->s_magic == PROC_SUPER_MAGIC && in d_namespace_path()
/Linux-v5.4/fs/qnx4/
Dinode.c134 buf->f_type = sb->s_magic; in qnx4_statfs()
202 s->s_magic = QNX4_SUPER_MAGIC; in qnx4_fill_super()
/Linux-v5.4/fs/nilfs2/
Dsuper.c247 if (sbp[0]->s_magic != cpu_to_le16(NILFS_SUPER_MAGIC)) { in nilfs_prepare_super()
249 sbp[1]->s_magic == cpu_to_le16(NILFS_SUPER_MAGIC)) { in nilfs_prepare_super()
256 sbp[1]->s_magic != cpu_to_le16(NILFS_SUPER_MAGIC)) { in nilfs_prepare_super()
852 sb->s_magic = le16_to_cpu(sbp->s_magic); in nilfs_store_magic_and_option()
/Linux-v5.4/fs/ext2/
Dsuper.c894 sb->s_magic = le16_to_cpu(es->s_magic); in ext2_fill_super()
896 if (sb->s_magic != EXT2_SUPER_MAGIC) in ext2_fill_super()
996 if (es->s_magic != cpu_to_le16(EXT2_SUPER_MAGIC)) { in ext2_fill_super()
1047 if (sb->s_magic != EXT2_SUPER_MAGIC) in ext2_fill_super()
/Linux-v5.4/fs/orangefs/
Dsuper.c202 buf->f_type = sb->s_magic; in orangefs_statfs()
435 sb->s_magic = ORANGEFS_SUPER_MAGIC; in orangefs_fill_sb()
/Linux-v5.4/fs/efivarfs/
Dsuper.c199 sb->s_magic = EFIVARFS_MAGIC; in efivarfs_fill_super()
/Linux-v5.4/fs/ramfs/
Dinode.c230 sb->s_magic = RAMFS_MAGIC; in ramfs_fill_super()

1234