diff --git a/src/api2/tape/drive.rs b/src/api2/tape/drive.rs index 5932ef4d..639f8ed8 100644 --- a/src/api2/tape/drive.rs +++ b/src/api2/tape/drive.rs @@ -786,8 +786,8 @@ fn barcode_label_media_worker( }, }, )] -/// Read Medium auxiliary memory attributes (Cartridge Memory) -pub fn mam_attributes(drive: String) -> Result, Error> { +/// Read Cartridge Memory (Medium auxiliary memory attributes) +pub fn cartridge_memory(drive: String) -> Result, Error> { let (config, _digest) = config::drive::config()?; @@ -830,9 +830,9 @@ pub const SUBDIRS: SubdirMap = &sorted!([ .put(&API_METHOD_LOAD_SLOT) ), ( - "mam-attributes", + "cartridge-memory", &Router::new() - .put(&API_METHOD_MAM_ATTRIBUTES) + .put(&API_METHOD_CARTRIDGE_MEMORY) ), ( "read-label", diff --git a/src/bin/proxmox-tape.rs b/src/bin/proxmox-tape.rs index 252b2549..fdfc058d 100644 --- a/src/bin/proxmox-tape.rs +++ b/src/bin/proxmox-tape.rs @@ -526,8 +526,8 @@ fn debug_scan(param: Value) -> Result<(), Error> { }, }, )] -/// Read Medium auxiliary memory attributes (Cartridge Memory) -fn mam_attributes( +/// Read Cartridge Memory (Medium auxiliary memory attributes) +fn cartridge_memory( mut param: Value, rpcenv: &mut dyn RpcEnvironment, ) -> Result<(), Error> { @@ -537,7 +537,7 @@ fn mam_attributes( param["drive"] = lookup_drive_name(¶m, &config)?.into(); let output_format = get_output_format(¶m); - let info = &api2::tape::drive::API_METHOD_MAM_ATTRIBUTES; + let info = &api2::tape::drive::API_METHOD_CARTRIDGE_MEMORY; let mut data = match info.handler { ApiHandler::Sync(handler) => (handler)(param, info, rpcenv)?, @@ -636,8 +636,8 @@ fn main() { .completion_cb("drive", complete_drive_name) ) .insert( - "mam", - CliCommand::new(&API_METHOD_MAM_ATTRIBUTES) + "cartridge-memory", + CliCommand::new(&API_METHOD_CARTRIDGE_MEMORY) .completion_cb("drive", complete_drive_name) ) .insert(