From f00cf52711f79065456a3428bbb962828b3738bd Mon Sep 17 00:00:00 2001 From: josue-morfin Date: Thu, 10 Apr 2025 16:12:57 -0600 Subject: [PATCH 01/11] support LTOA --- src/libltfs/tape_ops.h | 2 + src/tape_drivers/generic/file/filedebug_tc.c | 15 +++- src/tape_drivers/hp_tape.c | 46 +++++++++++ src/tape_drivers/ibm_tape.c | 85 ++++++++++++++++++++ src/tape_drivers/quantum_tape.c | 23 ++++++ src/tape_drivers/tape_drivers.h | 6 ++ src/tape_drivers/vendor_compat.c | 6 ++ 7 files changed, 182 insertions(+), 1 deletion(-) diff --git a/src/libltfs/tape_ops.h b/src/libltfs/tape_ops.h index deae04a2..25c42c6a 100644 --- a/src/libltfs/tape_ops.h +++ b/src/libltfs/tape_ops.h @@ -155,6 +155,8 @@ enum { TC_DC_LTOM8 = 0x5D, TC_DC_LTO8 = 0x5E, TC_DC_LTO9 = 0x60, + TC_DC_LTOA = 0x62, + TC_DC_LTOPA = 0x63, }; /* Density codes of TS11x0 */ diff --git a/src/tape_drivers/generic/file/filedebug_tc.c b/src/tape_drivers/generic/file/filedebug_tc.c index b0ad4056..dee9f5f0 100644 --- a/src/tape_drivers/generic/file/filedebug_tc.c +++ b/src/tape_drivers/generic/file/filedebug_tc.c @@ -1340,7 +1340,20 @@ static inline int _sanitize_tape(struct filedebug_data *state) ret = -EDEV_MEDIUM_FORMAT_ERROR; break; } - } else if (gen == DRIVE_GEN_JAG4) { + } else if (gen == DRIVE_GEN_LTOA) { + switch (state->conf.cart_type) { + case TC_MP_LTOPAD_CART: + case TC_MP_LTOAD_CART: + /* Do nothing */ + break; + default: + ltfsmsg(LTFS_INFO, 30086I, "LTOA", state->conf.cart_type); + state->unsupported_tape = true; + ret = -EDEV_MEDIUM_FORMAT_ERROR; + break; + } + } + else if (gen == DRIVE_GEN_JAG4) { switch (state->conf.cart_type) { case TC_MP_JB: case TC_MP_JC: diff --git a/src/tape_drivers/hp_tape.c b/src/tape_drivers/hp_tape.c index ad9fd496..160cd4a3 100644 --- a/src/tape_drivers/hp_tape.c +++ b/src/tape_drivers/hp_tape.c @@ -226,6 +226,26 @@ static struct _timeout_tape timeout_lto9[] = { {-1, -1} }; +static struct _timeout_tape timeout_ltoA[] = { + { ERASE, 16320 }, + { FORMAT_MEDIUM, 3180 }, + { LOAD_UNLOAD, 780 }, + { LOCATE10, 104880 }, + { LOCATE16, 104880 }, + { READ, 2340 }, + { READ_BUFFER, 480 }, + { REWIND, 600 }, + { SEND_DIAGNOSTIC, 1980 }, + { SET_CAPACITY, 780 }, + { SPACE6, 104880 }, + { SPACE16, 104880 }, + { VERIFY, 104880 }, + { WRITE, 1500 }, + { WRITE_BUFFER, 540 }, + { WRITE_FILEMARKS6, 1620 }, + {-1, -1} +}; + static struct _timeout_tape timeout_lto5_hh[] = { { ERASE, 18000 }, { FORMAT_MEDIUM, 1560 }, @@ -326,6 +346,26 @@ static struct _timeout_tape timeout_lto9_hh[] = { {-1, -1} }; +static struct _timeout_tape timeout_ltoA_hh[] = { + { ERASE, 205440 }, + { FORMAT_MEDIUM, 3180 }, + { LOAD_UNLOAD, 780 }, + { LOCATE10, 104880 }, + { LOCATE16, 104880 }, + { READ, 2340 }, + { READ_BUFFER, 480 }, + { REWIND, 600 }, + { SEND_DIAGNOSTIC, 1980 }, + { SET_CAPACITY, 780 }, + { SPACE6, 2940 }, + { SPACE16, 2940 }, + { VERIFY, 104880 }, + { WRITE, 1500 }, + { WRITE_BUFFER, 540 }, + { WRITE_FILEMARKS6, 1620 }, + {-1, -1} +}; + static int _create_table_tape(struct timeout_tape **result, struct _timeout_tape* base, struct _timeout_tape* override) @@ -402,6 +442,12 @@ int hp_tape_init_timeout(struct timeout_tape** table, int type) case DRIVE_LTO9_HH: ret = _create_table_tape(table, timeout_lto, timeout_lto9_hh); break; + case DRIVE_LTOA: + ret = _create_table_tape(table, timeout_lto, timeout_ltoA); + break; + case DRIVE_LTOA_HH: + ret = _create_table_tape(table, timeout_lto, timeout_ltoA_hh); + break; default: ret = _create_table_tape(table, timeout_lto, timeout_lto7_hh); break; diff --git a/src/tape_drivers/ibm_tape.c b/src/tape_drivers/ibm_tape.c index d7b54f4d..ff15fea7 100644 --- a/src/tape_drivers/ibm_tape.c +++ b/src/tape_drivers/ibm_tape.c @@ -193,6 +193,11 @@ DRIVE_DENSITY_SUPPORT_MAP jaguar_drive_density_strict[] = { }; DRIVE_DENSITY_SUPPORT_MAP lto_drive_density[] = { + /* LTOA */ + { DRIVE_GEN_LTOA, TC_MP_LTOPAD_CART, TC_DC_LTOPA, MEDIUM_PERFECT_MATCH}, + { DRIVE_GEN_LTOA, TC_MP_LTOAD_CART, TC_DC_LTOA, MEDIUM_PERFECT_MATCH}, + { DRIVE_GEN_LTOA, TC_MP_LTOAD_CART, TC_DC_UNKNOWN, MEDIUM_PERFECT_MATCH}, + /* LTO9 */ { DRIVE_GEN_LTO9, TC_MP_LTO9D_CART, TC_DC_LTO9, MEDIUM_PERFECT_MATCH}, { DRIVE_GEN_LTO9, TC_MP_LTO9D_CART, TC_DC_UNKNOWN, MEDIUM_PERFECT_MATCH}, @@ -226,6 +231,11 @@ DRIVE_DENSITY_SUPPORT_MAP lto_drive_density[] = { }; DRIVE_DENSITY_SUPPORT_MAP lto_drive_density_strict[] = { + /* LTOA */ + { DRIVE_GEN_LTOA, TC_MP_LTOPAD_CART, TC_DC_LTOPA, MEDIUM_PERFECT_MATCH}, + { DRIVE_GEN_LTOA, TC_MP_LTOAD_CART, TC_DC_LTOA, MEDIUM_PERFECT_MATCH}, + { DRIVE_GEN_LTOA, TC_MP_LTOAD_CART, TC_DC_UNKNOWN, MEDIUM_PERFECT_MATCH}, + /* LTO9 */ { DRIVE_GEN_LTO9, TC_MP_LTO9D_CART, TC_DC_LTO9, MEDIUM_PERFECT_MATCH}, { DRIVE_GEN_LTO9, TC_MP_LTO9D_CART, TC_DC_UNKNOWN, MEDIUM_PERFECT_MATCH}, @@ -249,6 +259,8 @@ DRIVE_DENSITY_SUPPORT_MAP lto_drive_density_strict[] = { }; const unsigned char supported_cart[] = { + TC_MP_LTOPAD_CART, + TC_MP_LTOAD_CART, TC_MP_LTO9D_CART, TC_MP_LTO8D_CART, TC_MP_LTO7D_CART, @@ -278,6 +290,8 @@ const unsigned char supported_density[] = { TC_DC_JAG5A, TC_DC_JAG5, TC_DC_JAG4, + TC_DC_LTOPA, + TC_DC_LTOA, TC_DC_LTO9, TC_DC_LTO8, TC_DC_LTOM8, @@ -319,6 +333,10 @@ struct supported_device *ibm_supported_drives[] = { TAPEDRIVE( IBM_VENDOR_ID, "ULTRIUM-HH9", DRIVE_LTO9_HH, "[ULTRIUM-HH9]" ), /* IBM Ultrium Gen 9 Half-High */ TAPEDRIVE( IBM_VENDOR_ID, "ULT3580-HH9", DRIVE_LTO9_HH, "[ULT3580-HH9]" ), /* IBM Ultrium Gen 9 Half-High */ TAPEDRIVE( IBM_VENDOR_ID, "HH LTO Gen 9", DRIVE_LTO9_HH, "[HH LTO Gen 9]" ), /* IBM Ultrium Gen 9 Half-High */ + TAPEDRIVE( IBM_VENDOR_ID, "ULTRIUM-TDA", DRIVE_LTOA, "[ULTRIUM-TDA]" ), /* IBM Ultrium Gen A */ + TAPEDRIVE( IBM_VENDOR_ID, "ULT3580-TDA", DRIVE_LTOA, "[ULT3580-TDA]"), /* IBM Ultrium Gen A */ + TAPEDRIVE( IBM_VENDOR_ID, "ULTRIUM-HHA", DRIVE_LTOA_HH, "[ULTRIUM-HHA]"), /* IBM Ultrium Gen A Half-High */ + TAPEDRIVE( IBM_VENDOR_ID, "ULT3580-HHA", DRIVE_LTOA_HH, "[ULT3580-HHA]"), /* IBM Ultrium Gen A Half-High */ TAPEDRIVE( IBM_VENDOR_ID, "03592E07", DRIVE_TS1140, "[03592E07]" ), /* IBM TS1140 */ TAPEDRIVE( IBM_VENDOR_ID, "03592E08", DRIVE_TS1150, "[03592E08]" ), /* IBM TS1150 */ TAPEDRIVE( IBM_VENDOR_ID, "0359255F", DRIVE_TS1155, "[0359255F]" ), /* IBM TS1155 */ @@ -348,6 +366,9 @@ struct supported_device *usb_supported_drives[] = { TAPEDRIVE( IBM_VENDOR_ID, "ULT3580-TD9", DRIVE_LTO9, "[ULT3580-TD9]" ), /* IBM Ultrium Gen 9 */ TAPEDRIVE( IBM_VENDOR_ID, "ULTRIUM-HH9", DRIVE_LTO9_HH, "[ULTRIUM-HH9]" ), /* IBM Ultrium Gen 9 Half-High */ TAPEDRIVE( IBM_VENDOR_ID, "ULT3580-HH9", DRIVE_LTO9_HH, "[ULT3580-HH9]" ), /* IBM Ultrium Gen 9 Half-High */ + TAPEDRIVE( IBM_VENDOR_ID, "ULT3580-TDA", DRIVE_LTOA, "[ULT3580-TDA]"), /* IBM Ultrium Gen A */ + TAPEDRIVE( IBM_VENDOR_ID, "ULTRIUM-HHA", DRIVE_LTOA_HH, "[ULTRIUM-HHA]" ), /* IBM Ultrium Gen A */ + TAPEDRIVE( IBM_VENDOR_ID, "ULT3580-HHA", DRIVE_LTOA_HH, "[ULT3580-HHA]" ), /* IBM Ultrium Gen A Half-High */ /* End of supported_devices */ NULL }; @@ -589,6 +610,26 @@ static struct _timeout_tape timeout_lto9[] = { {-1, -1} }; +static struct _timeout_tape timeout_ltoA[] = { + { ERASE, 16320 }, + { FORMAT_MEDIUM, 3180 }, + { LOAD_UNLOAD, 780 }, + { LOCATE10, 104880 }, + { LOCATE16, 104880 }, + { READ, 2340 }, + { READ_BUFFER, 480 }, + { REWIND, 600 }, + { SEND_DIAGNOSTIC, 1980 }, + { SET_CAPACITY, 780 }, + { SPACE6, 104880 }, + { SPACE16, 104880 }, + { VERIFY, 104880 }, + { WRITE, 1500 }, + { WRITE_BUFFER, 540 }, + { WRITE_FILEMARKS6, 1620 }, + {-1, -1} +}; + static struct _timeout_tape timeout_lto5_hh[] = { { ERASE, 19200 }, { FORMAT_MEDIUM, 1980 }, @@ -689,6 +730,26 @@ static struct _timeout_tape timeout_lto9_hh[] = { {-1, -1} }; +static struct _timeout_tape timeout_ltoA_hh[] = { + { ERASE, 205440 }, + { FORMAT_MEDIUM, 3180 }, + { LOAD_UNLOAD, 780 }, + { LOCATE10, 104880 }, + { LOCATE16, 104880 }, + { READ, 2340 }, + { READ_BUFFER, 480 }, + { REWIND, 600 }, + { SEND_DIAGNOSTIC, 1980 }, + { SET_CAPACITY, 780 }, + { SPACE6, 2940 }, + { SPACE16, 2940 }, + { VERIFY, 104880 }, + { WRITE, 1500 }, + { WRITE_BUFFER, 540 }, + { WRITE_FILEMARKS6, 1620 }, + {-1, -1} +}; + static struct _timeout_tape timeout_11x0[] = { { CHANGE_DEFINITION, 30 }, { INQUIRY, 30 }, @@ -903,6 +964,12 @@ int ibm_tape_init_timeout(struct timeout_tape** table, int type) case DRIVE_LTO9_HH: ret = _create_table_tape(table, timeout_lto, timeout_lto9_hh); break; + case DRIVE_LTOA: + ret = _create_table_tape(table, timeout_lto, timeout_ltoA); + break; + case DRIVE_LTOA_HH: + ret = _create_table_tape(table, timeout_lto, timeout_ltoA_hh); + break; case DRIVE_TS1140: ret = _create_table_tape(table, timeout_11x0, timeout_1140); break; @@ -989,6 +1056,9 @@ static inline unsigned char _assume_cartridge_type(char product, char btype) case '9': ctype = TC_MP_LTO9D_CART; break; + case 'A': + ctype = TC_MP_LTOAD_CART; + break; default: break; } @@ -1001,6 +1071,15 @@ static inline unsigned char _assume_cartridge_type(char product, char btype) break; } } + else if (product == 'P') { + switch (btype) { + case 'A': + ctype = TC_MP_LTOPAD_CART; + break; + default: + break; + } + } return ctype; } @@ -1039,6 +1118,12 @@ char* ibm_tape_assume_cart_name(unsigned char type) case TC_MP_LTO9D_CART: name = "L9"; break; + case TC_MP_LTOAD_CART: + name = "LA"; + break; + case TC_MP_LTOPAD_CART: + name = "PA"; + break; case TC_MP_JB: name = "JB"; break; diff --git a/src/tape_drivers/quantum_tape.c b/src/tape_drivers/quantum_tape.c index 9f583ac3..ccd50cc5 100644 --- a/src/tape_drivers/quantum_tape.c +++ b/src/tape_drivers/quantum_tape.c @@ -246,6 +246,26 @@ static struct _timeout_tape timeout_lto9_hh[] = { {-1, -1} }; +static struct _timeout_tape timeout_ltoA_hh[] = { + { ERASE, 205440 }, + { FORMAT_MEDIUM, 3180 }, + { LOAD_UNLOAD, 780 }, + { LOCATE10, 104880 }, + { LOCATE16, 104880 }, + { READ, 2340 }, + { READ_BUFFER, 480 }, + { REWIND, 600 }, + { SEND_DIAGNOSTIC, 1980 }, + { SET_CAPACITY, 780 }, + { SPACE6, 2940 }, + { SPACE16, 2940 }, + { VERIFY, 104880 }, + { WRITE, 1500 }, + { WRITE_BUFFER, 540 }, + { WRITE_FILEMARKS6, 1620 }, + {-1, -1} +}; + static int _create_table_tape(struct timeout_tape **result, struct _timeout_tape* base, struct _timeout_tape* override) @@ -307,6 +327,9 @@ int quantum_tape_init_timeout(struct timeout_tape** table, int type) case DRIVE_LTO9_HH: ret = _create_table_tape(table, timeout_lto, timeout_lto9_hh); break; + case DRIVE_LTOA_HH: + ret = _create_table_tape(table, timeout_lto, timeout_ltoA_hh); + break; default: ret = _create_table_tape(table, timeout_lto, timeout_lto7_hh); break; diff --git a/src/tape_drivers/tape_drivers.h b/src/tape_drivers/tape_drivers.h index 133e8e69..e1dea852 100644 --- a/src/tape_drivers/tape_drivers.h +++ b/src/tape_drivers/tape_drivers.h @@ -193,6 +193,8 @@ enum { DRIVE_LTO8_HH = 0x2208, /* Ultrium Gen 8 Half-High */ DRIVE_LTO9 = 0x2109, /* Ultrium Gen 9 */ DRIVE_LTO9_HH = 0x2209, /* Ultrium Gen 9 Half-High */ + DRIVE_LTOA = 0x210A, /* Ultrium Gen A */ + DRIVE_LTOA_HH = 0x220A, /* Ultrium Gen A Half-High */ DRIVE_TS1140 = 0x1104, /* TS1140 */ DRIVE_TS1150 = 0x1105, /* TS1150 */ DRIVE_TS1155 = 0x5105, /* TS1155 */ @@ -207,6 +209,7 @@ enum { DRIVE_GEN_LTO7 = 0x2007, DRIVE_GEN_LTO8 = 0x2008, DRIVE_GEN_LTO9 = 0x2009, + DRIVE_GEN_LTOA = 0x200A, DRIVE_GEN_JAG4 = 0x1004, DRIVE_GEN_JAG5 = 0x1005, DRIVE_GEN_JAG5A = 0x5005, @@ -225,6 +228,8 @@ enum { TC_MP_LTO7D_CART = 0x78, /* LTO7 Data cartridge */ TC_MP_LTO8D_CART = 0x88, /* LTO8 Data cartridge */ TC_MP_LTO9D_CART = 0x98, /* LTO9 Data cartridge */ + TC_MP_LTOAD_CART = 0xA8, /* LTOA Data cartridge */ + TC_MP_LTOPAD_CART = 0xA9, /* LTOPA Data cartridge */ TC_MP_LTO3W_CART = 0x3C, /* LTO3 WORM cartridge */ TC_MP_LTO4W_CART = 0x4C, /* LTO4 WORM cartridge */ TC_MP_LTO5W_CART = 0x5C, /* LTO5 WORM cartridge */ @@ -232,6 +237,7 @@ enum { TC_MP_LTO7W_CART = 0x7C, /* LTO7 WORM cartridge */ TC_MP_LTO8W_CART = 0x8C, /* LTO8 WORM cartridge */ TC_MP_LTO9W_CART = 0x9C, /* LTO9 WORM cartridge */ + TC_MP_LTOAW_CART = 0xAC, /* LTOA WORM cartridge */ }; /* Enterprise cartridge type in mode page header */ diff --git a/src/tape_drivers/vendor_compat.c b/src/tape_drivers/vendor_compat.c index 7a0acbb1..54824af4 100644 --- a/src/tape_drivers/vendor_compat.c +++ b/src/tape_drivers/vendor_compat.c @@ -353,6 +353,12 @@ unsigned char assume_cart_type(const unsigned char dc) case TC_DC_LTO9: cart = TC_MP_LTO9D_CART; break; + case TC_DC_LTOA: + cart = TC_MP_LTOAD_CART; + break; + case TC_DC_LTOPA: + cart = TC_MP_LTOPAD_CART; + break; default: // Do nothing break; From 99681bfedbb10dc970bc8528c67eb4c043764eea Mon Sep 17 00:00:00 2001 From: josue-morfin Date: Mon, 14 Apr 2025 16:44:13 -0600 Subject: [PATCH 02/11] update copyright to 2025 --- src/libltfs/tape_ops.h | 2 +- src/tape_drivers/generic/file/filedebug_tc.c | 2 +- src/tape_drivers/hp_tape.c | 2 +- src/tape_drivers/ibm_tape.c | 2 +- src/tape_drivers/quantum_tape.c | 2 +- src/tape_drivers/tape_drivers.h | 2 +- src/tape_drivers/vendor_compat.c | 2 +- 7 files changed, 7 insertions(+), 7 deletions(-) diff --git a/src/libltfs/tape_ops.h b/src/libltfs/tape_ops.h index 25c42c6a..bb08e6be 100644 --- a/src/libltfs/tape_ops.h +++ b/src/libltfs/tape_ops.h @@ -3,7 +3,7 @@ ** OO_Copyright_BEGIN ** ** -** Copyright 2010, 2023 IBM Corp. All rights reserved. +** Copyright 2010, 2025 IBM Corp. All rights reserved. ** ** Redistribution and use in source and binary forms, with or without ** modification, are permitted provided that the following conditions diff --git a/src/tape_drivers/generic/file/filedebug_tc.c b/src/tape_drivers/generic/file/filedebug_tc.c index dee9f5f0..28a4ec71 100644 --- a/src/tape_drivers/generic/file/filedebug_tc.c +++ b/src/tape_drivers/generic/file/filedebug_tc.c @@ -3,7 +3,7 @@ ** OO_Copyright_BEGIN ** ** -** Copyright 2010, 2020 IBM Corp. All rights reserved. +** Copyright 2010, 2025 IBM Corp. All rights reserved. ** ** Redistribution and use in source and binary forms, with or without ** modification, are permitted provided that the following conditions diff --git a/src/tape_drivers/hp_tape.c b/src/tape_drivers/hp_tape.c index 160cd4a3..cbd513d5 100644 --- a/src/tape_drivers/hp_tape.c +++ b/src/tape_drivers/hp_tape.c @@ -3,7 +3,7 @@ ** OO_Copyright_BEGIN ** ** -** Copyright 2010, 2020 IBM Corp. All rights reserved. +** Copyright 2010, 2025 IBM Corp. All rights reserved. ** ** Redistribution and use in source and binary forms, with or without ** modification, are permitted provided that the following conditions diff --git a/src/tape_drivers/ibm_tape.c b/src/tape_drivers/ibm_tape.c index ff15fea7..49115266 100644 --- a/src/tape_drivers/ibm_tape.c +++ b/src/tape_drivers/ibm_tape.c @@ -3,7 +3,7 @@ ** OO_Copyright_BEGIN ** ** -** Copyright 2010, 2023 IBM Corp. All rights reserved. +** Copyright 2010, 2025 IBM Corp. All rights reserved. ** ** Redistribution and use in source and binary forms, with or without ** modification, are permitted provided that the following conditions diff --git a/src/tape_drivers/quantum_tape.c b/src/tape_drivers/quantum_tape.c index ccd50cc5..4d33671f 100644 --- a/src/tape_drivers/quantum_tape.c +++ b/src/tape_drivers/quantum_tape.c @@ -3,7 +3,7 @@ ** OO_Copyright_BEGIN ** ** -** Copyright 2010, 2020 IBM Corp. All rights reserved. +** Copyright 2010, 2025 IBM Corp. All rights reserved. ** ** Redistribution and use in source and binary forms, with or without ** modification, are permitted provided that the following conditions diff --git a/src/tape_drivers/tape_drivers.h b/src/tape_drivers/tape_drivers.h index e1dea852..2b1b5dd2 100644 --- a/src/tape_drivers/tape_drivers.h +++ b/src/tape_drivers/tape_drivers.h @@ -3,7 +3,7 @@ ** OO_Copyright_BEGIN ** ** -** Copyright 2010, 2023 IBM Corp. All rights reserved. +** Copyright 2010, 2025 IBM Corp. All rights reserved. ** ** Redistribution and use in source and binary forms, with or without ** modification, are permitted provided that the following conditions diff --git a/src/tape_drivers/vendor_compat.c b/src/tape_drivers/vendor_compat.c index 54824af4..4f49a9ac 100644 --- a/src/tape_drivers/vendor_compat.c +++ b/src/tape_drivers/vendor_compat.c @@ -3,7 +3,7 @@ ** OO_Copyright_BEGIN ** ** -** Copyright 2010, 2020 IBM Corp. All rights reserved. +** Copyright 2010, 2025 IBM Corp. All rights reserved. ** ** Redistribution and use in source and binary forms, with or without ** modification, are permitted provided that the following conditions From 69ff82635a80064eea4d99c4ed9a48ed69e9f2c2 Mon Sep 17 00:00:00 2001 From: josue-morfin Date: Tue, 15 Apr 2025 11:35:25 -0600 Subject: [PATCH 03/11] add lto drive density --- src/tape_drivers/ibm_tape.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/tape_drivers/ibm_tape.c b/src/tape_drivers/ibm_tape.c index 49115266..6f8d2782 100644 --- a/src/tape_drivers/ibm_tape.c +++ b/src/tape_drivers/ibm_tape.c @@ -197,7 +197,7 @@ DRIVE_DENSITY_SUPPORT_MAP lto_drive_density[] = { { DRIVE_GEN_LTOA, TC_MP_LTOPAD_CART, TC_DC_LTOPA, MEDIUM_PERFECT_MATCH}, { DRIVE_GEN_LTOA, TC_MP_LTOAD_CART, TC_DC_LTOA, MEDIUM_PERFECT_MATCH}, { DRIVE_GEN_LTOA, TC_MP_LTOAD_CART, TC_DC_UNKNOWN, MEDIUM_PERFECT_MATCH}, - + { DRIVE_GEN_LTOA, TC_MP_LTOPAD_CART, TC_DC_UNKNOWN, MEDIUM_PERFECT_MATCH}, /* LTO9 */ { DRIVE_GEN_LTO9, TC_MP_LTO9D_CART, TC_DC_LTO9, MEDIUM_PERFECT_MATCH}, { DRIVE_GEN_LTO9, TC_MP_LTO9D_CART, TC_DC_UNKNOWN, MEDIUM_PERFECT_MATCH}, From 348c87cba902ca29c7c52f951ea4fed6c3e1e906 Mon Sep 17 00:00:00 2001 From: josue-morfin Date: Tue, 15 Apr 2025 11:42:30 -0600 Subject: [PATCH 04/11] add lto drive density strict --- src/tape_drivers/ibm_tape.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/tape_drivers/ibm_tape.c b/src/tape_drivers/ibm_tape.c index 6f8d2782..d39f9b92 100644 --- a/src/tape_drivers/ibm_tape.c +++ b/src/tape_drivers/ibm_tape.c @@ -235,6 +235,7 @@ DRIVE_DENSITY_SUPPORT_MAP lto_drive_density_strict[] = { { DRIVE_GEN_LTOA, TC_MP_LTOPAD_CART, TC_DC_LTOPA, MEDIUM_PERFECT_MATCH}, { DRIVE_GEN_LTOA, TC_MP_LTOAD_CART, TC_DC_LTOA, MEDIUM_PERFECT_MATCH}, { DRIVE_GEN_LTOA, TC_MP_LTOAD_CART, TC_DC_UNKNOWN, MEDIUM_PERFECT_MATCH}, + { DRIVE_GEN_LTOA, TC_MP_LTOPAD_CART, TC_DC_UNKNOWN, MEDIUM_PERFECT_MATCH}, /* LTO9 */ { DRIVE_GEN_LTO9, TC_MP_LTO9D_CART, TC_DC_LTO9, MEDIUM_PERFECT_MATCH}, From ffd2e954eb15301e7546bbd6f2d9a82c38aecb4f Mon Sep 17 00:00:00 2001 From: josue-morfin Date: Mon, 21 Apr 2025 14:46:14 -0600 Subject: [PATCH 05/11] timeout LTOA --- src/tape_drivers/hp_tape.c | 8 ++++---- src/tape_drivers/ibm_tape.c | 40 ++++++++++++++++++------------------- 2 files changed, 24 insertions(+), 24 deletions(-) diff --git a/src/tape_drivers/hp_tape.c b/src/tape_drivers/hp_tape.c index cbd513d5..48490f0a 100644 --- a/src/tape_drivers/hp_tape.c +++ b/src/tape_drivers/hp_tape.c @@ -230,15 +230,15 @@ static struct _timeout_tape timeout_ltoA[] = { { ERASE, 16320 }, { FORMAT_MEDIUM, 3180 }, { LOAD_UNLOAD, 780 }, - { LOCATE10, 104880 }, - { LOCATE16, 104880 }, + { LOCATE10, 2940 }, + { LOCATE16, 2940 }, { READ, 2340 }, { READ_BUFFER, 480 }, { REWIND, 600 }, { SEND_DIAGNOSTIC, 1980 }, { SET_CAPACITY, 780 }, - { SPACE6, 104880 }, - { SPACE16, 104880 }, + { SPACE6, 2940 }, + { SPACE16, 2940 }, { VERIFY, 104880 }, { WRITE, 1500 }, { WRITE_BUFFER, 540 }, diff --git a/src/tape_drivers/ibm_tape.c b/src/tape_drivers/ibm_tape.c index d39f9b92..88d472d3 100644 --- a/src/tape_drivers/ibm_tape.c +++ b/src/tape_drivers/ibm_tape.c @@ -615,15 +615,15 @@ static struct _timeout_tape timeout_ltoA[] = { { ERASE, 16320 }, { FORMAT_MEDIUM, 3180 }, { LOAD_UNLOAD, 780 }, - { LOCATE10, 104880 }, - { LOCATE16, 104880 }, + { LOCATE10, 2940 }, + { LOCATE16, 2940 }, { READ, 2340 }, { READ_BUFFER, 480 }, { REWIND, 600 }, { SEND_DIAGNOSTIC, 1980 }, { SET_CAPACITY, 780 }, - { SPACE6, 104880 }, - { SPACE16, 104880 }, + { SPACE6, 2940 }, + { SPACE16, 2940 }, { VERIFY, 104880 }, { WRITE, 1500 }, { WRITE_BUFFER, 540 }, @@ -715,15 +715,15 @@ static struct _timeout_tape timeout_lto9_hh[] = { { ERASE, 166370 }, { FORMAT_MEDIUM, 3240 }, { LOAD_UNLOAD, 960 }, - { LOCATE10, 2940 }, - { LOCATE16, 2940 }, + { LOCATE10, 3940 }, + { LOCATE16, 3940 }, { READ, 2340 }, { READ_BUFFER, 480 }, { REWIND, 600 }, { SEND_DIAGNOSTIC, 2040 }, { SET_CAPACITY, 960 }, - { SPACE6, 2940 }, - { SPACE16, 2940 }, + { SPACE6, 3940 }, + { SPACE16, 3940 }, { VERIFY, 63300 }, { WRITE, 1560 }, { WRITE_BUFFER, 540 }, @@ -732,22 +732,22 @@ static struct _timeout_tape timeout_lto9_hh[] = { }; static struct _timeout_tape timeout_ltoA_hh[] = { - { ERASE, 205440 }, - { FORMAT_MEDIUM, 3180 }, - { LOAD_UNLOAD, 780 }, - { LOCATE10, 104880 }, - { LOCATE16, 104880 }, + { ERASE, 166370 }, + { FORMAT_MEDIUM, 3240 }, + { LOAD_UNLOAD, 960 }, + { LOCATE10, 3940 }, + { LOCATE16, 3940 }, { READ, 2340 }, { READ_BUFFER, 480 }, { REWIND, 600 }, - { SEND_DIAGNOSTIC, 1980 }, - { SET_CAPACITY, 780 }, - { SPACE6, 2940 }, - { SPACE16, 2940 }, - { VERIFY, 104880 }, - { WRITE, 1500 }, + { SEND_DIAGNOSTIC, 2040 }, + { SET_CAPACITY, 960 }, + { SPACE6, 3940 }, + { SPACE16, 3940 }, + { VERIFY, 63300 }, + { WRITE, 1560 }, { WRITE_BUFFER, 540 }, - { WRITE_FILEMARKS6, 1620 }, + { WRITE_FILEMARKS6, 1680 }, {-1, -1} }; From fc045d56d72db9fb7d5be606a048d376ed026ea2 Mon Sep 17 00:00:00 2001 From: josue-morfin Date: Mon, 21 Apr 2025 15:08:14 -0600 Subject: [PATCH 06/11] timeout LTOA --- src/tape_drivers/hp_tape.c | 32 ++++++++++++++++---------------- src/tape_drivers/ibm_tape.c | 24 ++++++++++++------------ src/tape_drivers/quantum_tape.c | 32 ++++++++++++++++---------------- 3 files changed, 44 insertions(+), 44 deletions(-) diff --git a/src/tape_drivers/hp_tape.c b/src/tape_drivers/hp_tape.c index 48490f0a..7d8202bb 100644 --- a/src/tape_drivers/hp_tape.c +++ b/src/tape_drivers/hp_tape.c @@ -347,22 +347,22 @@ static struct _timeout_tape timeout_lto9_hh[] = { }; static struct _timeout_tape timeout_ltoA_hh[] = { - { ERASE, 205440 }, - { FORMAT_MEDIUM, 3180 }, - { LOAD_UNLOAD, 780 }, - { LOCATE10, 104880 }, - { LOCATE16, 104880 }, - { READ, 2340 }, - { READ_BUFFER, 480 }, - { REWIND, 600 }, - { SEND_DIAGNOSTIC, 1980 }, - { SET_CAPACITY, 780 }, - { SPACE6, 2940 }, - { SPACE16, 2940 }, - { VERIFY, 104880 }, - { WRITE, 1500 }, - { WRITE_BUFFER, 540 }, - { WRITE_FILEMARKS6, 1620 }, + { ERASE, 196370 }, + { FORMAT_MEDIUM, 4240 }, + { LOAD_UNLOAD, 1960 }, + { LOCATE10, 3940 }, + { LOCATE16, 3940 }, + { READ, 3340 }, + { READ_BUFFER, 580 }, + { REWIND, 700 }, + { SEND_DIAGNOSTIC, 3040 }, + { SET_CAPACITY, 1960 }, + { SPACE6, 3940 }, + { SPACE16, 3940 }, + { VERIFY, 73300 }, + { WRITE, 2560 }, + { WRITE_BUFFER, 640 }, + { WRITE_FILEMARKS6, 2680 }, {-1, -1} }; diff --git a/src/tape_drivers/ibm_tape.c b/src/tape_drivers/ibm_tape.c index 88d472d3..5e8e2bcb 100644 --- a/src/tape_drivers/ibm_tape.c +++ b/src/tape_drivers/ibm_tape.c @@ -732,22 +732,22 @@ static struct _timeout_tape timeout_lto9_hh[] = { }; static struct _timeout_tape timeout_ltoA_hh[] = { - { ERASE, 166370 }, - { FORMAT_MEDIUM, 3240 }, - { LOAD_UNLOAD, 960 }, + { ERASE, 196370 }, + { FORMAT_MEDIUM, 4240 }, + { LOAD_UNLOAD, 1960 }, { LOCATE10, 3940 }, { LOCATE16, 3940 }, - { READ, 2340 }, - { READ_BUFFER, 480 }, - { REWIND, 600 }, - { SEND_DIAGNOSTIC, 2040 }, - { SET_CAPACITY, 960 }, + { READ, 3340 }, + { READ_BUFFER, 580 }, + { REWIND, 700 }, + { SEND_DIAGNOSTIC, 3040 }, + { SET_CAPACITY, 1960 }, { SPACE6, 3940 }, { SPACE16, 3940 }, - { VERIFY, 63300 }, - { WRITE, 1560 }, - { WRITE_BUFFER, 540 }, - { WRITE_FILEMARKS6, 1680 }, + { VERIFY, 73300 }, + { WRITE, 2560 }, + { WRITE_BUFFER, 640 }, + { WRITE_FILEMARKS6, 2680 }, {-1, -1} }; diff --git a/src/tape_drivers/quantum_tape.c b/src/tape_drivers/quantum_tape.c index 4d33671f..8c61fa21 100644 --- a/src/tape_drivers/quantum_tape.c +++ b/src/tape_drivers/quantum_tape.c @@ -247,22 +247,22 @@ static struct _timeout_tape timeout_lto9_hh[] = { }; static struct _timeout_tape timeout_ltoA_hh[] = { - { ERASE, 205440 }, - { FORMAT_MEDIUM, 3180 }, - { LOAD_UNLOAD, 780 }, - { LOCATE10, 104880 }, - { LOCATE16, 104880 }, - { READ, 2340 }, - { READ_BUFFER, 480 }, - { REWIND, 600 }, - { SEND_DIAGNOSTIC, 1980 }, - { SET_CAPACITY, 780 }, - { SPACE6, 2940 }, - { SPACE16, 2940 }, - { VERIFY, 104880 }, - { WRITE, 1500 }, - { WRITE_BUFFER, 540 }, - { WRITE_FILEMARKS6, 1620 }, + { ERASE, 196370 }, + { FORMAT_MEDIUM, 4240 }, + { LOAD_UNLOAD, 1960 }, + { LOCATE10, 3940 }, + { LOCATE16, 3940 }, + { READ, 3340 }, + { READ_BUFFER, 580 }, + { REWIND, 700 }, + { SEND_DIAGNOSTIC, 3040 }, + { SET_CAPACITY, 1960 }, + { SPACE6, 3940 }, + { SPACE16, 3940 }, + { VERIFY, 73300 }, + { WRITE, 2560 }, + { WRITE_BUFFER, 640 }, + { WRITE_FILEMARKS6, 2680 }, {-1, -1} }; From 5e8fbc851a23ea23af61c55fe56229410291f7aa Mon Sep 17 00:00:00 2001 From: josue-morfin Date: Mon, 21 Apr 2025 17:35:43 -0600 Subject: [PATCH 07/11] fix timeout LTOA --- src/tape_drivers/hp_tape.c | 58 ++++++++++++++++----------------- src/tape_drivers/ibm_tape.c | 24 +++++++------- src/tape_drivers/quantum_tape.c | 24 +++++++------- 3 files changed, 53 insertions(+), 53 deletions(-) diff --git a/src/tape_drivers/hp_tape.c b/src/tape_drivers/hp_tape.c index 7d8202bb..b0f0dbf9 100644 --- a/src/tape_drivers/hp_tape.c +++ b/src/tape_drivers/hp_tape.c @@ -230,7 +230,7 @@ static struct _timeout_tape timeout_ltoA[] = { { ERASE, 16320 }, { FORMAT_MEDIUM, 3180 }, { LOAD_UNLOAD, 780 }, - { LOCATE10, 2940 }, + { LOCATE10, 2940 }, { LOCATE16, 2940 }, { READ, 2340 }, { READ_BUFFER, 480 }, @@ -327,42 +327,42 @@ static struct _timeout_tape timeout_lto8_hh[] = { }; static struct _timeout_tape timeout_lto9_hh[] = { - { ERASE, 53040 }, - { FORMAT_MEDIUM, 3000 }, - { LOAD_UNLOAD, 840 }, - { LOCATE10, 2940 }, - { LOCATE16, 2940 }, - { READ, 2340 }, - { READ_BUFFER, 480 }, - { REWIND, 660 }, - { SEND_DIAGNOSTIC, 1980 }, - { SET_CAPACITY, 780 }, - { SPACE6, 2940 }, - { SPACE16, 2940 }, - { VERIFY, 53040 }, - { WRITE, 1680 }, - { WRITE_BUFFER, 540 }, - { WRITE_FILEMARKS6, 1680 }, + { ERASE, 166370 }, + { FORMAT_MEDIUM, 3240 }, + { LOAD_UNLOAD, 960 }, + { LOCATE10, 2940 }, + { LOCATE16, 2940 }, + { READ, 2340 }, + { READ_BUFFER, 480 }, + { REWIND, 600 }, + { SEND_DIAGNOSTIC, 2040 }, + { SET_CAPACITY, 960 }, + { SPACE6, 2940 }, + { SPACE16, 2940 }, + { VERIFY, 63300 }, + { WRITE, 1560 }, + { WRITE_BUFFER, 540 }, + { WRITE_FILEMARKS6, 1680 }, {-1, -1} }; static struct _timeout_tape timeout_ltoA_hh[] = { - { ERASE, 196370 }, - { FORMAT_MEDIUM, 4240 }, - { LOAD_UNLOAD, 1960 }, + { ERASE, 166370 }, + { FORMAT_MEDIUM, 3240 }, + { LOAD_UNLOAD, 960 }, { LOCATE10, 3940 }, { LOCATE16, 3940 }, - { READ, 3340 }, - { READ_BUFFER, 580 }, - { REWIND, 700 }, - { SEND_DIAGNOSTIC, 3040 }, - { SET_CAPACITY, 1960 }, + { READ, 2340 }, + { READ_BUFFER, 480 }, + { REWIND, 600 }, + { SEND_DIAGNOSTIC, 2040 }, + { SET_CAPACITY, 960 }, { SPACE6, 3940 }, { SPACE16, 3940 }, - { VERIFY, 73300 }, - { WRITE, 2560 }, - { WRITE_BUFFER, 640 }, - { WRITE_FILEMARKS6, 2680 }, + { VERIFY, 63300 }, + { WRITE, 1560 }, + { WRITE_BUFFER, 540 }, + { WRITE_FILEMARKS6, 1680 }, {-1, -1} }; diff --git a/src/tape_drivers/ibm_tape.c b/src/tape_drivers/ibm_tape.c index 5e8e2bcb..88d472d3 100644 --- a/src/tape_drivers/ibm_tape.c +++ b/src/tape_drivers/ibm_tape.c @@ -732,22 +732,22 @@ static struct _timeout_tape timeout_lto9_hh[] = { }; static struct _timeout_tape timeout_ltoA_hh[] = { - { ERASE, 196370 }, - { FORMAT_MEDIUM, 4240 }, - { LOAD_UNLOAD, 1960 }, + { ERASE, 166370 }, + { FORMAT_MEDIUM, 3240 }, + { LOAD_UNLOAD, 960 }, { LOCATE10, 3940 }, { LOCATE16, 3940 }, - { READ, 3340 }, - { READ_BUFFER, 580 }, - { REWIND, 700 }, - { SEND_DIAGNOSTIC, 3040 }, - { SET_CAPACITY, 1960 }, + { READ, 2340 }, + { READ_BUFFER, 480 }, + { REWIND, 600 }, + { SEND_DIAGNOSTIC, 2040 }, + { SET_CAPACITY, 960 }, { SPACE6, 3940 }, { SPACE16, 3940 }, - { VERIFY, 73300 }, - { WRITE, 2560 }, - { WRITE_BUFFER, 640 }, - { WRITE_FILEMARKS6, 2680 }, + { VERIFY, 63300 }, + { WRITE, 1560 }, + { WRITE_BUFFER, 540 }, + { WRITE_FILEMARKS6, 1680 }, {-1, -1} }; diff --git a/src/tape_drivers/quantum_tape.c b/src/tape_drivers/quantum_tape.c index 8c61fa21..a66fabb1 100644 --- a/src/tape_drivers/quantum_tape.c +++ b/src/tape_drivers/quantum_tape.c @@ -247,22 +247,22 @@ static struct _timeout_tape timeout_lto9_hh[] = { }; static struct _timeout_tape timeout_ltoA_hh[] = { - { ERASE, 196370 }, - { FORMAT_MEDIUM, 4240 }, - { LOAD_UNLOAD, 1960 }, + { ERASE, 166370 }, + { FORMAT_MEDIUM, 3240 }, + { LOAD_UNLOAD, 960 }, { LOCATE10, 3940 }, { LOCATE16, 3940 }, - { READ, 3340 }, - { READ_BUFFER, 580 }, - { REWIND, 700 }, - { SEND_DIAGNOSTIC, 3040 }, - { SET_CAPACITY, 1960 }, + { READ, 2340 }, + { READ_BUFFER, 480 }, + { REWIND, 600 }, + { SEND_DIAGNOSTIC, 2040 }, + { SET_CAPACITY, 960 }, { SPACE6, 3940 }, { SPACE16, 3940 }, - { VERIFY, 73300 }, - { WRITE, 2560 }, - { WRITE_BUFFER, 640 }, - { WRITE_FILEMARKS6, 2680 }, + { VERIFY, 63300 }, + { WRITE, 1560 }, + { WRITE_BUFFER, 540 }, + { WRITE_FILEMARKS6, 1680 }, {-1, -1} }; From ed77f5172b297090b3358b9cb601426c4f2bcbc2 Mon Sep 17 00:00:00 2001 From: josue-morfin Date: Tue, 22 Apr 2025 16:23:47 -0600 Subject: [PATCH 08/11] fix drive density --- src/tape_drivers/ibm_tape.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/tape_drivers/ibm_tape.c b/src/tape_drivers/ibm_tape.c index 88d472d3..3c1e06c1 100644 --- a/src/tape_drivers/ibm_tape.c +++ b/src/tape_drivers/ibm_tape.c @@ -635,15 +635,15 @@ static struct _timeout_tape timeout_lto5_hh[] = { { ERASE, 19200 }, { FORMAT_MEDIUM, 1980 }, { LOAD_UNLOAD, 1020 }, - { LOCATE10, 2700 }, - { LOCATE16, 2700 }, + { LOCATE10, 2940 }, + { LOCATE16, 2940 }, { READ, 1920 }, { READ_BUFFER, 660 }, { REWIND, 780 }, { SEND_DIAGNOSTIC, 3120 }, { SET_CAPACITY, 960 }, - { SPACE6, 2700 }, - { SPACE16, 2700 }, + { SPACE6, 2940 }, + { SPACE16, 2940 }, { VERIFY, 19980 }, { WRITE, 1920 }, { WRITE_BUFFER, 720 }, From 136a2a1271691bf4b64ed3509e968ae3e8ef65d3 Mon Sep 17 00:00:00 2001 From: josue-morfin Date: Tue, 22 Apr 2025 16:26:23 -0600 Subject: [PATCH 09/11] fix drive density --- src/tape_drivers/ibm_tape.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/tape_drivers/ibm_tape.c b/src/tape_drivers/ibm_tape.c index 3c1e06c1..88d472d3 100644 --- a/src/tape_drivers/ibm_tape.c +++ b/src/tape_drivers/ibm_tape.c @@ -635,15 +635,15 @@ static struct _timeout_tape timeout_lto5_hh[] = { { ERASE, 19200 }, { FORMAT_MEDIUM, 1980 }, { LOAD_UNLOAD, 1020 }, - { LOCATE10, 2940 }, - { LOCATE16, 2940 }, + { LOCATE10, 2700 }, + { LOCATE16, 2700 }, { READ, 1920 }, { READ_BUFFER, 660 }, { REWIND, 780 }, { SEND_DIAGNOSTIC, 3120 }, { SET_CAPACITY, 960 }, - { SPACE6, 2940 }, - { SPACE16, 2940 }, + { SPACE6, 2700 }, + { SPACE16, 2700 }, { VERIFY, 19980 }, { WRITE, 1920 }, { WRITE_BUFFER, 720 }, From 5e889d3d0dfd00dd9ae5230fe300505808dc533b Mon Sep 17 00:00:00 2001 From: josue-morfin Date: Tue, 22 Apr 2025 16:59:18 -0600 Subject: [PATCH 10/11] fix drive density --- src/tape_drivers/hp_tape.c | 32 ++++++++++++++++---------------- src/tape_drivers/ibm_tape.c | 8 ++++---- 2 files changed, 20 insertions(+), 20 deletions(-) diff --git a/src/tape_drivers/hp_tape.c b/src/tape_drivers/hp_tape.c index b0f0dbf9..08abcbc8 100644 --- a/src/tape_drivers/hp_tape.c +++ b/src/tape_drivers/hp_tape.c @@ -327,22 +327,22 @@ static struct _timeout_tape timeout_lto8_hh[] = { }; static struct _timeout_tape timeout_lto9_hh[] = { - { ERASE, 166370 }, - { FORMAT_MEDIUM, 3240 }, - { LOAD_UNLOAD, 960 }, - { LOCATE10, 2940 }, - { LOCATE16, 2940 }, - { READ, 2340 }, - { READ_BUFFER, 480 }, - { REWIND, 600 }, - { SEND_DIAGNOSTIC, 2040 }, - { SET_CAPACITY, 960 }, - { SPACE6, 2940 }, - { SPACE16, 2940 }, - { VERIFY, 63300 }, - { WRITE, 1560 }, - { WRITE_BUFFER, 540 }, - { WRITE_FILEMARKS6, 1680 }, + { ERASE, 53040 }, + { FORMAT_MEDIUM, 3000 }, + { LOAD_UNLOAD, 840 }, + { LOCATE10, 2940 }, + { LOCATE16, 2940 }, + { READ, 2340 }, + { READ_BUFFER, 480 }, + { REWIND, 660 }, + { SEND_DIAGNOSTIC, 1980 }, + { SET_CAPACITY, 780 }, + { SPACE6, 2940 }, + { SPACE16, 2940 }, + { VERIFY, 53040 }, + { WRITE, 1680 }, + { WRITE_BUFFER, 540 }, + { WRITE_FILEMARKS6, 1680 }, {-1, -1} }; diff --git a/src/tape_drivers/ibm_tape.c b/src/tape_drivers/ibm_tape.c index 88d472d3..834abbd3 100644 --- a/src/tape_drivers/ibm_tape.c +++ b/src/tape_drivers/ibm_tape.c @@ -715,15 +715,15 @@ static struct _timeout_tape timeout_lto9_hh[] = { { ERASE, 166370 }, { FORMAT_MEDIUM, 3240 }, { LOAD_UNLOAD, 960 }, - { LOCATE10, 3940 }, - { LOCATE16, 3940 }, + { LOCATE10, 2940 }, + { LOCATE16, 2940 }, { READ, 2340 }, { READ_BUFFER, 480 }, { REWIND, 600 }, { SEND_DIAGNOSTIC, 2040 }, { SET_CAPACITY, 960 }, - { SPACE6, 3940 }, - { SPACE16, 3940 }, + { SPACE6, 2940 }, + { SPACE16, 2940 }, { VERIFY, 63300 }, { WRITE, 1560 }, { WRITE_BUFFER, 540 }, From 04277088e7d1c83b9611d5268917f7ff81b45a82 Mon Sep 17 00:00:00 2001 From: josue-morfin Date: Wed, 23 Apr 2025 10:51:17 -0600 Subject: [PATCH 11/11] add identation --- src/tape_drivers/hp_tape.c | 36 ++++++++++++++++++------------------ src/tape_drivers/ibm_tape.c | 34 +++++++++++++++++----------------- 2 files changed, 35 insertions(+), 35 deletions(-) diff --git a/src/tape_drivers/hp_tape.c b/src/tape_drivers/hp_tape.c index 08abcbc8..6c9835f7 100644 --- a/src/tape_drivers/hp_tape.c +++ b/src/tape_drivers/hp_tape.c @@ -226,24 +226,24 @@ static struct _timeout_tape timeout_lto9[] = { {-1, -1} }; -static struct _timeout_tape timeout_ltoA[] = { - { ERASE, 16320 }, - { FORMAT_MEDIUM, 3180 }, - { LOAD_UNLOAD, 780 }, - { LOCATE10, 2940 }, - { LOCATE16, 2940 }, - { READ, 2340 }, - { READ_BUFFER, 480 }, - { REWIND, 600 }, - { SEND_DIAGNOSTIC, 1980 }, - { SET_CAPACITY, 780 }, - { SPACE6, 2940 }, - { SPACE16, 2940 }, - { VERIFY, 104880 }, - { WRITE, 1500 }, - { WRITE_BUFFER, 540 }, - { WRITE_FILEMARKS6, 1620 }, - {-1, -1} +static struct _timeout_tape timeout_ltoA[] = { + { ERASE, 16320 }, + { FORMAT_MEDIUM, 3180 }, + { LOAD_UNLOAD, 780 }, + { LOCATE10, 2940 }, + { LOCATE16, 2940 }, + { READ, 2340 }, + { READ_BUFFER, 480 }, + { REWIND, 600 }, + { SEND_DIAGNOSTIC, 1980 }, + { SET_CAPACITY, 780 }, + { SPACE6, 2940 }, + { SPACE16, 2940 }, + { VERIFY, 104880 }, + { WRITE, 1500 }, + { WRITE_BUFFER, 540 }, + { WRITE_FILEMARKS6, 1620 }, + {-1, -1} }; static struct _timeout_tape timeout_lto5_hh[] = { diff --git a/src/tape_drivers/ibm_tape.c b/src/tape_drivers/ibm_tape.c index 834abbd3..52c29261 100644 --- a/src/tape_drivers/ibm_tape.c +++ b/src/tape_drivers/ibm_tape.c @@ -612,23 +612,23 @@ static struct _timeout_tape timeout_lto9[] = { }; static struct _timeout_tape timeout_ltoA[] = { - { ERASE, 16320 }, - { FORMAT_MEDIUM, 3180 }, - { LOAD_UNLOAD, 780 }, - { LOCATE10, 2940 }, - { LOCATE16, 2940 }, - { READ, 2340 }, - { READ_BUFFER, 480 }, - { REWIND, 600 }, - { SEND_DIAGNOSTIC, 1980 }, - { SET_CAPACITY, 780 }, - { SPACE6, 2940 }, - { SPACE16, 2940 }, - { VERIFY, 104880 }, - { WRITE, 1500 }, - { WRITE_BUFFER, 540 }, - { WRITE_FILEMARKS6, 1620 }, - {-1, -1} + { ERASE, 16320 }, + { FORMAT_MEDIUM, 3180 }, + { LOAD_UNLOAD, 780 }, + { LOCATE10, 2940 }, + { LOCATE16, 2940 }, + { READ, 2340 }, + { READ_BUFFER, 480 }, + { REWIND, 600 }, + { SEND_DIAGNOSTIC, 1980 }, + { SET_CAPACITY, 780 }, + { SPACE6, 2940 }, + { SPACE16, 2940 }, + { VERIFY, 104880 }, + { WRITE, 1500 }, + { WRITE_BUFFER, 540 }, + { WRITE_FILEMARKS6, 1620 }, + {-1, -1} }; static struct _timeout_tape timeout_lto5_hh[] = {