Revision 6714256c
b/tools/lvmstrap | ||
---|---|---|
66 | 66 |
"ubd", |
67 | 67 |
] |
68 | 68 |
|
69 |
#: Excluded filesystem types |
|
70 |
EXCLUDED_FS = frozenset([ |
|
71 |
"nfs", |
|
72 |
"nfs4", |
|
73 |
"autofs", |
|
74 |
"tmpfs", |
|
75 |
"proc", |
|
76 |
"sysfs", |
|
77 |
"usbfs", |
|
78 |
"devpts", |
|
79 |
]) |
|
80 |
|
|
69 | 81 |
|
70 | 82 |
class Error(Exception): |
71 | 83 |
"""Generic exception""" |
... | ... | |
460 | 472 |
for line in mountlines: |
461 | 473 |
_, mountpoint, fstype, _ = line.split(None, 3) |
462 | 474 |
# fs type blacklist |
463 |
if fstype in ["nfs", "nfs4", "autofs", "tmpfs", "proc", "sysfs"]:
|
|
475 |
if fstype in EXCLUDED_FS:
|
|
464 | 476 |
continue |
465 | 477 |
try: |
466 | 478 |
dev = os.stat(mountpoint).st_dev |
Also available in: Unified diff