From 2ce62b7fc4fcde295012d0c998ebacacc7483a35 Mon Sep 17 00:00:00 2001 From: Roland Date: Sun, 10 Mar 2024 16:43:33 -0600 Subject: [PATCH] Adding exfat as valid drive format. --- wrolpi/status.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/wrolpi/status.py b/wrolpi/status.py index cd2bd13d..01efe1c0 100755 --- a/wrolpi/status.py +++ b/wrolpi/status.py @@ -252,7 +252,7 @@ DRIVE_REGEX = re.compile(r'^.+?' # filesystem r'\s+(.*)', # mount re.MULTILINE) IGNORED_DRIVES = ['/boot', '/etc'] -VALID_FORMATS = {'btrfs', 'ext4', 'ext3', 'ext2', 'vfat'} +VALID_FORMATS = {'btrfs', 'ext4', 'ext3', 'ext2', 'vfat', 'exfat'} def get_drives_info_psutil() -> List[DriveInfo]: @@ -265,7 +265,7 @@ def get_drives_info_psutil() -> List[DriveInfo]: if disk.fstype not in VALID_FORMATS: continue if disk.device not in info: - # Only use the first use of the partition. + # Only use the first partition. usage = psutil.disk_usage(disk.mountpoint) info[disk.device] = DriveInfo( mount=disk.mountpoint,