From c2d04ca39f9f84bcb59f4627212d9ca94f02f3ca Mon Sep 17 00:00:00 2001 From: Natalia Serrano Date: Mon, 14 Jul 2025 13:23:03 +0200 Subject: [PATCH] refs #2432 remove unused function and debug stmts --- CHANGELOG.md | 6 ++++++ ogclient/lib/python3/DiskLib.py | 21 --------------------- ogclient/lib/python3/ProtocolLib.py | 2 -- 3 files changed, 6 insertions(+), 23 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 4eb29af..7034738 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -5,6 +5,12 @@ All notable changes to this project will be documented in this file. The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/), and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). +## [0.26.0] - 2025-07-14 + +### Fixed + +- Overhaul partitioning + ## [0.25.2] - 2025-07-14 ### Fixed diff --git a/ogclient/lib/python3/DiskLib.py b/ogclient/lib/python3/DiskLib.py index 12b775c..be7366b 100644 --- a/ogclient/lib/python3/DiskLib.py +++ b/ogclient/lib/python3/DiskLib.py @@ -242,27 +242,6 @@ def ogCreatePartitions (disk, parts): return not p.returncode -#/** -# ogCreateGptPartitions int_ndisk str_parttype:int_partsize ... -#@brief Define el conjunto de particiones de un disco GPT -#@param int_ndisk nº de orden del disco -#@param str_parttype mnemónico del tipo de partición -#@param int_partsize tamaño de la partición (en KB) -#@return (nada, por determinar) -#@exception OG_ERR_FORMAT formato incorrecto. -#@exception OG_ERR_NOTFOUND disco o partición no detectado (no es un dispositivo). -#@exception OG_ERR_PARTITION error en partición o en tabla de particiones. -#@attention El nº de partición se indica por el orden de los párametros \c parttype:partsize -#@attention Pueden definirse particiones vacías de tipo \c EMPTY -#@attention No puede definirse partición de caché y no se modifica si existe. -#@note Requisitos: sfdisk, parted, partprobe, awk -#@todo Definir atributos (arranque, oculta) y tamaños en MB, GB, etc. -#*/ ## -def ogCreateGptPartitions (disk, parts): - print ('nati in ogCreateGptPartitions(), return False') - return False - - #/** # ogCreatePartitionTable int_ndisk [str_tabletype] #@brief Genera una tabla de particiones en caso de que no sea valida, si es valida no hace nada. diff --git a/ogclient/lib/python3/ProtocolLib.py b/ogclient/lib/python3/ProtocolLib.py index 1b41ba8..59ce192 100644 --- a/ogclient/lib/python3/ProtocolLib.py +++ b/ogclient/lib/python3/ProtocolLib.py @@ -224,7 +224,6 @@ def ogUcastSendFile (disk=None, par=None, container=None, file=None, sess=None): return path2 = FileLib.ogGetPath (file=source) - print (f'nati path2 ({path2})') if not path2: SystemLib.ogRaiseError ([], ogGlobals.OG_ERR_NOTFOUND, f'device or file {dev_err} not found') return @@ -483,7 +482,6 @@ def ogMcastSendFile (disk=None, par=None, container=None, file=None, sess=None): return path2 = FileLib.ogGetPath (file=source) - print (f'nati path2 ({path2})') if not path2: SystemLib.ogRaiseError ([], ogGlobals.OG_ERR_NOTFOUND, f'device or file {dev_err} not found') return