summaryrefslogtreecommitdiffstats
path: root/ogcp/views.py
diff options
context:
space:
mode:
authorJavier Sánchez Parra <jsanchez@soleta.eu>2021-08-24 12:58:25 +0200
committersoleta <soleta@soleta.eu>2021-08-24 13:35:42 +0200
commit37a03045751832e19cd8151b87e77da0878ca9b7 (patch)
tree018ba23f99ca7a00799958fe4127e63bbc3a220a /ogcp/views.py
parent0bbae508f60b86cb77c3f05e43d4e86bb5d2980d (diff)
Add most common partition codes and filesystems
To increase the compatibility of "Partition & format" (aka setup).
Diffstat (limited to 'ogcp/views.py')
-rw-r--r--ogcp/views.py20
1 files changed, 18 insertions, 2 deletions
diff --git a/ogcp/views.py b/ogcp/views.py
index 0e0f9ee..72ca1b1 100644
--- a/ogcp/views.py
+++ b/ogcp/views.py
@@ -33,19 +33,35 @@ FS_CODES = {
2: 'CACHE',
6: 'EXT4',
9: 'FAT32',
- 13: 'NTFS'
+ 13: 'NTFS',
+ 18: 'EXFAT',
+ 19: 'LINUX-SWAP'
}
PART_TYPE_CODES = {
0: 'EMPTY',
1: 'DISK',
+ 5: 'EXTENDED',
7: 'NTFS',
+ 11: 'FAT32',
+ 23: 'HNTFS',
+ 27: 'HFAT32',
+ 39: 'HNTFS-WINRE',
+ 130: 'LINUX-SWAP',
131: 'LINUX',
+ 142: 'LINUX-LVM',
202: 'CACHE',
218: 'DATA',
+ 253: 'LINUX-RAID',
1792: 'NTFS',
+ 9984: 'WIN-RECOV',
+ 33280: 'LINUX-SWAP',
33536: 'LINUX',
- 61184: 'EFI'
+ 36352: 'LINUX-LVM',
+ 51712: 'CACHE',
+ 61184: 'EFI',
+ 64768: 'LINUX-RAID',
+ 65535: 'UNKNOWN'
}
PART_SCHEME_CODES = {