Merge lp:~tribaal/landscape-client/fix-1045374-mount-storm-in-client-take-2 into lp:~landscape/landscape-client/trunk
Proposed by
Chris Glass
Status: | Merged | ||||
---|---|---|---|---|---|
Approved by: | Geoff Teale | ||||
Approved revision: | 577 | ||||
Merged at revision: | 576 | ||||
Proposed branch: | lp:~tribaal/landscape-client/fix-1045374-mount-storm-in-client-take-2 | ||||
Merge into: | lp:~landscape/landscape-client/trunk | ||||
Diff against target: |
155 lines (+41/-29) 3 files modified
landscape/lib/disk.py (+10/-4) landscape/lib/tests/test_disk.py (+24/-11) landscape/sysinfo/disk.py (+7/-14) |
||||
To merge this branch: | bzr merge lp:~tribaal/landscape-client/fix-1045374-mount-storm-in-client-take-2 | ||||
Related bugs: |
|
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Geoff Teale (community) | Approve | ||
Thomas Herve (community) | Approve | ||
Review via email: mp+123979@code.launchpad.net |
Description of the change
After further testing, the filtering on device type is less interesting than filtering on filesystem type (autofs filesystems are shown as being of "autofs" type).
Filtering on device does not work since the autofs device name is actually the name of the map (as appearing in /etc/auto.master), and is therefore "auto_direct" only as a convention.
Since there was already a filesystem type whitelist in the code I refactored it to be in the right module, and made the whitelist the default choice.
To post a comment you must log in.
[1] whitelist is None: whitelist = STABLE_FILESYSTEMS
+ if filesystems_
+ filesystems_
You can directly make it the default of the function. Maybe use a frozen set to feel more comfortable.
[2] for_path, FILESYSTEMS)
+from landscape.lib.disk import (get_mount_info, get_filesystem_
+STABLE_
You don't need to pass the value anymore, so you don't have to import STABLE_FILESYSTEMS.
[3] pep8
landscape/ sysinfo/ disk.py: 12:25: E225 missing whitespace around operator sysinfo/ disk.py: 13:37: E225 missing whitespace around operator sysinfo/ disk.py: 15:37: E225 missing whitespace around operator
landscape/
landscape/
Thanks!