diff options
author | Timothy Asir <tjeyasin@redhat.com> | 2011-11-24 16:04:40 +0530 |
---|---|---|
committer | Timothy Asir <tjeyasin@redhat.com> | 2011-11-24 16:04:40 +0530 |
commit | d826da2b2e7749579d80b87471bd3c073e051ecc (patch) | |
tree | 2b7a8f65daec65fa739bbf7c6cb4a0eb32076176 /src | |
parent | e01788d60ec5f62d9c2e51c1e245ade66dcd0167 (diff) |
Displays supported file systems from available list only.
Diffstat (limited to 'src')
-rwxr-xr-x | src/com.gluster.storage.management.gateway.scripts/src/backend/get_filesystem_type.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/com.gluster.storage.management.gateway.scripts/src/backend/get_filesystem_type.py b/src/com.gluster.storage.management.gateway.scripts/src/backend/get_filesystem_type.py index 00cb3a59..de4b4bb0 100755 --- a/src/com.gluster.storage.management.gateway.scripts/src/backend/get_filesystem_type.py +++ b/src/com.gluster.storage.management.gateway.scripts/src/backend/get_filesystem_type.py @@ -13,8 +13,10 @@ if not p2 in sys.path: sys.path.append(p2) import Utils +SUPPORTED_FSTYPE = ['ext3', 'ext4', 'ext4dev', 'xfs'] + def main(): - print "\n".join(Utils.getFileSystemType()) + print "\n".join(list(set(Utils.getFileSystemType()).intersection(set(SUPPORTED_FSTYPE)))) if __name__ == "__main__": main() |