Coverage for linuxpy/magic.py: 100%

85 statements  

« prev     ^ index     » next       coverage.py v7.6.1, created at 2024-10-18 07:40 +0200

1# 

2# This file is part of the linuxpy project 

3# 

4# Copyright (c) 2023 Tiago Coutinho 

5# Distributed under the GPLv3 license. See LICENSE for more info. 

6 

7# This file has been generated by linuxpy.codegen.magic 

8# Date: 2024-09-09 08:39:26.102814 

9# System: Linux 

10# Release: 6.10.6-amd64 

11# Version: #1 SMP PREEMPT_DYNAMIC Debian 6.10.6-1 (2024-08-19) 

12 

13import enum 

14 

15 

16class Magic(enum.IntEnum): 

17 ADFS_SUPER = 0xADF5 

18 AFFS_SUPER = 0xADFF 

19 AFS_SUPER = 0x5346414F 

20 AUTOFS_SUPER = 0x187 

21 CEPH_SUPER = 0xC36400 

22 CODA_SUPER = 0x73757245 

23 CRAMFS = 0x28CD3D45 # some random number 

24 CRAMFS_WEND = 0x453DCD28 # magic number with the wrong endianess 

25 DEBUGFS = 0x64626720 

26 SECURITYFS = 0x73636673 

27 SELINUX = 0xF97CFF8C 

28 SMACK = 0x43415D53 # "SMAC" 

29 RAMFS = 0x858458F6 # some random number 

30 TMPFS = 0x1021994 

31 HUGETLBFS = 0x958458F6 # some random number 

32 SQUASHFS = 0x73717368 

33 ECRYPTFS_SUPER = 0xF15F 

34 EFS_SUPER = 0x414A53 

35 EROFS_SUPER_V1 = 0xE0F5E1E2 

36 EXT2_SUPER = 0xEF53 

37 EXT3_SUPER = 0xEF53 

38 XENFS_SUPER = 0xABBA1974 

39 EXT4_SUPER = 0xEF53 

40 BTRFS_SUPER = 0x9123683E 

41 NILFS_SUPER = 0x3434 

42 F2FS_SUPER = 0xF2F52010 

43 HPFS_SUPER = 0xF995E849 

44 ISOFS_SUPER = 0x9660 

45 JFFS2_SUPER = 0x72B6 

46 XFS_SUPER = 0x58465342 # "XFSB" 

47 PSTOREFS = 0x6165676C 

48 EFIVARFS = 0xDE5E81E4 

49 HOSTFS_SUPER = 0xC0FFEE 

50 OVERLAYFS_SUPER = 0x794C7630 

51 FUSE_SUPER = 0x65735546 

52 BCACHEFS_SUPER = 0xCA451A4E 

53 MINIX_SUPER = 0x137F # minix v1 fs, 14cchar names 

54 MINIX_SUPER2 = 0x138F # minix v1 fs, 30cchar names 

55 MINIX2_SUPER = 0x2468 # minix v2 fs, 14cchar names 

56 MINIX2_SUPER2 = 0x2478 # minix v2 fs, 30cchar names 

57 MINIX3_SUPER = 0x4D5A # minix v3 fs, 60cchar names 

58 MSDOS_SUPER = 0x4D44 # MD 

59 EXFAT_SUPER = 0x2011BAB0 

60 NCP_SUPER = 0x564C # Guess, what 0x564c is :-) 

61 NFS_SUPER = 0x6969 

62 OCFS2_SUPER = 0x7461636F 

63 OPENPROM_SUPER = 0x9FA1 

64 QNX4_SUPER = 0x002F # qnx4 fs detection 

65 QNX6_SUPER = 0x68191122 # qnx6 fs detection 

66 AFS_FS = 0x6B414653 

67 REISERFS_SUPER = 0x52654973 # used by gcc 

68 SMB_SUPER = 0x517B 

69 CIFS_SUPER = 0xFF534D42 # the first four bytes of SMB PDUs 

70 SMB2_SUPER = 0xFE534D42 

71 CGROUP_SUPER = 0x27E0EB 

72 CGROUP2_SUPER = 0x63677270 

73 RDTGROUP_SUPER = 0x7655821 

74 STACK_END = 0x57AC6E9D 

75 TRACEFS = 0x74726163 

76 V9FS = 0x1021997 

77 BDEVFS = 0x62646576 

78 DAXFS = 0x64646178 

79 BINFMTFS = 0x42494E4D 

80 DEVPTS_SUPER = 0x1CD1 

81 BINDERFS_SUPER = 0x6C6F6F70 

82 FUTEXFS_SUPER = 0xBAD1DEA 

83 PIPEFS = 0x50495045 

84 PROC_SUPER = 0x9FA0 

85 SOCKFS = 0x534F434B 

86 SYSFS = 0x62656572 

87 USBDEVICE_SUPER = 0x9FA2 

88 MTD_INODE_FS = 0x11307854 

89 ANON_INODE_FS = 0x9041934 

90 BTRFS_TEST = 0x73727279 

91 NSFS = 0x6E736673 

92 BPF_FS = 0xCAFE4A11 

93 AAFS = 0x5A3C69F0 

94 ZONEFS = 0x5A4F4653 

95 UDF_SUPER = 0x15013346 

96 DMA_BUF = 0x444D4142 # "DMAB" 

97 DEVMEM = 0x454D444D # "DMEM" 

98 SECRETMEM = 0x5345434D # "SECM" 

99 PID_FS = 0x50494446 # "PIDF"