Skip to content

Commit

Permalink
edit file system type
Browse files Browse the repository at this point in the history
  • Loading branch information
zhilong-xu committed Jan 16, 2023
1 parent 7cf95a4 commit b02ccab
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 1 addition & 2 deletions delfin/drivers/dell_emc/power_store/consts.py
Original file line number Diff line number Diff line change
Expand Up @@ -506,8 +506,7 @@ class DiskType(object):
}
}
FS_TYPE_MAP = {
'Primary': constants.FSType.THIN,
'Snapshot': constants.FSType.THICK
'Primary': constants.FSType.THIN
}
FS_SECURITY_MODE_MAP = {
'Native': constants.NASSecurityMode.NATIVE,
Expand Down
2 changes: 2 additions & 0 deletions delfin/drivers/dell_emc/power_store/rest_handler.py
Original file line number Diff line number Diff line change
Expand Up @@ -1026,6 +1026,8 @@ def list_filesystems(self, storage_id):
file_system_list = self.rest_call(self.REST_FILE_SYSTEM_URL)
for file_system in file_system_list:
fs_type = file_system.get('filesystem_type')
if 'Snapshot' == fs_type:
continue
total_capacity = int(file_system.get('size_total'))
used_capacity = int(file_system.get('size_used'))
file_dict = {
Expand Down

0 comments on commit b02ccab

Please sign in to comment.