From e20cda122b87cc4ad62eaccd412d918aa38768cb Mon Sep 17 00:00:00 2001 From: Alejandro Sirgo Rica Date: Tue, 23 Apr 2024 10:18:53 +0200 Subject: utils: rename ogExtendFs to extend_filesystem Use a more consistent name format for the ogExtendFs function. --- src/live/ogOperations.py | 2 +- src/utils/fs.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'src') diff --git a/src/live/ogOperations.py b/src/live/ogOperations.py index 15e563f..7958e9e 100644 --- a/src/live/ogOperations.py +++ b/src/live/ogOperations.py @@ -572,7 +572,7 @@ class OgLiveOperations: logging.info(f'partclone process exited with code {p1.returncode}') logging.info(f'lzop process exited with code {p2.returncode}') - ogExtendFs(disk, partition) + extend_filesystem(disk, partition) if os.access(f'{image_path}', os.R_OK) == False: raise OgError(f'Cannot access partclone image file {image_path}') diff --git a/src/utils/fs.py b/src/utils/fs.py index 8f45ad5..3de8ee2 100644 --- a/src/utils/fs.py +++ b/src/utils/fs.py @@ -117,7 +117,7 @@ def ogReduceFs(disk, part): return ret -def ogExtendFs(disk, part): +def extend_filesystem(disk, part): """ Grow filesystem of a partition. Supports ext4 and ntfs partitions. Unsupported filesystem or invalid paths don't raise an exception, -- cgit v1.2.3-18-g5258