Skip to content

Commit a4e08fa

Browse files
Merge pull request #54 from robertbaldyga/fs-missing-entries
fs_tools: Add missing Filesystem entry types
2 parents ee39b57 + c0464c0 commit a4e08fa

File tree

1 file changed

+7
-4
lines changed

1 file changed

+7
-4
lines changed

test_tools/fs_tools.py

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
import textwrap
1313
from collections import namedtuple
1414
from datetime import datetime, timedelta
15-
from enum import Enum
15+
from enum import Enum, auto
1616
from aenum import IntFlag # IntFlag from enum is not able to correctly parse string like "x|y|z"
1717

1818
from connection.utils.output import CmdException
@@ -22,9 +22,12 @@
2222

2323

2424
class Filesystem(Enum):
25-
xfs = 0
26-
ext3 = 1
27-
ext4 = 2
25+
xfs = auto()
26+
xfs_external_log = auto()
27+
ext3 = auto()
28+
ext4 = auto()
29+
linux_raid_member = auto()
30+
LVM2_member = auto()
2831

2932

3033
class Permissions(IntFlag):

0 commit comments

Comments
 (0)