diff options
author | OpenGnSys Support Team <soporte-og@soleta.eu> | 2024-04-19 12:19:36 +0200 |
---|---|---|
committer | OpenGnSys Support Team <soporte-og@soleta.eu> | 2024-04-19 12:19:54 +0200 |
commit | bddbea942ef01b02bc197ebc32d6e8a8591137bd (patch) | |
tree | 5cb089b3c8a300eeaffd75f043f1cf6d6e1864b9 | |
parent | 481ce5794f6ce7822f2a3c01ee9e21263ba1fbb9 (diff) |
utils: fs: skip shrink/extend operation for fat
fat does not support this operation, skip it
-rw-r--r-- | src/utils/fs.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/utils/fs.py b/src/utils/fs.py index 55c24cf..a9964a3 100644 --- a/src/utils/fs.py +++ b/src/utils/fs.py @@ -104,6 +104,8 @@ def ogReduceFs(disk, part): ret = _reduce_resize2fs(partdev) elif fstype == 'ntfs': ret = _reduce_ntfsresize(partdev) + elif fstype == 'vfat': + ret = 0 else: ret = -1 logging.error(f'Unable to shrink filesystem at {partdev}. ' @@ -127,6 +129,8 @@ def ogExtendFs(disk, part): _extend_resize2fs(partdev) elif fstype == 'ntfs': _extend_ntfsresize(partdev) + elif fstype == 'vfat': + pass else: logging.error(f'Unable to grow filesystem at {partdev}. ' f'Unsupported filesystem "{fstype}".') |