summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlejandro Sirgo Rica <asirgo@soleta.eu>2024-04-23 10:18:53 +0200
committerAlejandro Sirgo Rica <asirgo@soleta.eu>2024-07-29 15:07:22 +0200
commite20cda122b87cc4ad62eaccd412d918aa38768cb (patch)
tree38d9affaf6fb3f0b7d269868ef47e6d9aebf6541
parent2c10b4c92afc80441493ad9b239952b43d2b761e (diff)
utils: rename ogExtendFs to extend_filesystem
Use a more consistent name format for the ogExtendFs function.
-rw-r--r--src/live/ogOperations.py2
-rw-r--r--src/utils/fs.py2
2 files changed, 2 insertions, 2 deletions
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,