diff options
author | Jeremy Katz <katzj@redhat.com> | 2002-02-14 00:08:19 +0000 |
---|---|---|
committer | Jeremy Katz <katzj@redhat.com> | 2002-02-14 00:08:19 +0000 |
commit | a1c8ed06464d140ce520422d874e2bf9d3943f80 (patch) | |
tree | 73a98f9d9df3eddddb706565b8c7953a8370c6d5 /partedUtils.py | |
parent | 26b07e69e3f7945db8453f1036388116920abce8 (diff) | |
download | anaconda-a1c8ed06464d140ce520422d874e2bf9d3943f80.tar.gz anaconda-a1c8ed06464d140ce520422d874e2bf9d3943f80.tar.xz anaconda-a1c8ed06464d140ce520422d874e2bf9d3943f80.zip |
move a lot more out of partitioning.py... a lot of the functions are now
methods of request classes or the Partitions class
Diffstat (limited to 'partedUtils.py')
-rw-r--r-- | partedUtils.py | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/partedUtils.py b/partedUtils.py index f7f403afb..d0734e9cb 100644 --- a/partedUtils.py +++ b/partedUtils.py @@ -244,6 +244,16 @@ def checkDiskLabel(disk, intf): else: return 1 +def isLinuxNativeByNumtype(numtype): + """Check if the type is a 'Linux native' filesystem.""" + linuxtypes = [0x82, 0x83, 0x8e, 0xfd] + + for t in linuxtypes: + if int(numtype) == t: + return 1 + + return 0 + class DiskSet: """The disks in the system.""" |