Skip to content

Fix: memory leaks#574

Open
Piloalucard wants to merge 3 commits intoLinearTapeFileSystem:v2.4.8-windows-supportfrom
XV02:update/memory-leaks
Open

Fix: memory leaks#574
Piloalucard wants to merge 3 commits intoLinearTapeFileSystem:v2.4.8-windows-supportfrom
XV02:update/memory-leaks

Conversation

@Piloalucard
Copy link
Member

@Piloalucard Piloalucard commented Mar 4, 2026

Summary of changes

This pull request includes following changes or fixes.

  • Fixes memory leak on src/libltfs/fs.c
  • Fixes memory leak on src/libltfs/xml.h by re-defining declare_tracking_arrays implementation. If called and no optional tags are required will use declare_tracking_arrays_no_opt. If called and no tags are required will use declare_tracking_arrays_no_tags
  • Fixes tape_set_attribute_to_cm memory buffer wrong size.
  • Fixes tape_get_attribute_from_cm memory buffer wrong size
  • Deletes arch_strcpy_limited from src/libltfs/arch/ltfs_arch_ops.h
  • Ensures usages for Windows/Linux implementation of arch_strcpy and arch_strncpy
  • Ensures checks of strdup returning valid pointer, return error otherwise.

Type of change

Please delete items that are not relevant.

  • Refactoring
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)

Checklist:

  • My code follows the style guidelines of this project
  • I have performed a self-review of my own code
  • I have commented my code, particularly in hard-to-understand areas
  • I have made corresponding changes to the documentation
  • My changes generate no new warnings
  • I have confirmed my fix is effective or that my feature works

@Piloalucard
Copy link
Member Author

Linux tests:

============================================================
 IBM Storage Archive SDE for Linux - Comprehensive Test Suite
 Drive Device  : /dev/sg7
 Mount Point   : /root/tavo/ya
 Tape Path     : /root/tavo/ya/
 Test Mode     : standard
 Backend Type  : Physical Tape
============================================================

============================================================
 PHASE 1 - PRE-MOUNT CHECKS
============================================================

[TEST] CHECK VERSION (mkltfs)
------------------------------------------------------------
[CMD] sudo mkltfs --version
mkltfs version 2.4.5.1 (Prelim).
LTFS Format Specification version 2.4.0.

[TEST] CHECK VERSION (ltfs)
------------------------------------------------------------
[CMD] sudo ltfs --version
LTFS version 2.4.5.1 (Prelim).
LTFS Format Specification version 2.4.0.

[TEST] CHECK VERSION (ltfsck)
------------------------------------------------------------
[CMD] sudo ltfsck --version
ltfsck version 2.4.5.1 (Prelim).
LTFS Format Specification version 2.4.0.

[TEST] LIST DEVICES
------------------------------------------------------------
[CMD] sudo ltfs -o device_list
25b31d LTFS14000I LTFS starting, LTFS version 2.4.5.1 (Prelim), log level 2.
25b31d LTFS14058I LTFS Format Specification version 2.4.0.
25b31d LTFS14104I Launched by "ltfs -o device_list".
25b31d LTFS14105I This binary is built for Linux (x86_64).
25b31d LTFS14106I GCC version is 8.5.0 20210514 (Red Hat 8.5.0-26).
25b31d LTFS17087I Kernel version: Linux version 4.18.0-553.107.1.el8_10.x86_64 (mockbuild@x86-64-03.build.eng.rdu2.redhat.com) (gcc version 8.5.0 20210514 (Red Hat 8.5.0-28) (GCC)) #1 SMP Tue Feb 17 05:52:05 EST 2026 i386.
25b31d LTFS17089I Distribution: NAME="Red Hat Enterprise Linux".
25b31d LTFS17089I Distribution: Red Hat Enterprise Linux release 8.10 (Ootpa).
25b31d LTFS17089I Distribution: Red Hat Enterprise Linux release 8.10 (Ootpa).
25b31d LTFS17085I Plugin: Loading "sg" tape backend.
Tape Device list:.
Device Name = /dev/sg7 (8.0.1.0), Vendor ID = IBM     , Product ID = ULT3580-HH9     , Serial Number = 1013002519, Product Name =[ULT3580-HH9].
[WARN] ltfsck/ltfs -o device_list returned exit code 1 (treated as non-fatal).

[TEST] CHECK DEVICE
------------------------------------------------------------
[INFO] Device exists: /dev/sg7
[CMD] ls -l /dev/sg7
crw-rw----. 1 root tape 21, 7 Mar  2 19:24 /dev/sg7

============================================================
 PHASE 2 - MKLTFS FORMAT OPERATIONS
============================================================

[TEST] FORMAT BASIC
------------------------------------------------------------
[CMD] sudo mkltfs -d /dev/sg7 -f
LTFS15000I Starting mkltfs, LTFS version 2.4.5.1 (Prelim), log level 2.
LTFS15041I Launched by "mkltfs -d /dev/sg7 -f".
LTFS15042I This binary is built for Linux (x86_64).
LTFS15043I GCC version is 8.5.0 20210514 (Red Hat 8.5.0-26).
LTFS17087I Kernel version: Linux version 4.18.0-553.107.1.el8_10.x86_64 (mockbuild@x86-64-03.build.eng.rdu2.redhat.com) (gcc version 8.5.0 20210514 (Red Hat 8.5.0-28) (GCC)) #1 SMP Tue Feb 17 05:52:05 EST 2026 i386.
LTFS17089I Distribution: NAME="Red Hat Enterprise Linux".
LTFS17089I Distribution: Red Hat Enterprise Linux release 8.10 (Ootpa).
LTFS17089I Distribution: Red Hat Enterprise Linux release 8.10 (Ootpa).
LTFS15003I Formatting device '/dev/sg7'.
LTFS15004I LTFS volume blocksize: 524288.
LTFS15005I Index partition placement policy: None.

LTFS11337I Update index-dirty flag (1) - NO_BARCODE (0x0x559e6a9f36f0).
LTFS17085I Plugin: Loading "sg" tape backend.
LTFS30209I Opening a device through sg-ibmtape driver (/dev/sg7).
LTFS30250I Opened the SCSI tape device 8.0.1.0 (/dev/sg7).
LTFS30207I Vendor ID is IBM     .
LTFS30208I Product ID is ULT3580-HH9     .
LTFS30214I Firmware revision is Q9E9.
LTFS30215I Drive serial is 1013002519.
LTFS30285I The reserved buffer size of /dev/sg7 is 1048576.
LTFS30294I Setting up timeout values from RSOC.
LTFS17160I Maximum device block size is 1048576.
LTFS11330I Loading cartridge.
LTFS30252I Logical block protection is disabled.
LTFS11332I Load successful.
LTFS17157I Changing the drive setting to write-anywhere mode.
LTFS15049I Checking the medium (load).
LTFS30252I Logical block protection is disabled.
LTFS15010I Creating data partition b on SCSI partition 1.
LTFS15011I Creating index partition a on SCSI partition 0.
LTFS17165I Resetting the medium's capacity proportion.
LTFS11097I Partitioning the medium.
LTFS30263I MODESELECT returns Mode Parameters Rounded (-20101) /dev/sg7.
LTFS11100I Writing label to partition b.
LTFS11278I Writing index to partition b.
LTFS30205I READ_ATTR (0x8c) returns -20501.
LTFS30263I READ_ATTR returns Invalid Field in CDB (-20501) /dev/sg7.
LTFS30233I Cannot read attribute (-20501).
LTFS11336I The attribute does not exist. Ignore the expected error.
LTFS17235I Writing index of NO_BARCODE to b (Reason: Format, 0 files) 1013002519.
LTFS17236I Wrote index of NO_BARCODE (Gen = 1, Part = b, Pos = 5, 1013002519).
LTFS11337I Update index-dirty flag (0) - NO_BARCODE (0x0x559e6a9f36f0).
LTFS11100I Writing label to partition a.
LTFS11278I Writing index to partition a.
LTFS30205I READ_ATTR (0x8c) returns -20501.
LTFS30263I READ_ATTR returns Invalid Field in CDB (-20501) /dev/sg7.
LTFS30233I Cannot read attribute (-20501).
LTFS11336I The attribute does not exist. Ignore the expected error.
LTFS17235I Writing index of NO_BARCODE to a (Reason: Format, 0 files) 1013002519.
LTFS17236I Wrote index of NO_BARCODE (Gen = 1, Part = a, Pos = 5, 1013002519).
LTFS15013I Volume UUID is: 4b06d9ed-6b05-4488-a8d1-d27dfb63aff7.

LTFS15019I Volume capacity is 17550 GB.
LTFS30252I Logical block protection is disabled.
LTFS15024I Medium formatted successfully.

[TEST] FORMAT WITH SERIAL AND VOLUME NAME
------------------------------------------------------------
[CMD] sudo mkltfs -d /dev/sg7 -f -s SRLTST -n LBLTST
LTFS15000I Starting mkltfs, LTFS version 2.4.5.1 (Prelim), log level 2.
LTFS15041I Launched by "mkltfs -d /dev/sg7 -f -s SRLTST -n LBLTST".
LTFS15042I This binary is built for Linux (x86_64).
LTFS15043I GCC version is 8.5.0 20210514 (Red Hat 8.5.0-26).
LTFS17087I Kernel version: Linux version 4.18.0-553.107.1.el8_10.x86_64 (mockbuild@x86-64-03.build.eng.rdu2.redhat.com) (gcc version 8.5.0 20210514 (Red Hat 8.5.0-28) (GCC)) #1 SMP Tue Feb 17 05:52:05 EST 2026 i386.
LTFS17089I Distribution: NAME="Red Hat Enterprise Linux".
LTFS17089I Distribution: Red Hat Enterprise Linux release 8.10 (Ootpa).
LTFS17089I Distribution: Red Hat Enterprise Linux release 8.10 (Ootpa).
LTFS15003I Formatting device '/dev/sg7'.
LTFS15004I LTFS volume blocksize: 524288.
LTFS15005I Index partition placement policy: None.

LTFS11337I Update index-dirty flag (1) - SRLTST (0x0x55de786d97f0).
LTFS17085I Plugin: Loading "sg" tape backend.
LTFS30209I Opening a device through sg-ibmtape driver (/dev/sg7).
LTFS30250I Opened the SCSI tape device 8.0.1.0 (/dev/sg7).
LTFS30207I Vendor ID is IBM     .
LTFS30208I Product ID is ULT3580-HH9     .
LTFS30214I Firmware revision is Q9E9.
LTFS30215I Drive serial is 1013002519.
LTFS30285I The reserved buffer size of /dev/sg7 is 1048576.
LTFS30294I Setting up timeout values from RSOC.
LTFS17160I Maximum device block size is 1048576.
LTFS11330I Loading cartridge.
LTFS30252I Logical block protection is disabled.
LTFS11332I Load successful.
LTFS17157I Changing the drive setting to write-anywhere mode.
LTFS15049I Checking the medium (load).
LTFS30252I Logical block protection is disabled.
LTFS15010I Creating data partition b on SCSI partition 1.
LTFS15011I Creating index partition a on SCSI partition 0.
LTFS17165I Resetting the medium's capacity proportion.
LTFS11097I Partitioning the medium.
LTFS30263I MODESELECT returns Mode Parameters Rounded (-20101) /dev/sg7.
LTFS11100I Writing label to partition b.
LTFS11278I Writing index to partition b.
LTFS30205I READ_ATTR (0x8c) returns -20501.
LTFS30263I READ_ATTR returns Invalid Field in CDB (-20501) /dev/sg7.
LTFS30233I Cannot read attribute (-20501).
LTFS11336I The attribute does not exist. Ignore the expected error.
LTFS17235I Writing index of SRLTST to b (Reason: Format, 0 files) 1013002519.
LTFS17236I Wrote index of SRLTST (Gen = 1, Part = b, Pos = 5, 1013002519).
LTFS11337I Update index-dirty flag (0) - SRLTST (0x0x55de786d97f0).
LTFS11100I Writing label to partition a.
LTFS11278I Writing index to partition a.
LTFS30205I READ_ATTR (0x8c) returns -20501.
LTFS30263I READ_ATTR returns Invalid Field in CDB (-20501) /dev/sg7.
LTFS30233I Cannot read attribute (-20501).
LTFS11336I The attribute does not exist. Ignore the expected error.
LTFS17235I Writing index of SRLTST to a (Reason: Format, 0 files) 1013002519.
LTFS30263I READ_ATTR returns Command TIMEOUT (-21102) /dev/sg7.
LTFS30262I Forcing drive dump.
LTFS30253I Saving drive dump to /tmp/ltfs_1013002519_2026_0304_175033_f.dmp.
LTFS30233I Cannot read attribute (-21102).
LTFS12056W Cannot get Volume Change Reference parameter: read attribute failed (-21102).
LTFS17236I Wrote index of SRLTST (Gen = 1, Part = a, Pos = 5, 1013002519).
LTFS15013I Volume UUID is: 245fc839-ec1a-43ba-97a4-0fa714fb108e.

LTFS15019I Volume capacity is 17550 GB.
LTFS30252I Logical block protection is disabled.
LTFS15024I Medium formatted successfully.

[TEST] FORMAT WITH RULES (size)
------------------------------------------------------------
[CMD] sudo mkltfs -d /dev/sg7 -f -r size=1M
LTFS15000I Starting mkltfs, LTFS version 2.4.5.1 (Prelim), log level 2.
LTFS15041I Launched by "mkltfs -d /dev/sg7 -f -r size=1M".
LTFS15042I This binary is built for Linux (x86_64).
LTFS15043I GCC version is 8.5.0 20210514 (Red Hat 8.5.0-26).
LTFS17087I Kernel version: Linux version 4.18.0-553.107.1.el8_10.x86_64 (mockbuild@x86-64-03.build.eng.rdu2.redhat.com) (gcc version 8.5.0 20210514 (Red Hat 8.5.0-28) (GCC)) #1 SMP Tue Feb 17 05:52:05 EST 2026 i386.
LTFS17089I Distribution: NAME="Red Hat Enterprise Linux".
LTFS17089I Distribution: Red Hat Enterprise Linux release 8.10 (Ootpa).
LTFS17089I Distribution: Red Hat Enterprise Linux release 8.10 (Ootpa).
LTFS15003I Formatting device '/dev/sg7'.
LTFS15004I LTFS volume blocksize: 524288.
LTFS15005I Index partition placement policy: size=1M.

LTFS11337I Update index-dirty flag (1) - NO_BARCODE (0x0x55781c593770).
LTFS17085I Plugin: Loading "sg" tape backend.
LTFS30209I Opening a device through sg-ibmtape driver (/dev/sg7).
LTFS30250I Opened the SCSI tape device 8.0.1.0 (/dev/sg7).
LTFS30207I Vendor ID is IBM     .
LTFS30208I Product ID is ULT3580-HH9     .
LTFS30214I Firmware revision is Q9E9.
LTFS30215I Drive serial is 1013002519.
LTFS30285I The reserved buffer size of /dev/sg7 is 1048576.
LTFS30294I Setting up timeout values from RSOC.
LTFS17160I Maximum device block size is 1048576.
LTFS11330I Loading cartridge.
LTFS30252I Logical block protection is disabled.
LTFS11332I Load successful.
LTFS17157I Changing the drive setting to write-anywhere mode.
LTFS15049I Checking the medium (load).
LTFS30252I Logical block protection is disabled.
LTFS15010I Creating data partition b on SCSI partition 1.
LTFS15011I Creating index partition a on SCSI partition 0.
LTFS17165I Resetting the medium's capacity proportion.
LTFS11097I Partitioning the medium.
LTFS30263I MODESELECT returns Mode Parameters Rounded (-20101) /dev/sg7.
LTFS11100I Writing label to partition b.
LTFS11278I Writing index to partition b.
LTFS30205I READ_ATTR (0x8c) returns -20501.
LTFS30263I READ_ATTR returns Invalid Field in CDB (-20501) /dev/sg7.
LTFS30233I Cannot read attribute (-20501).
LTFS11336I The attribute does not exist. Ignore the expected error.
LTFS17235I Writing index of NO_BARCODE to b (Reason: Format, 0 files) 1013002519.
LTFS17236I Wrote index of NO_BARCODE (Gen = 1, Part = b, Pos = 5, 1013002519).
LTFS11337I Update index-dirty flag (0) - NO_BARCODE (0x0x55781c593770).
LTFS11100I Writing label to partition a.
LTFS11278I Writing index to partition a.
LTFS30205I READ_ATTR (0x8c) returns -20501.
LTFS30263I READ_ATTR returns Invalid Field in CDB (-20501) /dev/sg7.
LTFS30233I Cannot read attribute (-20501).
LTFS11336I The attribute does not exist. Ignore the expected error.
LTFS17235I Writing index of NO_BARCODE to a (Reason: Format, 0 files) 1013002519.
LTFS17236I Wrote index of NO_BARCODE (Gen = 1, Part = a, Pos = 5, 1013002519).
LTFS15013I Volume UUID is: 5db6d35e-ef4d-4a0e-a5b8-e3719f279d8a.

LTFS15019I Volume capacity is 17550 GB.
LTFS30252I Logical block protection is disabled.
LTFS15024I Medium formatted successfully.

[TEST] FORMAT WITH RULES (size and name pattern)
------------------------------------------------------------
[CMD] sudo mkltfs -d /dev/sg7 -f -r size=1M/name=*.txt
LTFS15000I Starting mkltfs, LTFS version 2.4.5.1 (Prelim), log level 2.
LTFS15041I Launched by "mkltfs -d /dev/sg7 -f -r size=1M/name=*.txt".
LTFS15042I This binary is built for Linux (x86_64).
LTFS15043I GCC version is 8.5.0 20210514 (Red Hat 8.5.0-26).
LTFS17087I Kernel version: Linux version 4.18.0-553.107.1.el8_10.x86_64 (mockbuild@x86-64-03.build.eng.rdu2.redhat.com) (gcc version 8.5.0 20210514 (Red Hat 8.5.0-28) (GCC)) #1 SMP Tue Feb 17 05:52:05 EST 2026 i386.
LTFS17089I Distribution: NAME="Red Hat Enterprise Linux".
LTFS17089I Distribution: Red Hat Enterprise Linux release 8.10 (Ootpa).
LTFS17089I Distribution: Red Hat Enterprise Linux release 8.10 (Ootpa).
LTFS15003I Formatting device '/dev/sg7'.
LTFS15004I LTFS volume blocksize: 524288.
LTFS15005I Index partition placement policy: size=1M/name=*.txt.

LTFS11337I Update index-dirty flag (1) - NO_BARCODE (0x0x55b515b6f780).
LTFS17085I Plugin: Loading "sg" tape backend.
LTFS30209I Opening a device through sg-ibmtape driver (/dev/sg7).
LTFS30250I Opened the SCSI tape device 8.0.1.0 (/dev/sg7).
LTFS30207I Vendor ID is IBM     .
LTFS30208I Product ID is ULT3580-HH9     .
LTFS30214I Firmware revision is Q9E9.
LTFS30215I Drive serial is 1013002519.
LTFS30285I The reserved buffer size of /dev/sg7 is 1048576.
LTFS30294I Setting up timeout values from RSOC.
LTFS17160I Maximum device block size is 1048576.
LTFS11330I Loading cartridge.
LTFS30252I Logical block protection is disabled.
LTFS11332I Load successful.
LTFS17157I Changing the drive setting to write-anywhere mode.
LTFS15049I Checking the medium (load).
LTFS30252I Logical block protection is disabled.
LTFS15010I Creating data partition b on SCSI partition 1.
LTFS15011I Creating index partition a on SCSI partition 0.
LTFS17165I Resetting the medium's capacity proportion.
LTFS11097I Partitioning the medium.
LTFS30263I MODESELECT returns Mode Parameters Rounded (-20101) /dev/sg7.
LTFS11100I Writing label to partition b.
LTFS11278I Writing index to partition b.
LTFS30205I READ_ATTR (0x8c) returns -20501.
LTFS30263I READ_ATTR returns Invalid Field in CDB (-20501) /dev/sg7.
LTFS30233I Cannot read attribute (-20501).
LTFS11336I The attribute does not exist. Ignore the expected error.
LTFS17235I Writing index of NO_BARCODE to b (Reason: Format, 0 files) 1013002519.
LTFS17236I Wrote index of NO_BARCODE (Gen = 1, Part = b, Pos = 5, 1013002519).
LTFS11337I Update index-dirty flag (0) - NO_BARCODE (0x0x55b515b6f780).
LTFS11100I Writing label to partition a.
LTFS11278I Writing index to partition a.
LTFS30205I READ_ATTR (0x8c) returns -20501.
LTFS30263I READ_ATTR returns Invalid Field in CDB (-20501) /dev/sg7.
LTFS30233I Cannot read attribute (-20501).
LTFS11336I The attribute does not exist. Ignore the expected error.
LTFS17235I Writing index of NO_BARCODE to a (Reason: Format, 0 files) 1013002519.
LTFS17236I Wrote index of NO_BARCODE (Gen = 1, Part = a, Pos = 5, 1013002519).
LTFS15013I Volume UUID is: a27cb674-c6c1-4bee-aaed-05f8d9a7a062.

LTFS15019I Volume capacity is 17550 GB.
LTFS30252I Logical block protection is disabled.
LTFS15024I Medium formatted successfully.

[TEST] FORMAT WITH RULES (multiple patterns)
------------------------------------------------------------
[CMD] sudo mkltfs -d /dev/sg7 -f -r size=1M/name=*.jpg:*.png
LTFS15000I Starting mkltfs, LTFS version 2.4.5.1 (Prelim), log level 2.
LTFS15041I Launched by "mkltfs -d /dev/sg7 -f -r size=1M/name=*.jpg:*.png".
LTFS15042I This binary is built for Linux (x86_64).
LTFS15043I GCC version is 8.5.0 20210514 (Red Hat 8.5.0-26).
LTFS17087I Kernel version: Linux version 4.18.0-553.107.1.el8_10.x86_64 (mockbuild@x86-64-03.build.eng.rdu2.redhat.com) (gcc version 8.5.0 20210514 (Red Hat 8.5.0-28) (GCC)) #1 SMP Tue Feb 17 05:52:05 EST 2026 i386.
LTFS17089I Distribution: NAME="Red Hat Enterprise Linux".
LTFS17089I Distribution: Red Hat Enterprise Linux release 8.10 (Ootpa).
LTFS17089I Distribution: Red Hat Enterprise Linux release 8.10 (Ootpa).
LTFS15003I Formatting device '/dev/sg7'.
LTFS15004I LTFS volume blocksize: 524288.
LTFS15005I Index partition placement policy: size=1M/name=*.jpg:*.png.

LTFS11337I Update index-dirty flag (1) - NO_BARCODE (0x0x560cf601f770).
LTFS17085I Plugin: Loading "sg" tape backend.
LTFS30209I Opening a device through sg-ibmtape driver (/dev/sg7).
LTFS30250I Opened the SCSI tape device 8.0.1.0 (/dev/sg7).
LTFS30207I Vendor ID is IBM     .
LTFS30208I Product ID is ULT3580-HH9     .
LTFS30214I Firmware revision is Q9E9.
LTFS30215I Drive serial is 1013002519.
LTFS30285I The reserved buffer size of /dev/sg7 is 1048576.
LTFS30294I Setting up timeout values from RSOC.
LTFS17160I Maximum device block size is 1048576.
LTFS11330I Loading cartridge.
LTFS30252I Logical block protection is disabled.
LTFS11332I Load successful.
LTFS17157I Changing the drive setting to write-anywhere mode.
LTFS15049I Checking the medium (load).
LTFS30252I Logical block protection is disabled.
LTFS15010I Creating data partition b on SCSI partition 1.
LTFS15011I Creating index partition a on SCSI partition 0.
LTFS17165I Resetting the medium's capacity proportion.
LTFS11097I Partitioning the medium.
LTFS30263I MODESELECT returns Mode Parameters Rounded (-20101) /dev/sg7.
LTFS11100I Writing label to partition b.
LTFS11278I Writing index to partition b.
LTFS30205I READ_ATTR (0x8c) returns -20501.
LTFS30263I READ_ATTR returns Invalid Field in CDB (-20501) /dev/sg7.
LTFS30233I Cannot read attribute (-20501).
LTFS11336I The attribute does not exist. Ignore the expected error.
LTFS17235I Writing index of NO_BARCODE to b (Reason: Format, 0 files) 1013002519.
LTFS17236I Wrote index of NO_BARCODE (Gen = 1, Part = b, Pos = 5, 1013002519).
LTFS11337I Update index-dirty flag (0) - NO_BARCODE (0x0x560cf601f770).
LTFS11100I Writing label to partition a.
LTFS11278I Writing index to partition a.
LTFS30205I READ_ATTR (0x8c) returns -20501.
LTFS30263I READ_ATTR returns Invalid Field in CDB (-20501) /dev/sg7.
LTFS30233I Cannot read attribute (-20501).
LTFS11336I The attribute does not exist. Ignore the expected error.
LTFS17235I Writing index of NO_BARCODE to a (Reason: Format, 0 files) 1013002519.
LTFS17236I Wrote index of NO_BARCODE (Gen = 1, Part = a, Pos = 5, 1013002519).
LTFS15013I Volume UUID is: 5b3a0a39-b81c-428d-933c-1ab8b52fb9c2.

LTFS15019I Volume capacity is 17550 GB.
LTFS30252I Logical block protection is disabled.
LTFS15024I Medium formatted successfully.

============================================================
 PHASE 3 - LTFS MOUNT OPERATIONS
============================================================

[TEST] MOUNT BASIC
------------------------------------------------------------
[CMD] sudo ltfs -o devname=/dev/sg7 /root/tavo/ya
25df33 LTFS14000I LTFS starting, LTFS version 2.4.5.1 (Prelim), log level 2.
25df33 LTFS14058I LTFS Format Specification version 2.4.0.
25df33 LTFS14104I Launched by "ltfs -o devname=/dev/sg7 /root/tavo/ya".
25df33 LTFS14105I This binary is built for Linux (x86_64).
25df33 LTFS14106I GCC version is 8.5.0 20210514 (Red Hat 8.5.0-26).
25df33 LTFS17087I Kernel version: Linux version 4.18.0-553.107.1.el8_10.x86_64 (mockbuild@x86-64-03.build.eng.rdu2.redhat.com) (gcc version 8.5.0 20210514 (Red Hat 8.5.0-28) (GCC)) #1 SMP Tue Feb 17 05:52:05 EST 2026 i386.
25df33 LTFS17089I Distribution: NAME="Red Hat Enterprise Linux".
25df33 LTFS17089I Distribution: Red Hat Enterprise Linux release 8.10 (Ootpa).
25df33 LTFS17089I Distribution: Red Hat Enterprise Linux release 8.10 (Ootpa).
25df33 LTFS14063I Sync type is "time", Sync time is 300 sec.
25df33 LTFS17085I Plugin: Loading "sg" tape backend.
25df33 LTFS17085I Plugin: Loading "unified" iosched backend.
25df33 LTFS14095I Set the tape device write-anywhere mode to avoid cartridge ejection.
25df33 LTFS30209I Opening a device through sg-ibmtape driver (/dev/sg7).
25df33 LTFS30250I Opened the SCSI tape device 8.0.1.0 (/dev/sg7).
25df33 LTFS30207I Vendor ID is IBM     .
25df33 LTFS30208I Product ID is ULT3580-HH9     .
25df33 LTFS30214I Firmware revision is Q9E9.
25df33 LTFS30215I Drive serial is 1013002519.
25df33 LTFS30285I The reserved buffer size of /dev/sg7 is 1048576.
25df33 LTFS30294I Setting up timeout values from RSOC.
25df33 LTFS17160I Maximum device block size is 1048576.
25df33 LTFS11330I Loading cartridge.
25df33 LTFS30252I Logical block protection is disabled.
25df33 LTFS11332I Load successful.
25df33 LTFS17157I Changing the drive setting to write-anywhere mode.
25df33 LTFS11005I Mounting the volume.
25df33 LTFS30252I Logical block protection is disabled.
25df33 LTFS17227I Tape attribute: Vendor = IBM     .
25df33 LTFS17227I Tape attribute: Application Name = LTFS                            .
25df33 LTFS17227I Tape attribute: Application Version = 2.4.5.1 .
25df33 LTFS17227I Tape attribute: Medium Label = .
25df33 LTFS17228I Tape attribute: Text Localization ID = 0x81.
25df33 LTFS17227I Tape attribute: Barcode =                                 .
25df33 LTFS17227I Tape attribute: Application Format Version = 2.4.0           .
25df33 LTFS17228I Tape attribute: Volume Lock Status = 0x00.
25df33 LTFS17227I Tape attribute: Media Pool name = .
25df33 LTFS11031I Volume mounted successfully. NO_BARCODE : Gen = 1 / (a, 5) -> (b, 5) / 1013002519.
25df33 LTFS14111I Initial setup completed successfully.
25df33 LTFS14112I Invoke 'mount' command to check the result of final setup.
25df33 LTFS14113I Specified mount point is listed if succeeded.

[TEST] UNMOUNT
------------------------------------------------------------
[CMD] sudo umount /root/tavo/ya
[CMD] sleep 5

[TEST] MOUNT WITH SYNC TYPE (time@3)
------------------------------------------------------------
[CMD] sudo ltfs -o devname=/dev/sg7 -o sync_type=time@3 /root/tavo/ya
25e0c8 LTFS14000I LTFS starting, LTFS version 2.4.5.1 (Prelim), log level 2.
25e0c8 LTFS14058I LTFS Format Specification version 2.4.0.
25e0c8 LTFS14104I Launched by "ltfs -o devname=/dev/sg7 -o sync_type=time@3 /root/tavo/ya".
25e0c8 LTFS14105I This binary is built for Linux (x86_64).
25e0c8 LTFS14106I GCC version is 8.5.0 20210514 (Red Hat 8.5.0-26).
25e0c8 LTFS17087I Kernel version: Linux version 4.18.0-553.107.1.el8_10.x86_64 (mockbuild@x86-64-03.build.eng.rdu2.redhat.com) (gcc version 8.5.0 20210514 (Red Hat 8.5.0-28) (GCC)) #1 SMP Tue Feb 17 05:52:05 EST 2026 i386.
25e0c8 LTFS17089I Distribution: NAME="Red Hat Enterprise Linux".
25e0c8 LTFS17089I Distribution: Red Hat Enterprise Linux release 8.10 (Ootpa).
25e0c8 LTFS17089I Distribution: Red Hat Enterprise Linux release 8.10 (Ootpa).
25e0c8 LTFS14063I Sync type is "time", Sync time is 180 sec.
25e0c8 LTFS17085I Plugin: Loading "sg" tape backend.
25e0c8 LTFS17085I Plugin: Loading "unified" iosched backend.
25e0c8 LTFS14095I Set the tape device write-anywhere mode to avoid cartridge ejection.
25e0c8 LTFS30209I Opening a device through sg-ibmtape driver (/dev/sg7).
25e0c8 LTFS30250I Opened the SCSI tape device 8.0.1.0 (/dev/sg7).
25e0c8 LTFS30207I Vendor ID is IBM     .
25e0c8 LTFS30208I Product ID is ULT3580-HH9     .
25e0c8 LTFS30214I Firmware revision is Q9E9.
25e0c8 LTFS30215I Drive serial is 1013002519.
25e0c8 LTFS30285I The reserved buffer size of /dev/sg7 is 1048576.
25e0c8 LTFS30294I Setting up timeout values from RSOC.
25e0c8 LTFS17160I Maximum device block size is 1048576.
25e0c8 LTFS11330I Loading cartridge.
25e0c8 LTFS30252I Logical block protection is disabled.
25e0c8 LTFS11332I Load successful.
25e0c8 LTFS17157I Changing the drive setting to write-anywhere mode.
25e0c8 LTFS11005I Mounting the volume.
25e0c8 LTFS30252I Logical block protection is disabled.
25e0c8 LTFS17227I Tape attribute: Vendor = IBM     .
25e0c8 LTFS17227I Tape attribute: Application Name = LTFS                            .
25e0c8 LTFS17227I Tape attribute: Application Version = 2.4.5.1 .
25e0c8 LTFS17227I Tape attribute: Medium Label = .
25e0c8 LTFS17228I Tape attribute: Text Localization ID = 0x81.
25e0c8 LTFS17227I Tape attribute: Barcode =                                 .
25e0c8 LTFS17227I Tape attribute: Application Format Version = 2.4.0           .
25e0c8 LTFS17228I Tape attribute: Volume Lock Status = 0x00.
25e0c8 LTFS17227I Tape attribute: Media Pool name = .
25e0c8 LTFS11031I Volume mounted successfully. NO_BARCODE : Gen = 1 / (a, 5) -> (b, 5) / 1013002519.
25e0c8 LTFS14111I Initial setup completed successfully.
25e0c8 LTFS14112I Invoke 'mount' command to check the result of final setup.
25e0c8 LTFS14113I Specified mount point is listed if succeeded.

[TEST] UNMOUNT
------------------------------------------------------------
[CMD] sudo umount /root/tavo/ya
[CMD] sleep 5

[TEST] MOUNT WITH SYNC TYPE (close)
------------------------------------------------------------
[CMD] sudo ltfs -o devname=/dev/sg7 -o sync_type=close /root/tavo/ya
25e21a LTFS14000I LTFS starting, LTFS version 2.4.5.1 (Prelim), log level 2.
25e21a LTFS14058I LTFS Format Specification version 2.4.0.
25e21a LTFS14104I Launched by "ltfs -o devname=/dev/sg7 -o sync_type=close /root/tavo/ya".
25e21a LTFS14105I This binary is built for Linux (x86_64).
25e21a LTFS14106I GCC version is 8.5.0 20210514 (Red Hat 8.5.0-26).
25e21a LTFS17087I Kernel version: Linux version 4.18.0-553.107.1.el8_10.x86_64 (mockbuild@x86-64-03.build.eng.rdu2.redhat.com) (gcc version 8.5.0 20210514 (Red Hat 8.5.0-28) (GCC)) #1 SMP Tue Feb 17 05:52:05 EST 2026 i386.
25e21a LTFS17089I Distribution: NAME="Red Hat Enterprise Linux".
25e21a LTFS17089I Distribution: Red Hat Enterprise Linux release 8.10 (Ootpa).
25e21a LTFS17089I Distribution: Red Hat Enterprise Linux release 8.10 (Ootpa).
25e21a LTFS14064I Sync type is "close".
25e21a LTFS17085I Plugin: Loading "sg" tape backend.
25e21a LTFS17085I Plugin: Loading "unified" iosched backend.
25e21a LTFS14095I Set the tape device write-anywhere mode to avoid cartridge ejection.
25e21a LTFS30209I Opening a device through sg-ibmtape driver (/dev/sg7).
25e21a LTFS30250I Opened the SCSI tape device 8.0.1.0 (/dev/sg7).
25e21a LTFS30207I Vendor ID is IBM     .
25e21a LTFS30208I Product ID is ULT3580-HH9     .
25e21a LTFS30214I Firmware revision is Q9E9.
25e21a LTFS30215I Drive serial is 1013002519.
25e21a LTFS30285I The reserved buffer size of /dev/sg7 is 1048576.
25e21a LTFS30294I Setting up timeout values from RSOC.
25e21a LTFS17160I Maximum device block size is 1048576.
25e21a LTFS11330I Loading cartridge.
25e21a LTFS30252I Logical block protection is disabled.
25e21a LTFS11332I Load successful.
25e21a LTFS17157I Changing the drive setting to write-anywhere mode.
25e21a LTFS11005I Mounting the volume.
25e21a LTFS30252I Logical block protection is disabled.
25e21a LTFS17227I Tape attribute: Vendor = IBM     .
25e21a LTFS17227I Tape attribute: Application Name = LTFS                            .
25e21a LTFS17227I Tape attribute: Application Version = 2.4.5.1 .
25e21a LTFS17227I Tape attribute: Medium Label = .
25e21a LTFS17228I Tape attribute: Text Localization ID = 0x81.
25e21a LTFS17227I Tape attribute: Barcode =                                 .
25e21a LTFS17227I Tape attribute: Application Format Version = 2.4.0           .
25e21a LTFS17228I Tape attribute: Volume Lock Status = 0x00.
25e21a LTFS17227I Tape attribute: Media Pool name = .
25e21a LTFS11031I Volume mounted successfully. NO_BARCODE : Gen = 1 / (a, 5) -> (b, 5) / 1013002519.
25e21a LTFS14111I Initial setup completed successfully.
25e21a LTFS14112I Invoke 'mount' command to check the result of final setup.
25e21a LTFS14113I Specified mount point is listed if succeeded.

[TEST] UNMOUNT
------------------------------------------------------------
[CMD] sudo umount /root/tavo/ya
[CMD] sleep 5

[TEST] MOUNT WITH SYNC TYPE (unmount)
------------------------------------------------------------
[CMD] sudo ltfs -o devname=/dev/sg7 -o sync_type=unmount /root/tavo/ya
25e3a2 LTFS14000I LTFS starting, LTFS version 2.4.5.1 (Prelim), log level 2.
25e3a2 LTFS14058I LTFS Format Specification version 2.4.0.
25e3a2 LTFS14104I Launched by "ltfs -o devname=/dev/sg7 -o sync_type=unmount /root/tavo/ya".
25e3a2 LTFS14105I This binary is built for Linux (x86_64).
25e3a2 LTFS14106I GCC version is 8.5.0 20210514 (Red Hat 8.5.0-26).
25e3a2 LTFS17087I Kernel version: Linux version 4.18.0-553.107.1.el8_10.x86_64 (mockbuild@x86-64-03.build.eng.rdu2.redhat.com) (gcc version 8.5.0 20210514 (Red Hat 8.5.0-28) (GCC)) #1 SMP Tue Feb 17 05:52:05 EST 2026 i386.
25e3a2 LTFS17089I Distribution: NAME="Red Hat Enterprise Linux".
25e3a2 LTFS17089I Distribution: Red Hat Enterprise Linux release 8.10 (Ootpa).
25e3a2 LTFS17089I Distribution: Red Hat Enterprise Linux release 8.10 (Ootpa).
25e3a2 LTFS14064I Sync type is "unmount".
25e3a2 LTFS17085I Plugin: Loading "sg" tape backend.
25e3a2 LTFS17085I Plugin: Loading "unified" iosched backend.
25e3a2 LTFS14095I Set the tape device write-anywhere mode to avoid cartridge ejection.
25e3a2 LTFS30209I Opening a device through sg-ibmtape driver (/dev/sg7).
25e3a2 LTFS30250I Opened the SCSI tape device 8.0.1.0 (/dev/sg7).
25e3a2 LTFS30207I Vendor ID is IBM     .
25e3a2 LTFS30208I Product ID is ULT3580-HH9     .
25e3a2 LTFS30214I Firmware revision is Q9E9.
25e3a2 LTFS30215I Drive serial is 1013002519.
25e3a2 LTFS30285I The reserved buffer size of /dev/sg7 is 1048576.
25e3a2 LTFS30294I Setting up timeout values from RSOC.
25e3a2 LTFS17160I Maximum device block size is 1048576.
25e3a2 LTFS11330I Loading cartridge.
25e3a2 LTFS30252I Logical block protection is disabled.
25e3a2 LTFS11332I Load successful.
25e3a2 LTFS17157I Changing the drive setting to write-anywhere mode.
25e3a2 LTFS11005I Mounting the volume.
25e3a2 LTFS30252I Logical block protection is disabled.
25e3a2 LTFS17227I Tape attribute: Vendor = IBM     .
25e3a2 LTFS17227I Tape attribute: Application Name = LTFS                            .
25e3a2 LTFS17227I Tape attribute: Application Version = 2.4.5.1 .
25e3a2 LTFS17227I Tape attribute: Medium Label = .
25e3a2 LTFS17228I Tape attribute: Text Localization ID = 0x81.
25e3a2 LTFS17227I Tape attribute: Barcode =                                 .
25e3a2 LTFS17227I Tape attribute: Application Format Version = 2.4.0           .
25e3a2 LTFS17228I Tape attribute: Volume Lock Status = 0x00.
25e3a2 LTFS17227I Tape attribute: Media Pool name = .
25e3a2 LTFS11031I Volume mounted successfully. NO_BARCODE : Gen = 1 / (a, 5) -> (b, 5) / 1013002519.
25e3a2 LTFS14111I Initial setup completed successfully.
25e3a2 LTFS14112I Invoke 'mount' command to check the result of final setup.
25e3a2 LTFS14113I Specified mount point is listed if succeeded.

[TEST] UNMOUNT
------------------------------------------------------------
[CMD] sudo umount /root/tavo/ya
[CMD] sleep 5

[TEST] MOUNT WITH SYMLINK TYPE (posix)
------------------------------------------------------------
[CMD] sudo ltfs -o devname=/dev/sg7 -o symlink_type=posix /root/tavo/ya
25e46b LTFS14000I LTFS starting, LTFS version 2.4.5.1 (Prelim), log level 2.
25e46b LTFS14058I LTFS Format Specification version 2.4.0.
25e46b LTFS14104I Launched by "ltfs -o devname=/dev/sg7 -o symlink_type=posix /root/tavo/ya".
25e46b LTFS14105I This binary is built for Linux (x86_64).
25e46b LTFS14106I GCC version is 8.5.0 20210514 (Red Hat 8.5.0-26).
25e46b LTFS17087I Kernel version: Linux version 4.18.0-553.107.1.el8_10.x86_64 (mockbuild@x86-64-03.build.eng.rdu2.redhat.com) (gcc version 8.5.0 20210514 (Red Hat 8.5.0-28) (GCC)) #1 SMP Tue Feb 17 05:52:05 EST 2026 i386.
25e46b LTFS17089I Distribution: NAME="Red Hat Enterprise Linux".
25e46b LTFS17089I Distribution: Red Hat Enterprise Linux release 8.10 (Ootpa).
25e46b LTFS17089I Distribution: Red Hat Enterprise Linux release 8.10 (Ootpa).
25e46b LTFS14063I Sync type is "time", Sync time is 300 sec.
25e46b LTFS17085I Plugin: Loading "sg" tape backend.
25e46b LTFS17085I Plugin: Loading "unified" iosched backend.
25e46b LTFS14095I Set the tape device write-anywhere mode to avoid cartridge ejection.
25e46b LTFS30209I Opening a device through sg-ibmtape driver (/dev/sg7).
25e46b LTFS30250I Opened the SCSI tape device 8.0.1.0 (/dev/sg7).
25e46b LTFS30207I Vendor ID is IBM     .
25e46b LTFS30208I Product ID is ULT3580-HH9     .
25e46b LTFS30214I Firmware revision is Q9E9.
25e46b LTFS30215I Drive serial is 1013002519.
25e46b LTFS30285I The reserved buffer size of /dev/sg7 is 1048576.
25e46b LTFS30294I Setting up timeout values from RSOC.
25e46b LTFS17160I Maximum device block size is 1048576.
25e46b LTFS11330I Loading cartridge.
25e46b LTFS30252I Logical block protection is disabled.
25e46b LTFS11332I Load successful.
25e46b LTFS17157I Changing the drive setting to write-anywhere mode.
25e46b LTFS14092I Symbolic link type is (posix).
25e46b LTFS11005I Mounting the volume.
25e46b LTFS30252I Logical block protection is disabled.
25e46b LTFS17227I Tape attribute: Vendor = IBM     .
25e46b LTFS17227I Tape attribute: Application Name = LTFS                            .
25e46b LTFS17227I Tape attribute: Application Version = 2.4.5.1 .
25e46b LTFS17227I Tape attribute: Medium Label = .
25e46b LTFS17228I Tape attribute: Text Localization ID = 0x81.
25e46b LTFS17227I Tape attribute: Barcode =                                 .
25e46b LTFS17227I Tape attribute: Application Format Version = 2.4.0           .
25e46b LTFS17228I Tape attribute: Volume Lock Status = 0x00.
25e46b LTFS17227I Tape attribute: Media Pool name = .
25e46b LTFS11031I Volume mounted successfully. NO_BARCODE : Gen = 1 / (a, 5) -> (b, 5) / 1013002519.
25e46b LTFS14111I Initial setup completed successfully.
25e46b LTFS14112I Invoke 'mount' command to check the result of final setup.
25e46b LTFS14113I Specified mount point is listed if succeeded.

[TEST] UNMOUNT
------------------------------------------------------------
[CMD] sudo umount /root/tavo/ya
[CMD] sleep 5

[TEST] MOUNT WITH SYMLINK TYPE (live)
------------------------------------------------------------
[CMD] sudo ltfs -o devname=/dev/sg7 -o symlink_type=live /root/tavo/ya
25e557 LTFS14000I LTFS starting, LTFS version 2.4.5.1 (Prelim), log level 2.
25e557 LTFS14058I LTFS Format Specification version 2.4.0.
25e557 LTFS14104I Launched by "ltfs -o devname=/dev/sg7 -o symlink_type=live /root/tavo/ya".
25e557 LTFS14105I This binary is built for Linux (x86_64).
25e557 LTFS14106I GCC version is 8.5.0 20210514 (Red Hat 8.5.0-26).
25e557 LTFS17087I Kernel version: Linux version 4.18.0-553.107.1.el8_10.x86_64 (mockbuild@x86-64-03.build.eng.rdu2.redhat.com) (gcc version 8.5.0 20210514 (Red Hat 8.5.0-28) (GCC)) #1 SMP Tue Feb 17 05:52:05 EST 2026 i386.
25e557 LTFS17089I Distribution: NAME="Red Hat Enterprise Linux".
25e557 LTFS17089I Distribution: Red Hat Enterprise Linux release 8.10 (Ootpa).
25e557 LTFS17089I Distribution: Red Hat Enterprise Linux release 8.10 (Ootpa).
25e557 LTFS14063I Sync type is "time", Sync time is 300 sec.
25e557 LTFS17085I Plugin: Loading "sg" tape backend.
25e557 LTFS17085I Plugin: Loading "unified" iosched backend.
25e557 LTFS14095I Set the tape device write-anywhere mode to avoid cartridge ejection.
25e557 LTFS30209I Opening a device through sg-ibmtape driver (/dev/sg7).
25e557 LTFS30250I Opened the SCSI tape device 8.0.1.0 (/dev/sg7).
25e557 LTFS30207I Vendor ID is IBM     .
25e557 LTFS30208I Product ID is ULT3580-HH9     .
25e557 LTFS30214I Firmware revision is Q9E9.
25e557 LTFS30215I Drive serial is 1013002519.
25e557 LTFS30285I The reserved buffer size of /dev/sg7 is 1048576.
25e557 LTFS30294I Setting up timeout values from RSOC.
25e557 LTFS17160I Maximum device block size is 1048576.
25e557 LTFS11330I Loading cartridge.
25e557 LTFS30252I Logical block protection is disabled.
25e557 LTFS11332I Load successful.
25e557 LTFS17157I Changing the drive setting to write-anywhere mode.
25e557 LTFS14092I Symbolic link type is (live).
25e557 LTFS11005I Mounting the volume.
25e557 LTFS30252I Logical block protection is disabled.
25e557 LTFS17227I Tape attribute: Vendor = IBM     .
25e557 LTFS17227I Tape attribute: Application Name = LTFS                            .
25e557 LTFS17227I Tape attribute: Application Version = 2.4.5.1 .
25e557 LTFS17227I Tape attribute: Medium Label = .
25e557 LTFS17228I Tape attribute: Text Localization ID = 0x81.
25e557 LTFS17227I Tape attribute: Barcode =                                 .
25e557 LTFS17227I Tape attribute: Application Format Version = 2.4.0           .
25e557 LTFS17228I Tape attribute: Volume Lock Status = 0x00.
25e557 LTFS17227I Tape attribute: Media Pool name = .
25e557 LTFS11031I Volume mounted successfully. NO_BARCODE : Gen = 1 / (a, 5) -> (b, 5) / 1013002519.
25e557 LTFS14111I Initial setup completed successfully.
25e557 LTFS14112I Invoke 'mount' command to check the result of final setup.
25e557 LTFS14113I Specified mount point is listed if succeeded.

============================================================
 PHASE 4 - FILE OPERATIONS
============================================================

============================================================
 FILE OPERATIONS TEST MODULE
 Tape Path: /root/tavo/ya
============================================================

[TEST 1] CREATE EMPTY FILE
------------------------------------------------------------
[CMD] touch "/root/tavo/ya/empty_file.txt"

[TEST 2] CREATE FILE WITH CONTENT
------------------------------------------------------------
[CMD] echo "Hello, LTFS!" > "/root/tavo/ya/hello.txt"

[TEST 3] READ FILE CONTENT
------------------------------------------------------------
[CMD] cat "/root/tavo/ya/hello.txt"
Hello, LTFS!

[TEST 4] APPEND TO FILE
------------------------------------------------------------
[CMD] echo "Appended line" >> "/root/tavo/ya/hello.txt"

[TEST 5] VERIFY APPEND
------------------------------------------------------------
[CMD] cat "/root/tavo/ya/hello.txt"
Hello, LTFS!
Appended line

[TEST 6] COPY FILE
------------------------------------------------------------
[CMD] cp "/root/tavo/ya/hello.txt" "/root/tavo/ya/hello_copy.txt"

[TEST 7] VERIFY COPY
------------------------------------------------------------
[CMD] cat "/root/tavo/ya/hello_copy.txt"
Hello, LTFS!
Appended line

[TEST 8] RENAME FILE
------------------------------------------------------------
[CMD] mv "/root/tavo/ya/hello_copy.txt" "/root/tavo/ya/hello_renamed.txt"

[TEST 9] VERIFY RENAME
------------------------------------------------------------
[CMD] ls -la "/root/tavo/ya/hello_renamed.txt"
-rwxrwxrwx. 1 root root 27 Mar  4 18:01 /root/tavo/ya/hello_renamed.txt

[TEST 10] DELETE FILE
------------------------------------------------------------
[CMD] rm "/root/tavo/ya/hello_renamed.txt"

[TEST 11] VERIFY DELETE
------------------------------------------------------------
[CMD] ls "/root/tavo/ya/hello_renamed.txt" 2>&1
ls: cannot access '/root/tavo/ya/hello_renamed.txt': No such file or directory
[INFO] File successfully deleted (expected error)

[TEST 12] CREATE MULTI-LINE FILE
------------------------------------------------------------
[CMD] cat > "/root/tavo/ya/multiline.txt" << 'EOF'

[TEST 13] COUNT LINES IN FILE
------------------------------------------------------------
[CMD] wc -l "/root/tavo/ya/multiline.txt"
5 /root/tavo/ya/multiline.txt

[TEST 14] CREATE BINARY FILE
------------------------------------------------------------
[CMD] dd if=/dev/urandom of="/root/tavo/ya/binary_file.bin" bs=1024 count=10
10+0 records in
10+0 records out
10240 bytes (10 kB, 10 KiB) copied, 7.52915 s, 1.4 kB/s

[TEST 15] VERIFY BINARY FILE SIZE
------------------------------------------------------------
[CMD] ls -lh "/root/tavo/ya/binary_file.bin"
-rwxrwxrwx. 1 root root 10K Mar  4 18:02 /root/tavo/ya/binary_file.bin

[TEST 16] CREATE LARGE TEXT FILE
------------------------------------------------------------
[CMD] for i in {1..1000}; do echo "Line $i of large file" >> "/root/tavo/ya/large_file.txt"; done

[TEST 17] VERIFY LARGE FILE LINE COUNT
------------------------------------------------------------
[CMD] wc -l "/root/tavo/ya/large_file.txt"
1000 /root/tavo/ya/large_file.txt

[TEST 18] SET FILE PERMISSIONS
------------------------------------------------------------
[CMD] chmod 644 "/root/tavo/ya/hello.txt"

[TEST 19] VERIFY FILE PERMISSIONS
------------------------------------------------------------
[CMD] ls -l "/root/tavo/ya/hello.txt"
-rwxrwxrwx. 1 root root 27 Mar  4 18:01 /root/tavo/ya/hello.txt

[TEST 20] CREATE FILE WITH UNICODE NAME (Japanese)
------------------------------------------------------------
[CMD] echo "Unicode test file" > "/root/tavo/ya/テスト.txt"

[CMD] ls -la "/root/tavo/ya/テスト.txt"
-rwxrwxrwx. 1 root root 18 Mar  4 18:02 /root/tavo/ya/テスト.txt

[TEST 21] FILE TRUNCATE OPERATIONS
------------------------------------------------------------
[CMD] echo "This is a long line of text that will be truncated" > "/root/tavo/ya/truncate_test.txt"
[CMD] truncate -s 10 "/root/tavo/ya/truncate_test.txt"
[CMD] stat -c%s "/root/tavo/ya/truncate_test.txt"
10

[TEST 22] FILE OVERWRITE OPERATIONS
------------------------------------------------------------
[CMD] echo "Original content" > "/root/tavo/ya/overwrite_test.txt"
[CMD] echo "New content" > "/root/tavo/ya/overwrite_test.txt"
[CMD] cat "/root/tavo/ya/overwrite_test.txt"
New content

[TEST 23] BINARY FILE WITH CHECKSUM
------------------------------------------------------------
[CMD] dd if=/dev/urandom of="/root/tavo/ya/binary_checksum.bin" bs=1024 count=100
100+0 records in
100+0 records out
102400 bytes (102 kB, 100 KiB) copied, 7.74301 s, 13.2 kB/s
[CMD] md5sum "/root/tavo/ya/binary_checksum.bin"
06ca8bb8858114329f3fbd8ae1fbae47  /root/tavo/ya/binary_checksum.bin

[TEST 24] MULTIPLE FILE TYPES
------------------------------------------------------------
[CMD] mkdir -p "/root/tavo/ya/mixed_types"
[CMD] echo "Text content" > "/root/tavo/ya/mixed_types/file.txt"
[CMD] echo '{"key": "value"}' > "/root/tavo/ya/mixed_types/file.json"
[CMD] echo '<?xml version="1.0"?><root><item>test</item></root>' > "/root/tavo/ya/mixed_types/file.xml"
[CMD] ls -la "/root/tavo/ya/mixed_types"
total 2
drwxrwxrwx. 2 root root  0 Mar  4 18:03 .
drwxrwxrwx. 3 root root  0 Mar  4 18:03 ..
-rwxrwxrwx. 1 root root 31 Mar  4 18:03 file.json
-rwxrwxrwx. 1 root root 13 Mar  4 18:03 file.txt
-rwxrwxrwx. 1 root root 52 Mar  4 18:03 file.xml

[TEST 25] CONCURRENT FILE OPERATIONS
------------------------------------------------------------
[CMD] Creating 5 files concurrently...
[CMD] ls -la "/root/tavo/ya"/concurrent_*.txt
-rwxrwxrwx. 1 root root 13 Mar  4 18:03 /root/tavo/ya/concurrent_1.txt
-rwxrwxrwx. 1 root root 13 Mar  4 18:03 /root/tavo/ya/concurrent_2.txt
-rwxrwxrwx. 1 root root 13 Mar  4 18:03 /root/tavo/ya/concurrent_3.txt
-rwxrwxrwx. 1 root root 13 Mar  4 18:03 /root/tavo/ya/concurrent_4.txt
-rwxrwxrwx. 1 root root 13 Mar  4 18:03 /root/tavo/ya/concurrent_5.txt

============================================================
 FILE OPERATIONS TEST MODULE - COMPLETED
 Total Tests: 25
============================================================

============================================================
 PHASE 5 - DIRECTORY OPERATIONS
============================================================

============================================================
 DIRECTORY OPERATIONS TEST MODULE
 Tape Path: /root/tavo/ya
============================================================

[TEST 1] CREATE DIRECTORY
------------------------------------------------------------
[CMD] mkdir "/root/tavo/ya/test_dir"

[TEST 2] VERIFY DIRECTORY EXISTS
------------------------------------------------------------
[CMD] ls -ld "/root/tavo/ya/test_dir"
drwxrwxrwx. 2 root root 0 Mar  4 18:03 /root/tavo/ya/test_dir

[TEST 3] CREATE FILE IN DIRECTORY
------------------------------------------------------------
[CMD] echo "File in directory" > "/root/tavo/ya/test_dir/file_in_dir.txt"

[TEST 4] LIST DIRECTORY CONTENTS
------------------------------------------------------------
[CMD] ls -la "/root/tavo/ya/test_dir"
total 1
drwxrwxrwx. 2 root root  0 Mar  4 18:03 .
drwxrwxrwx. 4 root root  0 Mar  4 18:03 ..
-rwxrwxrwx. 1 root root 18 Mar  4 18:03 file_in_dir.txt

[TEST 5] CREATE NESTED DIRECTORIES (Level 1)
------------------------------------------------------------
[CMD] mkdir "/root/tavo/ya/nested"

[TEST 6] CREATE NESTED DIRECTORIES (Level 2)
------------------------------------------------------------
[CMD] mkdir "/root/tavo/ya/nested/level1"

[TEST 7] CREATE NESTED DIRECTORIES (Level 3)
------------------------------------------------------------
[CMD] mkdir "/root/tavo/ya/nested/level1/level2"

[TEST 8] CREATE FILE IN NESTED DIRECTORY
------------------------------------------------------------
[CMD] echo "Deep file" > "/root/tavo/ya/nested/level1/level2/deep_file.txt"

[TEST 9] VERIFY NESTED STRUCTURE
------------------------------------------------------------
[CMD] find "/root/tavo/ya/nested" -type f
/root/tavo/ya/nested/level1/level2/deep_file.txt

[TEST 10] COPY DIRECTORY
------------------------------------------------------------
[CMD] cp -r "/root/tavo/ya/test_dir" "/root/tavo/ya/test_dir_copy"

[TEST 11] VERIFY DIRECTORY COPY
------------------------------------------------------------
[CMD] ls -la "/root/tavo/ya/test_dir_copy"
total 1
drwxrwxrwx. 2 root root  0 Mar  4 18:03 .
drwxrwxrwx. 6 root root  0 Mar  4 18:03 ..
-rwxrwxrwx. 1 root root 18 Mar  4 18:03 file_in_dir.txt

[TEST 12] RENAME DIRECTORY
------------------------------------------------------------
[CMD] mv "/root/tavo/ya/test_dir_copy" "/root/tavo/ya/test_dir_renamed"

[TEST 13] VERIFY DIRECTORY RENAME
------------------------------------------------------------
[CMD] ls -ld "/root/tavo/ya/test_dir_renamed"
drwxrwxrwx. 2 root root 0 Mar  4 18:03 /root/tavo/ya/test_dir_renamed

[TEST 14] DELETE EMPTY DIRECTORY
------------------------------------------------------------
[CMD] mkdir "/root/tavo/ya/empty_dir"
[CMD] rmdir "/root/tavo/ya/empty_dir"

[TEST 15] DELETE DIRECTORY WITH CONTENTS
------------------------------------------------------------
[CMD] rm -rf "/root/tavo/ya/test_dir_renamed"

[TEST 16] VERIFY DIRECTORY DELETION
------------------------------------------------------------
[CMD] ls "/root/tavo/ya/test_dir_renamed" 2>&1
ls: cannot access '/root/tavo/ya/test_dir_renamed': No such file or directory
[INFO] Directory successfully deleted (expected error)

[TEST 17] SET DIRECTORY PERMISSIONS
------------------------------------------------------------
[CMD] chmod 755 "/root/tavo/ya/test_dir"

[TEST 18] VERIFY DIRECTORY PERMISSIONS
------------------------------------------------------------
[CMD] ls -ld "/root/tavo/ya/test_dir"
drwxrwxrwx. 2 root root 0 Mar  4 18:03 /root/tavo/ya/test_dir

[TEST 19] CREATE DIRECTORY WITH UNICODE NAME (Japanese)
------------------------------------------------------------
[CMD] mkdir "/root/tavo/ya/ディレクトリ"

[CMD] ls -ld "/root/tavo/ya/ディレクトリ"
drwxrwxrwx. 2 root root 0 Mar  4 18:03 /root/tavo/ya/ディレクトリ

[TEST 20] CREATE FILE IN UNICODE DIRECTORY
------------------------------------------------------------
[CMD] echo "File in Unicode directory" > "/root/tavo/ya/ディレクトリ/unicode_test.txt"

[CMD] ls -la "/root/tavo/ya/ディレクトリ"
total 1
drwxrwxrwx. 2 root root  0 Mar  4 18:03 .
drwxrwxrwx. 6 root root  0 Mar  4 18:03 ..
-rwxrwxrwx. 1 root root 26 Mar  4 18:03 unicode_test.txt

============================================================
 DIRECTORY OPERATIONS TEST MODULE - COMPLETED
============================================================

============================================================
 PHASE 6 - LTFSCK CHECK OPERATIONS
============================================================

[TEST] UNMOUNT
------------------------------------------------------------
[CMD] sudo umount /root/tavo/ya
[CMD] sleep 120

[TEST] CHECK TAPE (ltfsck)
------------------------------------------------------------
[CMD] sudo ltfsck /dev/sg7
LTFS16000I Starting ltfsck, LTFS version 2.4.5.1 (Prelim), log level 2.
LTFS16088I Launched by "ltfsck /dev/sg7".
LTFS16089I This binary is built for Linux (x86_64).
LTFS16090I GCC version is 8.5.0 20210514 (Red Hat 8.5.0-26).
LTFS17087I Kernel version: Linux version 4.18.0-553.107.1.el8_10.x86_64 (mockbuild@x86-64-03.build.eng.rdu2.redhat.com) (gcc version 8.5.0 20210514 (Red Hat 8.5.0-28) (GCC)) #1 SMP Tue Feb 17 05:52:05 EST 2026 i386.
LTFS17089I Distribution: NAME="Red Hat Enterprise Linux".
LTFS17089I Distribution: Red Hat Enterprise Linux release 8.10 (Ootpa).
LTFS17089I Distribution: Red Hat Enterprise Linux release 8.10 (Ootpa).
LTFS17085I Plugin: Loading "sg" tape backend.
LTFS30209I Opening a device through sg-ibmtape driver (/dev/sg7).
LTFS30250I Opened the SCSI tape device 8.0.1.0 (/dev/sg7).
LTFS30207I Vendor ID is IBM     .
LTFS30208I Product ID is ULT3580-HH9     .
LTFS30214I Firmware revision is Q9E9.
LTFS30215I Drive serial is 1013002519.
LTFS30285I The reserved buffer size of /dev/sg7 is 1048576.
LTFS30294I Setting up timeout values from RSOC.
LTFS17160I Maximum device block size is 1048576.
LTFS11330I Loading cartridge.
LTFS30252I Logical block protection is disabled.
LTFS11332I Load successful.
LTFS17157I Changing the drive setting to write-anywhere mode.
LTFS16014I Checking LTFS file system on '/dev/sg7'.
LTFS30252I Logical block protection is disabled.
LTFS16023I LTFS volume information:.
LTFS16024I Volser (bar code) :       .
LTFS16025I Volume UUID     : 5b3a0a39-b81c-428d-933c-1ab8b52fb9c2.
LTFS16026I Format time     : 2026-03-04 17:56:47.441320882 EST.
LTFS16027I Block size      : 524288.
LTFS16028I Compression     : Enabled.
LTFS16029I Index partition : ID = a, SCSI Partition = 0.
LTFS16030I Data partition  : ID = b, SCSI Partition = 1.

LTFS11005I Mounting the volume.
LTFS30252I Logical block protection is disabled.
LTFS11026I Performing a full medium consistency check.
LTFS11233I Updating MAM coherency data.
LTFS17227I Tape attribute: Vendor = IBM     .
LTFS17227I Tape attribute: Application Name = LTFS                            .
LTFS17227I Tape attribute: Application Version = 2.4.5.1 .
LTFS17227I Tape attribute: Medium Label = .
LTFS17228I Tape attribute: Text Localization ID = 0x81.
LTFS17227I Tape attribute: Barcode =                                 .
LTFS17227I Tape attribute: Application Format Version = 2.4.0           .
LTFS17228I Tape attribute: Volume Lock Status = 0x00.
LTFS17227I Tape attribute: Media Pool name = .
LTFS11031I Volume mounted successfully. NO_BARCODE : Gen = 2 / (a, 5) -> (b, 1030) / 1013002519.
LTFS16031I Data placement policy information:.
LTFS16032I Size threshold : 1048576.
LTFS16033I Name pattern   : *.jpg.
LTFS16033I Name pattern   : *.png.
LTFS16034I Policy update  : Allowed.

LTFS17265I Skip writing the index because of the volume is not dirty and current self pointer points IP.
LTFS11034I Volume unmounted successfully.
LTFS16022I Volume is consistent.
LTFS30252I Logical block protection is disabled.
[WARN] ltfsck/ltfs -o device_list returned exit code 1 (treated as non-fatal).

[TEST] LIST ROLLBACK POINTS
------------------------------------------------------------
[CMD] sudo ltfsck -l /dev/sg7
LTFS16000I Starting ltfsck, LTFS version 2.4.5.1 (Prelim), log level 2.
LTFS16088I Launched by "ltfsck -l /dev/sg7".
LTFS16089I This binary is built for Linux (x86_64).
LTFS16090I GCC version is 8.5.0 20210514 (Red Hat 8.5.0-26).
LTFS17087I Kernel version: Linux version 4.18.0-553.107.1.el8_10.x86_64 (mockbuild@x86-64-03.build.eng.rdu2.redhat.com) (gcc version 8.5.0 20210514 (Red Hat 8.5.0-28) (GCC)) #1 SMP Tue Feb 17 05:52:05 EST 2026 i386.
LTFS17089I Distribution: NAME="Red Hat Enterprise Linux".
LTFS17089I Distribution: Red Hat Enterprise Linux release 8.10 (Ootpa).
LTFS17089I Distribution: Red Hat Enterprise Linux release 8.10 (Ootpa).
LTFS16084I List indexes in backward direction strategy.
LTFS17085I Plugin: Loading "sg" tape backend.
LTFS30209I Opening a device through sg-ibmtape driver (/dev/sg7).
LTFS30250I Opened the SCSI tape device 8.0.1.0 (/dev/sg7).
LTFS30207I Vendor ID is IBM     .
LTFS30208I Product ID is ULT3580-HH9     .
LTFS30214I Firmware revision is Q9E9.
LTFS30215I Drive serial is 1013002519.
LTFS30285I The reserved buffer size of /dev/sg7 is 1048576.
LTFS30294I Setting up timeout values from RSOC.
LTFS17160I Maximum device block size is 1048576.
LTFS11330I Loading cartridge.
LTFS30252I Logical block protection is disabled.
LTFS11332I Load successful.
LTFS17157I Changing the drive setting to write-anywhere mode.
LTFS16018I Listing LTFS file system rollback points on '/dev/sg7'.
LTFS30252I Logical block protection is disabled.
LTFS16023I LTFS volume information:.
LTFS16024I Volser (bar code) :       .
LTFS16025I Volume UUID     : 5b3a0a39-b81c-428d-933c-1ab8b52fb9c2.
LTFS16026I Format time     : 2026-03-04 17:56:47.441320882 EST.
LTFS16027I Block size      : 524288.
LTFS16028I Compression     : Enabled.
LTFS16029I Index partition : ID = a, SCSI Partition = 0.
LTFS16030I Data partition  : ID = b, SCSI Partition = 1.

LTFS11005I Mounting the volume.
LTFS30252I Logical block protection is disabled.
LTFS17227I Tape attribute: Vendor = IBM     .
LTFS17227I Tape attribute: Application Name = LTFS                            .
LTFS17227I Tape attribute: Application Version = 2.4.5.1 .
LTFS17227I Tape attribute: Medium Label = .
LTFS17228I Tape attribute: Text Localization ID = 0x81.
LTFS17227I Tape attribute: Barcode =                                 .
LTFS17227I Tape attribute: Application Format Version = 2.4.0           .
LTFS17228I Tape attribute: Volume Lock Status = 0x00.
LTFS17227I Tape attribute: Media Pool name = .
LTFS11031I Volume mounted successfully. NO_BARCODE : Gen = 2 / (a, 5) -> (b, 1030) / 1013002519.
LTFS30252I Logical block protection is disabled.
Generation: Date       Time               Zone     SelfPtr->BackPtr (Part, Pos)
           (UTC Date   UTC Time           UTC)                                 
            Commit Message                                                     
-------------------------------------------------------------------------------
         2: 2026-03-04 18:03:55.394543465 EST      (0, 5)->(1, 1030)
           (2026-03-04 23:03:55.394543465 UTC)
            No commit message
         2: 2026-03-04 18:03:55.394543465 EST      (1, 1030)->(1, 5)
           (2026-03-04 23:03:55.394543465 UTC)
            No commit message
         1: 2026-03-04 17:57:44.653369386 EST      (1, 5) <<Initial Index>>
           (2026-03-04 22:57:44.653369386 UTC)
            No commit message

[TEST] LIST ROLLBACK POINTS (forward)
------------------------------------------------------------
[CMD] sudo ltfsck -l -v forward /dev/sg7
LTFS16000I Starting ltfsck, LTFS version 2.4.5.1 (Prelim), log level 2.
LTFS16088I Launched by "ltfsck -l -v forward /dev/sg7".
LTFS16089I This binary is built for Linux (x86_64).
LTFS16090I GCC version is 8.5.0 20210514 (Red Hat 8.5.0-26).
LTFS17087I Kernel version: Linux version 4.18.0-553.107.1.el8_10.x86_64 (mockbuild@x86-64-03.build.eng.rdu2.redhat.com) (gcc version 8.5.0 20210514 (Red Hat 8.5.0-28) (GCC)) #1 SMP Tue Feb 17 05:52:05 EST 2026 i386.
LTFS17089I Distribution: NAME="Red Hat Enterprise Linux".
LTFS17089I Distribution: Red Hat Enterprise Linux release 8.10 (Ootpa).
LTFS17089I Distribution: Red Hat Enterprise Linux release 8.10 (Ootpa).
LTFS16083I List indexes in forward direction strategy.
LTFS17085I Plugin: Loading "sg" tape backend.
LTFS30209I Opening a device through sg-ibmtape driver (/dev/sg7).
LTFS30250I Opened the SCSI tape device 8.0.1.0 (/dev/sg7).
LTFS30207I Vendor ID is IBM     .
LTFS30208I Product ID is ULT3580-HH9     .
LTFS30214I Firmware revision is Q9E9.
LTFS30215I Drive serial is 1013002519.
LTFS30285I The reserved buffer size of /dev/sg7 is 1048576.
LTFS30294I Setting up timeout values from RSOC.
LTFS17160I Maximum device block size is 1048576.
LTFS11330I Loading cartridge.
LTFS30252I Logical block protection is disabled.
LTFS11332I Load successful.
LTFS17157I Changing the drive setting to write-anywhere mode.
LTFS16018I Listing LTFS file system rollback points on '/dev/sg7'.
LTFS30252I Logical block protection is disabled.
LTFS16023I LTFS volume information:.
LTFS16024I Volser (bar code) :       .
LTFS16025I Volume UUID     : 5b3a0a39-b81c-428d-933c-1ab8b52fb9c2.
LTFS16026I Format time     : 2026-03-04 17:56:47.441320882 EST.
LTFS16027I Block size      : 524288.
LTFS16028I Compression     : Enabled.
LTFS16029I Index partition : ID = a, SCSI Partition = 0.
LTFS16030I Data partition  : ID = b, SCSI Partition = 1.

LTFS11005I Mounting the volume.
LTFS30252I Logical block protection is disabled.
LTFS17227I Tape attribute: Vendor = IBM     .
LTFS17227I Tape attribute: Application Name = LTFS                            .
LTFS17227I Tape attribute: Application Version = 2.4.5.1 .
LTFS17227I Tape attribute: Medium Label = .
LTFS17228I Tape attribute: Text Localization ID = 0x81.
LTFS17227I Tape attribute: Barcode =                                 .
LTFS17227I Tape attribute: Application Format Version = 2.4.0           .
LTFS17228I Tape attribute: Volume Lock Status = 0x00.
LTFS17227I Tape attribute: Media Pool name = .
LTFS11031I Volume mounted successfully. NO_BARCODE : Gen = 2 / (a, 5) -> (b, 1030) / 1013002519.
LTFS30252I Logical block protection is disabled.
Generation: Date       Time               Zone     SelfPtr->BackPtr (Part, Pos)
           (UTC Date   UTC Time           UTC)                                 
            Commit Message                                                     
-------------------------------------------------------------------------------
         2: 2026-03-04 18:03:55.394543465 EST      (0, 5)->(1, 1030)
           (2026-03-04 23:03:55.394543465 UTC)
            No commit message
         1: 2026-03-04 17:57:44.653369386 EST      (1, 5) <<Initial Index>>
           (2026-03-04 22:57:44.653369386 UTC)
            No commit message
         2: 2026-03-04 18:03:55.394543465 EST      (1, 1030)->(1, 5)
           (2026-03-04 23:03:55.394543465 UTC)
            No commit message

[TEST] LIST ROLLBACK POINTS (full info)
------------------------------------------------------------
[CMD] sudo ltfsck -l -m /dev/sg7
LTFS16000I Starting ltfsck, LTFS version 2.4.5.1 (Prelim), log level 2.
LTFS16088I Launched by "ltfsck -l -m /dev/sg7".
LTFS16089I This binary is built for Linux (x86_64).
LTFS16090I GCC version is 8.5.0 20210514 (Red Hat 8.5.0-26).
LTFS17087I Kernel version: Linux version 4.18.0-553.107.1.el8_10.x86_64 (mockbuild@x86-64-03.build.eng.rdu2.redhat.com) (gcc version 8.5.0 20210514 (Red Hat 8.5.0-28) (GCC)) #1 SMP Tue Feb 17 05:52:05 EST 2026 i386.
LTFS17089I Distribution: NAME="Red Hat Enterprise Linux".
LTFS17089I Distribution: Red Hat Enterprise Linux release 8.10 (Ootpa).
LTFS17089I Distribution: Red Hat Enterprise Linux release 8.10 (Ootpa).
LTFS16084I List indexes in backward direction strategy.
LTFS17085I Plugin: Loading "sg" tape backend.
LTFS30209I Opening a device through sg-ibmtape driver (/dev/sg7).
LTFS30250I Opened the SCSI tape device 8.0.1.0 (/dev/sg7).
LTFS30207I Vendor ID is IBM     .
LTFS30208I Product ID is ULT3580-HH9     .
LTFS30214I Firmware revision is Q9E9.
LTFS30215I Drive serial is 1013002519.
LTFS30285I The reserved buffer size of /dev/sg7 is 1048576.
LTFS30294I Setting up timeout values from RSOC.
LTFS17160I Maximum device block size is 1048576.
LTFS11330I Loading cartridge.
LTFS30252I Logical block protection is disabled.
LTFS11332I Load successful.
LTFS17157I Changing the drive setting to write-anywhere mode.
LTFS16018I Listing LTFS file system rollback points on '/dev/sg7'.
LTFS30252I Logical block protection is disabled.
LTFS16023I LTFS volume information:.
LTFS16024I Volser (bar code) :       .
LTFS16025I Volume UUID     : 5b3a0a39-b81c-428d-933c-1ab8b52fb9c2.
LTFS16026I Format time     : 2026-03-04 17:56:47.441320882 EST.
LTFS16027I Block size      : 524288.
LTFS16028I Compression     : Enabled.
LTFS16029I Index partition : ID = a, SCSI Partition = 0.
LTFS16030I Data partition  : ID = b, SCSI Partition = 1.

LTFS11005I Mounting the volume.
LTFS30252I Logical block protection is disabled.
LTFS17227I Tape attribute: Vendor = IBM     .
LTFS17227I Tape attribute: Application Name = LTFS                            .
LTFS17227I Tape attribute: Application Version = 2.4.5.1 .
LTFS17227I Tape attribute: Medium Label = .
LTFS17228I Tape attribute: Text Localization ID = 0x81.
LTFS17227I Tape attribute: Barcode =                                 .
LTFS17227I Tape attribute: Application Format Version = 2.4.0           .
LTFS17228I Tape attribute: Volume Lock Status = 0x00.
LTFS17227I Tape attribute: Media Pool name = .
LTFS11031I Volume mounted successfully. NO_BARCODE : Gen = 2 / (a, 5) -> (b, 1030) / 1013002519.
LTFS30252I Logical block protection is disabled.
Generation: Date       Time               Zone     SelfPtr->BackPtr (Part, Pos)
           (UTC Date   UTC Time           UTC)                                 
            LTFS Format Version, Creator
            Volume name
            Placement Policy: [Overwrite] size_threshold pattern
            Commit Message                                                     
-------------------------------------------------------------------------------
         2: 2026-03-04 18:03:55.394543465 EST      (0, 5)->(1, 1030)
           (2026-03-04 23:03:55.394543465 UTC)
            2.4.0, "IBM LTFS 2.4.5.1 (Prelim) - Linux - ltfs - Unmount"
            No Volume Name
            [  Allowed  ] 1048576 *.jpg *.png 
            No commit message
         2: 2026-03-04 18:03:55.394543465 EST      (1, 1030)->(1, 5)
           (2026-03-04 23:03:55.394543465 UTC)
            2.4.0, "IBM LTFS 2.4.5.1 (Prelim) - Linux - ltfs - Unmount"
            No Volume Name
            [  Allowed  ] 1048576 *.jpg *.png 
            No commit message
         1: 2026-03-04 17:57:44.653369386 EST      (1, 5) <<Initial Index>>
           (2026-03-04 22:57:44.653369386 UTC)
            2.4.0, "IBM LTFS 2.4.5.1 (Prelim) - Linux - mkltfs - Format"
            No Volume Name
            [  Allowed  ] 1048576 *.jpg *.png 
            No commit message

============================================================
 PHASE 7 - LTFSCK ROLLBACK OPERATIONS
============================================================

[TEST] VERIFY ROLLBACK POINT (generation 2)
------------------------------------------------------------
[CMD] sudo ltfsck -g 2 -n /dev/sg7
LTFS16000I Starting ltfsck, LTFS version 2.4.5.1 (Prelim), log level 2.
LTFS16088I Launched by "ltfsck -g 2 -n /dev/sg7".
LTFS16089I This binary is built for Linux (x86_64).
LTFS16090I GCC version is 8.5.0 20210514 (Red Hat 8.5.0-26).
LTFS17087I Kernel version: Linux version 4.18.0-553.107.1.el8_10.x86_64 (mockbuild@x86-64-03.build.eng.rdu2.redhat.com) (gcc version 8.5.0 20210514 (Red Hat 8.5.0-28) (GCC)) #1 SMP Tue Feb 17 05:52:05 EST 2026 i386.
LTFS17089I Distribution: NAME="Red Hat Enterprise Linux".
LTFS17089I Distribution: Red Hat Enterprise Linux release 8.10 (Ootpa).
LTFS17089I Distribution: Red Hat Enterprise Linux release 8.10 (Ootpa).
LTFS16006I Rolling back to generation 2.
LTFS17085I Plugin: Loading "sg" tape backend.
LTFS30209I Opening a device through sg-ibmtape driver (/dev/sg7).
LTFS30250I Opened the SCSI tape device 8.0.1.0 (/dev/sg7).
LTFS30207I Vendor ID is IBM     .
LTFS30208I Product ID is ULT3580-HH9     .
LTFS30214I Firmware revision is Q9E9.
LTFS30215I Drive serial is 1013002519.
LTFS30285I The reserved buffer size of /dev/sg7 is 1048576.
LTFS30294I Setting up timeout values from RSOC.
LTFS17160I Maximum device block size is 1048576.
LTFS11330I Loading cartridge.
LTFS30252I Logical block protection is disabled.
LTFS11332I Load successful.
LTFS17157I Changing the drive setting to write-anywhere mode.
LTFS16017I Verify rollback point on '/dev/sg7'.
LTFS30252I Logical block protection is disabled.
LTFS16023I LTFS volume information:.
LTFS16024I Volser (bar code) :       .
LTFS16025I Volume UUID     : 5b3a0a39-b81c-428d-933c-1ab8b52fb9c2.
LTFS16026I Format time     : 2026-03-04 17:56:47.441320882 EST.
LTFS16027I Block size      : 524288.
LTFS16028I Compression     : Enabled.
LTFS16029I Index partition : ID = a, SCSI Partition = 0.
LTFS16030I Data partition  : ID = b, SCSI Partition = 1.

LTFS11005I Mounting the volume.
LTFS30252I Logical block protection is disabled.
LTFS17227I Tape attribute: Vendor = IBM     .
LTFS17227I Tape attribute: Application Name = LTFS                            .
LTFS17227I Tape attribute: Application Version = 2.4.5.1 .
LTFS17227I Tape attribute: Medium Label = .
LTFS17228I Tape attribute: Text Localization ID = 0x81.
LTFS17227I Tape attribute: Barcode =                                 .
LTFS17227I Tape attribute: Application Format Version = 2.4.0           .
LTFS17228I Tape attribute: Volume Lock Status = 0x00.
LTFS17227I Tape attribute: Media Pool name = .
LTFS11031I Volume mounted successfully. NO_BARCODE : Gen = 2 / (a, 5) -> (b, 1030) / 1013002519.
LTFS17265I Skip writing the index because of the volume is not dirty and current self pointer points IP.
LTFS11034I Volume unmounted successfully.
LTFS16063I Specified rollback point is the current index. The volume is consistent. No operation is required.
LTFS30252I Logical block protection is disabled.

[TEST] ROLLBACK TO GENERATION 2
------------------------------------------------------------
[CMD] sudo ltfsck -g 2 -r /dev/sg7
LTFS16000I Starting ltfsck, LTFS version 2.4.5.1 (Prelim), log level 2.
LTFS16088I Launched by "ltfsck -g 2 -r /dev/sg7".
LTFS16089I This binary is built for Linux (x86_64).
LTFS16090I GCC version is 8.5.0 20210514 (Red Hat 8.5.0-26).
LTFS17087I Kernel version: Linux version 4.18.0-553.107.1.el8_10.x86_64 (mockbuild@x86-64-03.build.eng.rdu2.redhat.com) (gcc version 8.5.0 20210514 (Red Hat 8.5.0-28) (GCC)) #1 SMP Tue Feb 17 05:52:05 EST 2026 i386.
LTFS17089I Distribution: NAME="Red Hat Enterprise Linux".
LTFS17089I Distribution: Red Hat Enterprise Linux release 8.10 (Ootpa).
LTFS17089I Distribution: Red Hat Enterprise Linux release 8.10 (Ootpa).
LTFS16006I Rolling back to generation 2.
LTFS17085I Plugin: Loading "sg" tape backend.
LTFS30209I Opening a device through sg-ibmtape driver (/dev/sg7).
LTFS30250I Opened the SCSI tape device 8.0.1.0 (/dev/sg7).
LTFS30207I Vendor ID is IBM     .
LTFS30208I Product ID is ULT3580-HH9     .
LTFS30214I Firmware revision is Q9E9.
LTFS30215I Drive serial is 1013002519.
LTFS30285I The reserved buffer size of /dev/sg7 is 1048576.
LTFS30294I Setting up timeout values from RSOC.
LTFS17160I Maximum device block size is 1048576.
LTFS11330I Loading cartridge.
LTFS30252I Logical block protection is disabled.
LTFS11332I Load successful.
LTFS17157I Changing the drive setting to write-anywhere mode.
LTFS16015I Rolling back LTFS file system on '/dev/sg7'.
LTFS30252I Logical block protection is disabled.
LTFS16023I LTFS volume information:.
LTFS16024I Volser (bar code) :       .
LTFS16025I Volume UUID     : 5b3a0a39-b81c-428d-933c-1ab8b52fb9c2.
LTFS16026I Format time     : 2026-03-04 17:56:47.441320882 EST.
LTFS16027I Block size      : 524288.
LTFS16028I Compression     : Enabled.
LTFS16029I Index partition : ID = a, SCSI Partition = 0.
LTFS16030I Data partition  : ID = b, SCSI Partition = 1.

LTFS11005I Mounting the volume.
LTFS30252I Logical block protection is disabled.
LTFS17227I Tape attribute: Vendor = IBM     .
LTFS17227I Tape attribute: Application Name = LTFS                            .
LTFS17227I Tape attribute: Application Version = 2.4.5.1 .
LTFS17227I Tape attribute: Medium Label = .
LTFS17228I Tape attribute: Text Localization ID = 0x81.
LTFS17227I Tape attribute: Barcode =                                 .
LTFS17227I Tape attribute: Application Format Version = 2.4.0           .
LTFS17228I Tape attribute: Volume Lock Status = 0x00.
LTFS17227I Tape attribute: Media Pool name = .
LTFS11031I Volume mounted successfully. NO_BARCODE : Gen = 2 / (a, 5) -> (b, 1030) / 1013002519.
LTFS17265I Skip writing the index because of the volume is not dirty and current self pointer points IP.
LTFS11034I Volume unmounted successfully.
LTFS16063I Specified rollback point is the current index. The volume is consistent. No operation is required.
LTFS30252I Logical block protection is disabled.

[TEST] ROLLBACK WITH ERASE HISTORY
------------------------------------------------------------
[CMD] sudo ltfsck -g 2 -r -j /dev/sg7
LTFS16000I Starting ltfsck, LTFS version 2.4.5.1 (Prelim), log level 2.
LTFS16088I Launched by "ltfsck -g 2 -r -j /dev/sg7".
LTFS16089I This binary is built for Linux (x86_64).
LTFS16090I GCC version is 8.5.0 20210514 (Red Hat 8.5.0-26).
LTFS17087I Kernel version: Linux version 4.18.0-553.107.1.el8_10.x86_64 (mockbuild@x86-64-03.build.eng.rdu2.redhat.com) (gcc version 8.5.0 20210514 (Red Hat 8.5.0-28) (GCC)) #1 SMP Tue Feb 17 05:52:05 EST 2026 i386.
LTFS17089I Distribution: NAME="Red Hat Enterprise Linux".
LTFS17089I Distribution: Red Hat Enterprise Linux release 8.10 (Ootpa).
LTFS17089I Distribution: Red Hat Enterprise Linux release 8.10 (Ootpa).
LTFS16006I Rolling back to generation 2.
LTFS17085I Plugin: Loading "sg" tape backend.
LTFS30209I Opening a device through sg-ibmtape driver (/dev/sg7).
LTFS30250I Opened the SCSI tape device 8.0.1.0 (/dev/sg7).
LTFS30207I Vendor ID is IBM     .
LTFS30208I Product ID is ULT3580-HH9     .
LTFS30214I Firmware revision is Q9E9.
LTFS30215I Drive serial is 1013002519.
LTFS30285I The reserved buffer size of /dev/sg7 is 1048576.
LTFS30294I Setting up timeout values from RSOC.
LTFS17160I Maximum device block size is 1048576.
LTFS11330I Loading cartridge.
LTFS30252I Logical block protection is disabled.
LTFS11332I Load successful.
LTFS17157I Changing the drive setting to write-anywhere mode.
LTFS16015I Rolling back LTFS file system on '/dev/sg7'.
LTFS30252I Logical block protection is disabled.
LTFS16023I LTFS volume information:.
LTFS16024I Volser (bar code) :       .
LTFS16025I Volume UUID     : 5b3a0a39-b81c-428d-933c-1ab8b52fb9c2.
LTFS16026I Format time     : 2026-03-04 17:56:47.441320882 EST.
LTFS16027I Block size      : 524288.
LTFS16028I Compression     : Enabled.
LTFS16029I Index partition : ID = a, SCSI Partition = 0.
LTFS16030I Data partition  : ID = b, SCSI Partition = 1.

LTFS11005I Mounting the volume.
LTFS30252I Logical block protection is disabled.
LTFS17227I Tape attribute: Vendor = IBM     .
LTFS17227I Tape attribute: Application Name = LTFS                            .
LTFS17227I Tape attribute: Application Version = 2.4.5.1 .
LTFS17227I Tape attribute: Medium Label = .
LTFS17228I Tape attribute: Text Localization ID = 0x81.
LTFS17227I Tape attribute: Barcode =                                 .
LTFS17227I Tape attribute: Application Format Version = 2.4.0           .
LTFS17228I Tape attribute: Volume Lock Status = 0x00.
LTFS17227I Tape attribute: Media Pool name = .
LTFS11031I Volume mounted successfully. NO_BARCODE : Gen = 2 / (a, 5) -> (b, 1030) / 1013002519.
LTFS17265I Skip writing the index because of the volume is not dirty and current self pointer points IP.
LTFS11034I Volume unmounted successfully.
LTFS16063I Specified rollback point is the current index. The volume is consistent. No operation is required.
LTFS30252I Logical block protection is disabled.

============================================================
 PHASE 8 - LTFS MOUNT OPTIONS
============================================================

[TEST] ROLLBACK MOUNT (generation 2)
------------------------------------------------------------
[CMD] sudo ltfs -o devname=/dev/sg7 -o rollback_mount=2 /root/tavo/ya
26057d LTFS14000I LTFS starting, LTFS version 2.4.5.1 (Prelim), log level 2.
26057d LTFS14058I LTFS Format Specification version 2.4.0.
26057d LTFS14104I Launched by "ltfs -o devname=/dev/sg7 -o rollback_mount=2 /root/tavo/ya".
26057d LTFS14105I This binary is built for Linux (x86_64).
26057d LTFS14106I GCC version is 8.5.0 20210514 (Red Hat 8.5.0-26).
26057d LTFS17087I Kernel version: Linux version 4.18.0-553.107.1.el8_10.x86_64 (mockbuild@x86-64-03.build.eng.rdu2.redhat.com) (gcc version 8.5.0 20210514 (Red Hat 8.5.0-28) (GCC)) #1 SMP Tue Feb 17 05:52:05 EST 2026 i386.
26057d LTFS17089I Distribution: NAME="Red Hat Enterprise Linux".
26057d LTFS17089I Distribution: Red Hat Enterprise Linux release 8.10 (Ootpa).
26057d LTFS17089I Distribution: Red Hat Enterprise Linux release 8.10 (Ootpa).
26057d LTFS14063I Sync type is "time", Sync time is 300 sec.
26057d LTFS17085I Plugin: Loading "sg" tape backend.
26057d LTFS17085I Plugin: Loading "unified" iosched backend.
26057d LTFS14095I Set the tape device write-anywhere mode to avoid cartridge ejection.
26057d LTFS30209I Opening a device through sg-ibmtape driver (/dev/sg7).
26057d LTFS30250I Opened the SCSI tape device 8.0.1.0 (/dev/sg7).
26057d LTFS30207I Vendor ID is IBM     .
26057d LTFS30208I Product ID is ULT3580-HH9     .
26057d LTFS30214I Firmware revision is Q9E9.
26057d LTFS30215I Drive serial is 1013002519.
26057d LTFS30285I The reserved buffer size of /dev/sg7 is 1048576.
26057d LTFS30294I Setting up timeout values from RSOC.
26057d LTFS17160I Maximum device block size is 1048576.
26057d LTFS11330I Loading cartridge.
26057d LTFS30252I Logical block protection is disabled.
26057d LTFS11332I Load successful.
26057d LTFS17157I Changing the drive setting to write-anywhere mode.
26057d LTFS11005I Mounting the volume.
26057d LTFS30252I Logical block protection is disabled.
26057d LTFS17227I Tape attribute: Vendor = IBM     .
26057d LTFS17227I Tape attribute: Application Name = LTFS                            .
26057d LTFS17227I Tape attribute: Application Version = 2.4.5.1 .
26057d LTFS17227I Tape attribute: Medium Label = .
26057d LTFS17228I Tape attribute: Text Localization ID = 0x81.
26057d LTFS17227I Tape attribute: Barcode =                                 .
26057d LTFS17227I Tape attribute: Application Format Version = 2.4.0           .
26057d LTFS17228I Tape attribute: Volume Lock Status = 0x00.
26057d LTFS17227I Tape attribute: Media Pool name = .
26057d LTFS11031I Volume mounted successfully. NO_BARCODE : Gen = 2 / (a, 5) -> (b, 1030) / 1013002519.
26057d LTFS14072I Rollback mount is specified. Mounting as read-only at generation 2.
26057d LTFS14111I Initial setup completed successfully.
26057d LTFS14112I Invoke 'mount' command to check the result of final setup.
26057d LTFS14113I Specified mount point is listed if succeeded.

[TEST] UNMOUNT
------------------------------------------------------------
[CMD] sudo umount /root/tavo/ya
[CMD] sleep 5

[TEST] FORCE MOUNT NO EOD
------------------------------------------------------------
[CMD] sudo ltfs -o devname=/dev/sg7 -o force_mount_no_eod /root/tavo/ya
260653 LTFS14000I LTFS starting, LTFS version 2.4.5.1 (Prelim), log level 2.
260653 LTFS14058I LTFS Format Specification version 2.4.0.
260653 LTFS14104I Launched by "ltfs -o devname=/dev/sg7 -o force_mount_no_eod /root/tavo/ya".
260653 LTFS14105I This binary is built for Linux (x86_64).
260653 LTFS14106I GCC version is 8.5.0 20210514 (Red Hat 8.5.0-26).
260653 LTFS17087I Kernel version: Linux version 4.18.0-553.107.1.el8_10.x86_64 (mockbuild@x86-64-03.build.eng.rdu2.redhat.com) (gcc version 8.5.0 20210514 (Red Hat 8.5.0-28) (GCC)) #1 SMP Tue Feb 17 05:52:05 EST 2026 i386.
260653 LTFS17089I Distribution: NAME="Red Hat Enterprise Linux".
260653 LTFS17089I Distribution: Red Hat Enterprise Linux release 8.10 (Ootpa).
260653 LTFS17089I Distribution: Red Hat Enterprise Linux release 8.10 (Ootpa).
260653 LTFS14063I Sync type is "time", Sync time is 300 sec.
260653 LTFS17085I Plugin: Loading "sg" tape backend.
260653 LTFS17085I Plugin: Loading "unified" iosched backend.
260653 LTFS14095I Set the tape device write-anywhere mode to avoid cartridge ejection.
260653 LTFS30209I Opening a device through sg-ibmtape driver (/dev/sg7).
260653 LTFS30250I Opened the SCSI tape device 8.0.1.0 (/dev/sg7).
260653 LTFS30207I Vendor ID is IBM     .
260653 LTFS30208I Product ID is ULT3580-HH9     .
260653 LTFS30214I Firmware revision is Q9E9.
260653 LTFS30215I Drive serial is 1013002519.
260653 LTFS30285I The reserved buffer size of /dev/sg7 is 1048576.
260653 LTFS30294I Setting up timeout values from RSOC.
260653 LTFS17160I Maximum device block size is 1048576.
260653 LTFS11330I Loading cartridge.
260653 LTFS30252I Logical block protection is disabled.
260653 LTFS11332I Load successful.
260653 LTFS17157I Changing the drive setting to write-anywhere mode.
260653 LTFS14076I Attempting to mount the cartridge without EOD existence check.
260653 LTFS14077I The cartridge will be mounted as read-only.
260653 LTFS11005I Mounting the volume.
260653 LTFS30252I Logical block protection is disabled.
260653 LTFS17227I Tape attribute: Vendor = IBM     .
260653 LTFS17227I Tape attribute: Application Name = LTFS                            .
260653 LTFS17227I Tape attribute: Application Version = 2.4.5.1 .
260653 LTFS17227I Tape attribute: Medium Label = .
260653 LTFS17228I Tape attribute: Text Localization ID = 0x81.
260653 LTFS17227I Tape attribute: Barcode =                                 .
260653 LTFS17227I Tape attribute: Application Format Version = 2.4.0           .
260653 LTFS17228I Tape attribute: Volume Lock Status = 0x00.
260653 LTFS17227I Tape attribute: Media Pool name = .
260653 LTFS11031I Volume mounted successfully. NO_BARCODE : Gen = 2 / (a, 5) -> (b, 1030) / 1013002519.
260653 LTFS14111I Initial setup completed successfully.
260653 LTFS14112I Invoke 'mount' command to check the result of final setup.
260653 LTFS14113I Specified mount point is listed if succeeded.

============================================================
 PHASE 9 - TAPE CLEANUP
============================================================

[TEST] UNMOUNT
------------------------------------------------------------
[CMD] sudo umount /root/tavo/ya
[CMD] sleep 5

[TEST] MOUNT WITH EJECT OPTION
------------------------------------------------------------
[CMD] sudo ltfs -o devname=/dev/sg7 -o eject /root/tavo/ya
260715 LTFS14000I LTFS starting, LTFS version 2.4.5.1 (Prelim), log level 2.
260715 LTFS14058I LTFS Format Specification version 2.4.0.
260715 LTFS14104I Launched by "ltfs -o devname=/dev/sg7 -o eject /root/tavo/ya".
260715 LTFS14105I This binary is built for Linux (x86_64).
260715 LTFS14106I GCC version is 8.5.0 20210514 (Red Hat 8.5.0-26).
260715 LTFS17087I Kernel version: Linux version 4.18.0-553.107.1.el8_10.x86_64 (mockbuild@x86-64-03.build.eng.rdu2.redhat.com) (gcc version 8.5.0 20210514 (Red Hat 8.5.0-28) (GCC)) #1 SMP Tue Feb 17 05:52:05 EST 2026 i386.
260715 LTFS17089I Distribution: NAME="Red Hat Enterprise Linux".
260715 LTFS17089I Distribution: Red Hat Enterprise Linux release 8.10 (Ootpa).
260715 LTFS17089I Distribution: Red Hat Enterprise Linux release 8.10 (Ootpa).
260715 LTFS14063I Sync type is "time", Sync time is 300 sec.
260715 LTFS17085I Plugin: Loading "sg" tape backend.
260715 LTFS17085I Plugin: Loading "unified" iosched backend.
260715 LTFS30209I Opening a device through sg-ibmtape driver (/dev/sg7).
260715 LTFS30250I Opened the SCSI tape device 8.0.1.0 (/dev/sg7).
260715 LTFS30207I Vendor ID is IBM     .
260715 LTFS30208I Product ID is ULT3580-HH9     .
260715 LTFS30214I Firmware revision is Q9E9.
260715 LTFS30215I Drive serial is 1013002519.
260715 LTFS30285I The reserved buffer size of /dev/sg7 is 1048576.
260715 LTFS30294I Setting up timeout values from RSOC.
260715 LTFS17160I Maximum device block size is 1048576.
260715 LTFS11330I Loading cartridge.
260715 LTFS30252I Logical block protection is disabled.
260715 LTFS11332I Load successful.
260715 LTFS17157I Changing the drive setting to append-only mode.
260715 LTFS11005I Mounting the volume.
260715 LTFS30252I Logical block protection is disabled.
260715 LTFS17227I Tape attribute: Vendor = IBM     .
260715 LTFS17227I Tape attribute: Application Name = LTFS                            .
260715 LTFS17227I Tape attribute: Application Version = 2.4.5.1 .
260715 LTFS17227I Tape attribute: Medium Label = .
260715 LTFS17228I Tape attribute: Text Localization ID = 0x81.
260715 LTFS17227I Tape attribute: Barcode =                                 .
260715 LTFS17227I Tape attribute: Application Format Version = 2.4.0           .
260715 LTFS17228I Tape attribute: Volume Lock Status = 0x00.
260715 LTFS17227I Tape attribute: Media Pool name = .
260715 LTFS11031I Volume mounted successfully. NO_BARCODE : Gen = 2 / (a, 5) -> (b, 1030) / 1013002519.
260715 LTFS14111I Initial setup completed successfully.
260715 LTFS14112I Invoke 'mount' command to check the result of final setup.
260715 LTFS14113I Specified mount point is listed if succeeded.

[TEST] UNMOUNT (will eject)
------------------------------------------------------------
[CMD] sudo umount /root/tavo/ya
[CMD] sleep 5

============================================================
 Script completed successfully.
============================================================

@Piloalucard
Copy link
Member Author

Windows tests:

============================================================
 IBM Storage Archive SDE for Windows - Common Operations Script
 Working Path  : C:\Program Files\IBM\LTFS
 Drive Address : 0.0.15.0
 Drive Letter  : Z:
 Tape Path     : Z:\
============================================================

============================================================
 SERVICE CHECK - LtfsAtMntSvc
============================================================
[INFO] LtfsAtMntSvc is not running - no action needed.

============================================================
 PHASE 1 - PRE-MOUNT CHECKS
============================================================

[TEST] CHECK VERSION
------------------------------------------------------------
[CMD] .\mkltfs.exe --version
LTFS9015W Setting the locale to 'en_US.UTF-8'. If this is wrong, please set the LANG environment variable before starting mkltfs.
mkltfs version 2.4.8.
LTFS Format Specification version 2.4.0.

[TEST] CHECK DRIVE
------------------------------------------------------------
[CMD] .\LtfsCmdDrives.exe
Assigned   Address      Serial                   Status
---------- ------------ ------------------------ --------------------
           0.0.15.0     117193D05B               NO_MEDIA

============================================================
 PHASE 2 - ASSIGN DRIVE
============================================================

[TEST] ASSIGN
------------------------------------------------------------
[CMD] .\LtfsCmdAssign.exe Z 0.0.15.0

============================================================
 PHASE 3 - LOAD TAPE
============================================================

[TEST] LOAD
------------------------------------------------------------
[CMD] .\LtfsCmdLoad.exe Z
LTFS60201E Drive interface call 'MountMedium' returned error (False)

============================================================
 PHASE 4 - FORMAT TAPE
============================================================

[TEST] FORMAT
------------------------------------------------------------
[CMD] .\LtfsCmdFormat.exe Z /S:SRLTST /N:LBLTST
The medium has been formatted as a LTFS medium.
Volume UUID is: 327b6aa4-6a26-4c5a-a2dd-2f58fe793610.

============================================================
 PHASE 5 - FILE OPERATIONS
============================================================

============================================================
 FILE OPERATIONS  |  Z:
============================================================
[INFO] Working in tape directory: Z:

[TEST] CREATE TEXT FILE
------------------------------------------------------------
[CMD] echo Hello LTFS > "Z:\test.txt"
[CMD] type "Z:\test.txt"
Hello LTFS

[TEST] CREATE BINARY FILE
------------------------------------------------------------
[CMD] powershell WriteAllBytes "Z:\binary_test.bin" 1048576
[CMD] dir "Z:\binary_test.bin"
 Volume in drive Z is LBLTST
 Volume Serial Number is 0000-0000

 Directory of Z:\

03/04/2026  11:42 AM         1,048,576 binary_test.bin
               1 File(s)      1,048,576 bytes
               0 Dir(s)  2,408,082,046,976 bytes free

[TEST] CREATE MULTIPLE FILES
------------------------------------------------------------
[CMD] for /L %i in (1,1,5) do echo File %i > "Z:\file_%i.txt"
[CMD] dir "Z:\file_*.txt"
 Volume in drive Z is LBLTST
 Volume Serial Number is 0000-0000

 Directory of Z:\

03/04/2026  11:42 AM                 9 file_1.txt
03/04/2026  11:42 AM                 9 file_2.txt
03/04/2026  11:42 AM                 9 file_3.txt
03/04/2026  11:42 AM                 9 file_4.txt
03/04/2026  11:42 AM                 9 file_5.txt
               5 File(s)             45 bytes
               0 Dir(s)  2,408,082,046,976 bytes free

[TEST] READ FILE CONTENT
------------------------------------------------------------
[CMD] type "Z:\test.txt"
Hello LTFS

[TEST] VERIFY FILE SIZE
------------------------------------------------------------
[CMD] dir "Z:\binary_test.bin"
 Volume in drive Z is LBLTST
 Volume Serial Number is 0000-0000

 Directory of Z:\

03/04/2026  11:42 AM         1,048,576 binary_test.bin
               1 File(s)      1,048,576 bytes
               0 Dir(s)  2,408,078,901,248 bytes free

[TEST] APPEND TO FILE
------------------------------------------------------------
[CMD] echo Additional line >> "Z:\test.txt"
[CMD] type "Z:\test.txt"
Hello LTFS
Additional line

[TEST] OVERWRITE FILE
------------------------------------------------------------
[CMD] echo New content > "Z:\test.txt"
[CMD] type "Z:\test.txt"
New content

[TEST] COPY FILE
------------------------------------------------------------
[CMD] echo Source content > "Z:\source.txt"
[CMD] copy "Z:\source.txt" "Z:\copy.txt"
        1 file(s) copied.
[CMD] type "Z:\copy.txt"
Source content

[TEST] RENAME FILE
------------------------------------------------------------
[CMD] echo Rename test > "Z:\old_name.txt"
[CMD] copy "Z:\old_name.txt" "Z:\new_name.txt"
        1 file(s) copied.
[CMD] del "Z:\old_name.txt"
[CMD] dir "Z:\new_name.txt"
 Volume in drive Z is LBLTST
 Volume Serial Number is 0000-0000

 Directory of Z:\

03/04/2026  11:44 AM                14 new_name.txt
               1 File(s)             14 bytes
               0 Dir(s)  2,408,065,269,760 bytes free

[TEST] DELETE SINGLE FILE
------------------------------------------------------------
[CMD] del "Z:\file_1.txt"
[CMD] dir "Z:\file_1.txt"
 Volume in drive Z is LBLTST
 Volume Serial Number is 0000-0000

 Directory of Z:\

File Not Found

[TEST] DELETE MULTIPLE FILES
------------------------------------------------------------
[CMD] del "Z:\file_*.txt"
[CMD] dir "Z:\file_*.txt"
 Volume in drive Z is LBLTST
 Volume Serial Number is 0000-0000

 Directory of Z:\

File Not Found

[TEST] FILE WITH SPACES
------------------------------------------------------------
[CMD] echo Space test > "Z:\file with spaces.txt"
[CMD] type "Z:\file with spaces.txt"
Space test

[TEST] FILE WITH SPECIAL CHARS
------------------------------------------------------------
[CMD] echo Special > "Z:\file_with-chars@123.txt"
[CMD] type "Z:\file_with-chars@123.txt"
Special

[TEST] FILE WITH PARENTHESES
------------------------------------------------------------
[CMD] echo Parens > "Z:\file(test).txt"
[CMD] type "Z:\file(test).txt"
Parens

[TEST] LONG FILENAME
------------------------------------------------------------
[CMD] echo Long name > "Z:\aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa.txt"
[CMD] dir "Z:\aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa.txt"
 Volume in drive Z is LBLTST
 Volume Serial Number is 0000-0000

 Directory of Z:\

03/04/2026  11:45 AM                12 aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa.txt
               1 File(s)             12 bytes
               0 Dir(s)  2,408,056,881,152 bytes free

[TEST] FILE WITH DOTS
------------------------------------------------------------
[CMD] echo Dots > "Z:\file.with.many.dots.txt"
[CMD] type "Z:\file.with.many.dots.txt"
Dots

[TEST] NUMERIC FILENAME
------------------------------------------------------------
[CMD] echo Numbers > "Z:\123456789.txt"
[CMD] type "Z:\123456789.txt"
Numbers

[TEST] DEEP DIRECTORY TREE
------------------------------------------------------------
[CMD] mkdir "Z:\d1"
[CMD] mkdir "Z:\d1\d2"
[CMD] mkdir "Z:\d1\d2\d3"
[CMD] mkdir "Z:\d1\d2\d3\d4"
[CMD] mkdir "Z:\d1\d2\d3\d4\d5"
[CMD] echo Deep > "Z:\d1\d2\d3\d4\d5\deep.txt"
[CMD] type "Z:\d1\d2\d3\d4\d5\deep.txt"
Deep

[TEST] CREATE MULTIPLE FILE TYPES
------------------------------------------------------------
[CMD] echo {"key":"value"} > "Z:\data.json"
[CMD] echo <?xml version="1.0"?><root></root> > "Z:\data.xml"
[CMD] echo name,age > "Z:\data.csv"
[CMD] echo John,30 >> "Z:\data.csv"
[CMD] dir "Z:\data.*"
 Volume in drive Z is LBLTST
 Volume Serial Number is 0000-0000

 Directory of Z:\

03/04/2026  11:45 AM                18 data.json
03/04/2026  11:45 AM                37 data.xml
03/04/2026  11:45 AM                21 data.csv
               3 File(s)             76 bytes
               0 Dir(s)  2,408,046,395,392 bytes free

[TEST] CREATE LARGE FILE
------------------------------------------------------------
[CMD] powershell WriteAllBytes "Z:\large_file.bin" 10485760
[CMD] dir "Z:\large_file.bin"
 Volume in drive Z is LBLTST
 Volume Serial Number is 0000-0000

 Directory of Z:\

03/04/2026  11:46 AM        10,485,760 large_file.bin
               1 File(s)     10,485,760 bytes
               0 Dir(s)  2,408,046,395,392 bytes free

[TEST] COPY LARGE FILE
------------------------------------------------------------
[CMD] copy "Z:\large_file.bin" "Z:\large_file_copy.bin"
        1 file(s) copied.
[CMD] dir "Z:\large_file_copy.bin"
 Volume in drive Z is LBLTST
 Volume Serial Number is 0000-0000

 Directory of Z:\

03/04/2026  11:46 AM        10,485,760 large_file_copy.bin
               1 File(s)     10,485,760 bytes
               0 Dir(s)  2,408,034,861,056 bytes free

[TEST] FILE WITH UNICODE CHARACTERS
------------------------------------------------------------
[CMD] powershell WriteAllText "Z:\[U+65E5U+672CU+8A9EU+30C6U+30B9U+30C8].txt" (UTF-8)
[CMD] powershell Get-Content "Z:\[U+65E5U+672CU+8A9EU+30C6U+30B9U+30C8].txt" -Encoding UTF8
こんにちは,LTFSテスト
[CMD] dir "Z:\" /B | findstr /R "."
Found: 日本語テスト.txt

[TEST 21] FILE TRUNCATE OPERATIONS
------------------------------------------------------------
[CMD] echo This is a long line of text that will be truncated > "Z:\truncate_test.txt"
[CMD] powershell -Command "$file = 'Z:\truncate_test.txt'; $stream = [System.IO.File]::Open($file, 'Open'); $stream.SetLength(10); $stream.Close()"
File size: 10 bytes

[TEST 22] FILE OVERWRITE OPERATIONS
------------------------------------------------------------
[CMD] echo Original content > "Z:\overwrite_test.txt"
[CMD] echo New content > "Z:\overwrite_test.txt"
New content

[TEST 23] BINARY FILE WITH CHECKSUM
------------------------------------------------------------
[CMD] powershell -Command "$bytes = New-Object byte[] 102400; (New-Object Random).NextBytes($bytes); [IO.File]::WriteAllBytes('Z:\binary_checksum.bin', $bytes)"
[CMD] powershell -Command "Get-FileHash 'Z:\binary_checksum.bin' -Algorithm MD5"

Hash
----
AB06D8193419B9F84A69C8BC1C6802FC



[TEST 24] MULTIPLE FILE TYPES
------------------------------------------------------------
[CMD] mkdir "Z:\mixed_types"
[CMD] echo Text content > "Z:\mixed_types\file.txt"
[CMD] echo {"key": "value", "number": 42} > "Z:\mixed_types\file.json"
[CMD] echo <?xml version="1.0"?><root><item>test</item></root> > "Z:\mixed_types\file.xml"
 Volume in drive Z is LBLTST
 Volume Serial Number is 0000-0000

 Directory of Z:\mixed_types

03/04/2026  11:46 AM    <DIR>          .
03/04/2026  11:46 AM    <DIR>          ..
03/04/2026  11:46 AM                15 file.txt
03/04/2026  11:46 AM                33 file.json
03/04/2026  11:46 AM                54 file.xml
               3 File(s)            102 bytes
               2 Dir(s)  2,408,025,423,872 bytes free

[TEST 25] CONCURRENT FILE OPERATIONS
------------------------------------------------------------
[CMD] Creating 5 files concurrently...
 Volume in drive Z is LBLTST
 Volume Serial Number is 0000-0000

 Directory of Z:\

03/04/2026  11:46 AM                15 concurrent_1.txt
03/04/2026  11:46 AM                15 concurrent_2.txt
03/04/2026  11:46 AM                15 concurrent_3.txt
03/04/2026  11:46 AM                15 concurrent_4.txt
03/04/2026  11:46 AM                15 concurrent_5.txt
               5 File(s)             75 bytes
               0 Dir(s)  2,408,025,423,872 bytes free

============================================================
 FILE OPERATIONS COMPLETE
 Total Tests: 25
============================================================

============================================================
 PHASE 6 - DIRECTORY OPERATIONS
============================================================

============================================================
 DIRECTORY OPERATIONS  |  Z:
============================================================

[TEST] DIR: CREATE SINGLE DIRECTORY
------------------------------------------------------------
[CMD] mkdir "Z:\dir_single"
[CMD] dir "Z:\" | findstr dir_single
03/04/2026  11:46 AM    <DIR>          dir_single

[TEST] DIR: CREATE NESTED DIRECTORY STRUCTURE
------------------------------------------------------------
[CMD] mkdir "Z:\parent"
[CMD] mkdir "Z:\parent\child"
[CMD] mkdir "Z:\parent\child\grandchild"
[CMD] dir "Z:\parent\child"
 Volume in drive Z is LBLTST
 Volume Serial Number is 0000-0000

 Directory of Z:\parent\child

03/04/2026  11:46 AM    <DIR>          .
03/04/2026  11:46 AM    <DIR>          ..
03/04/2026  11:46 AM    <DIR>          grandchild
               0 File(s)              0 bytes
               3 Dir(s)  2,408,025,423,872 bytes free

[TEST] DIR: CREATE MULTIPLE DIRECTORIES
------------------------------------------------------------
[CMD] mkdir "Z:\multi_dir_1"
[CMD] mkdir "Z:\multi_dir_2"
[CMD] mkdir "Z:\multi_dir_3"
[CMD] mkdir "Z:\multi_dir_4"
[CMD] mkdir "Z:\multi_dir_5"
[CMD] dir "Z:\" | findstr multi_dir_
03/04/2026  11:46 AM    <DIR>          multi_dir_1
03/04/2026  11:46 AM    <DIR>          multi_dir_2
03/04/2026  11:46 AM    <DIR>          multi_dir_3
03/04/2026  11:46 AM    <DIR>          multi_dir_4
03/04/2026  11:46 AM    <DIR>          multi_dir_5

[TEST] DIR: CREATE FILES INSIDE DIRECTORY
------------------------------------------------------------
[CMD] echo File in dir > "Z:\dir_single\inside.txt"
[CMD] echo Another file > "Z:\dir_single\another.txt"
[CMD] dir "Z:\dir_single"
 Volume in drive Z is LBLTST
 Volume Serial Number is 0000-0000

 Directory of Z:\dir_single

03/04/2026  11:46 AM    <DIR>          .
03/04/2026  11:46 AM    <DIR>          ..
03/04/2026  11:46 AM                14 inside.txt
03/04/2026  11:46 AM                15 another.txt
               2 File(s)             29 bytes
               2 Dir(s)  2,408,025,423,872 bytes free

[TEST] DIR: READ FILE INSIDE DIRECTORY
------------------------------------------------------------
[CMD] type "Z:\dir_single\inside.txt"
File in dir

[TEST] DIR: COPY DIRECTORY WITH CONTENTS
------------------------------------------------------------
[CMD] xcopy "Z:\dir_single" "Z:\dir_single_copy" /E /I /Q
2 File(s) copied
[CMD] dir "Z:\dir_single_copy"
 Volume in drive Z is LBLTST
 Volume Serial Number is 0000-0000

 Directory of Z:\dir_single_copy

03/04/2026  11:47 AM    <DIR>          .
03/04/2026  11:47 AM    <DIR>          ..
03/04/2026  11:46 AM                14 inside.txt
03/04/2026  11:46 AM                15 another.txt
               2 File(s)             29 bytes
               2 Dir(s)  2,408,021,229,568 bytes free

[TEST] DIR: RENAME DIRECTORY
------------------------------------------------------------
[CMD] mkdir "Z:\multi_dir_renamed"
[CMD] xcopy "Z:\multi_dir_1" "Z:\multi_dir_renamed" /E /I /Q
0 File(s) copied
[CMD] rmdir /S /Q "Z:\multi_dir_1"
[CMD] dir "Z:\" | findstr multi_dir_renamed
03/04/2026  11:46 AM    <DIR>          multi_dir_renamed

[TEST] DIR: DELETE EMPTY DIRECTORY
------------------------------------------------------------
[CMD] mkdir "Z:\dir_to_delete_empty"
[CMD] rmdir "Z:\dir_to_delete_empty"
[CMD] dir "Z:\" | findstr dir_to_delete_empty

[TEST] DIR: DELETE DIRECTORY WITH CONTENTS
------------------------------------------------------------
[CMD] rmdir /S /Q "Z:\dir_single_copy"
[CMD] dir "Z:\" | findstr dir_single_copy

[TEST] DIR: DIRECTORY WITH SPACES IN NAME
------------------------------------------------------------
[CMD] mkdir "Z:\my folder with spaces"
[CMD] echo Content > "Z:\my folder with spaces\file.txt"
[CMD] dir "Z:\my folder with spaces"
 Volume in drive Z is LBLTST
 Volume Serial Number is 0000-0000

 Directory of Z:\my folder with spaces

03/04/2026  11:47 AM    <DIR>          .
03/04/2026  11:47 AM    <DIR>          ..
03/04/2026  11:47 AM                10 file.txt
               1 File(s)             10 bytes
               2 Dir(s)  2,408,021,229,568 bytes free

[TEST] DIR: DIRECTORY WITH SPECIAL CHARACTERS
------------------------------------------------------------
[CMD] mkdir "Z:\dir_special-chars@123"
[CMD] echo Content > "Z:\dir_special-chars@123\file.txt"
[CMD] dir "Z:\dir_special-chars@123"
 Volume in drive Z is LBLTST
 Volume Serial Number is 0000-0000

 Directory of Z:\dir_special-chars@123

03/04/2026  11:47 AM    <DIR>          .
03/04/2026  11:47 AM    <DIR>          ..
03/04/2026  11:47 AM                10 file.txt
               1 File(s)             10 bytes
               2 Dir(s)  2,408,021,229,568 bytes free

[TEST] DIR: DIRECTORY WITH PARENTHESES
------------------------------------------------------------
[CMD] mkdir "Z:\dir(test)"
[CMD] echo Content > "Z:\dir(test)\file.txt"
[CMD] dir "Z:\dir(test)"
 Volume in drive Z is LBLTST
 Volume Serial Number is 0000-0000

 Directory of Z:\dir(test)

03/04/2026  11:47 AM    <DIR>          .
03/04/2026  11:47 AM    <DIR>          ..
03/04/2026  11:47 AM                10 file.txt
               1 File(s)             10 bytes
               2 Dir(s)  2,408,021,229,568 bytes free

[TEST] DIR: DIRECTORY WITH DOTS IN NAME
------------------------------------------------------------
[CMD] mkdir "Z:\dir.with.dots"
[CMD] echo Content > "Z:\dir.with.dots\file.txt"
[CMD] dir "Z:\" | findstr dir.with.dots
03/04/2026  11:47 AM    <DIR>          dir.with.dots

[TEST] DIR: NUMERIC DIRECTORY NAME
------------------------------------------------------------
[CMD] mkdir "Z:\123456"
[CMD] echo Content > "Z:\123456\file.txt"
[CMD] dir "Z:\" | findstr 123456
03/04/2026  11:45 AM                10 123456789.txt
03/04/2026  11:47 AM    <DIR>          123456

[TEST] DIR: LONG DIRECTORY NAME
------------------------------------------------------------
[CMD] mkdir "Z:\bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb"
[CMD] echo Content > "Z:\bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb\file.txt"
[CMD] dir "Z:\bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb"
 Volume in drive Z is LBLTST
 Volume Serial Number is 0000-0000

 Directory of Z:\bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb

03/04/2026  11:47 AM    <DIR>          .
03/04/2026  11:47 AM    <DIR>          ..
03/04/2026  11:47 AM                10 file.txt
               1 File(s)             10 bytes
               2 Dir(s)  2,408,021,229,568 bytes free

[TEST] DIR: DEEP DIRECTORY TREE
------------------------------------------------------------
[CMD] mkdir "Z:\deep"
[CMD] mkdir "Z:\deep\a"
[CMD] mkdir "Z:\deep\a\b"
[CMD] mkdir "Z:\deep\a\b\c"
[CMD] mkdir "Z:\deep\a\b\c\d"
[CMD] echo Deep content > "Z:\deep\a\b\c\d\deep.txt"
[CMD] type "Z:\deep\a\b\c\d\deep.txt"
Deep content

[TEST] DIR: DIRECTORY WITH UNICODE NAME
------------------------------------------------------------
[CMD] powershell New-Item -ItemType Directory "Z:\[U+65E5U+672CU+8A9EU+30D5U+30A9U+30EBU+30C0]"
[CMD] powershell WriteAllText "Z:\[U+65E5U+672CU+8A9EU+30D5U+30A9U+30EBU+30C0]\[U+30C6U+30B9U+30C8].txt" (UTF-8)
[CMD] powershell Get-Content "Z:\[U+65E5U+672CU+8A9EU+30D5U+30A9U+30EBU+30C0]\[U+30C6U+30B9U+30C8].txt" -Encoding UTF8
日本語ディレクトリテスト
[CMD] powershell dir "Z:\[U+65E5U+672CU+8A9EU+30D5U+30A9U+30EBU+30C0]"


    Directory: Z:\日本語フォルダ


Mode                 LastWriteTime         Length Name
----                 -------------         ------ ----
-a----          3/4/2026  11:47 AM             39 テスト.txt                                                                   



[TEST] DIR: COPY DIRECTORY WITH MULTIPLE FILE TYPES
------------------------------------------------------------
[CMD] mkdir "Z:\mixed_src"
[CMD] echo {"key":"value"} > "Z:\mixed_src\data.json"
[CMD] echo name,age > "Z:\mixed_src\data.csv"
[CMD] powershell WriteAllBytes "Z:\mixed_src\data.bin" 524288
[CMD] xcopy "Z:\mixed_src" "Z:\mixed_dst" /E /I /Q
3 File(s) copied
[CMD] dir "Z:\mixed_dst"
 Volume in drive Z is LBLTST
 Volume Serial Number is 0000-0000

 Directory of Z:\mixed_dst

03/04/2026  11:47 AM    <DIR>          .
03/04/2026  11:47 AM    <DIR>          ..
03/04/2026  11:47 AM                18 data.json
03/04/2026  11:47 AM                11 data.csv
03/04/2026  11:47 AM           524,288 data.bin
               3 File(s)        524,317 bytes
               2 Dir(s)  2,408,004,452,352 bytes free

[TEST] DIR: MOVE DIRECTORY INTO ANOTHER DIRECTORY
------------------------------------------------------------
[CMD] mkdir "Z:\container"
[CMD] mkdir "Z:\container\multi_dir_2"
[CMD] xcopy "Z:\multi_dir_2" "Z:\container\multi_dir_2" /E /I /Q
0 File(s) copied
[CMD] rmdir /S /Q "Z:\multi_dir_2"
[CMD] dir "Z:\container"
 Volume in drive Z is LBLTST
 Volume Serial Number is 0000-0000

 Directory of Z:\container

03/04/2026  11:48 AM    <DIR>          .
03/04/2026  11:48 AM    <DIR>          ..
03/04/2026  11:46 AM    <DIR>          multi_dir_2
               0 File(s)              0 bytes
               3 Dir(s)  2,408,004,452,352 bytes free

[TEST] DIR: LIST DIRECTORY RECURSIVELY
------------------------------------------------------------
[CMD] dir "Z:\parent" /S /B
Z:\parent\child
Z:\parent\child\grandchild

[TEST] DIR: DIRECTORY SIZE CHECK
------------------------------------------------------------
[CMD] dir "Z:\deep" /S
 Volume in drive Z is LBLTST
 Volume Serial Number is 0000-0000

 Directory of Z:\deep

03/04/2026  11:47 AM    <DIR>          .
03/04/2026  11:48 AM    <DIR>          ..
03/04/2026  11:47 AM    <DIR>          a
               0 File(s)              0 bytes

 Directory of Z:\deep\a

03/04/2026  11:47 AM    <DIR>          .
03/04/2026  11:47 AM    <DIR>          ..
03/04/2026  11:47 AM    <DIR>          b
               0 File(s)              0 bytes

 Directory of Z:\deep\a\b

03/04/2026  11:47 AM    <DIR>          .
03/04/2026  11:47 AM    <DIR>          ..
03/04/2026  11:47 AM    <DIR>          c
               0 File(s)              0 bytes

 Directory of Z:\deep\a\b\c

03/04/2026  11:47 AM    <DIR>          .
03/04/2026  11:47 AM    <DIR>          ..
03/04/2026  11:47 AM    <DIR>          d
               0 File(s)              0 bytes

 Directory of Z:\deep\a\b\c\d

03/04/2026  11:47 AM    <DIR>          .
03/04/2026  11:47 AM    <DIR>          ..
03/04/2026  11:47 AM                15 deep.txt
               1 File(s)             15 bytes

     Total Files Listed:
               1 File(s)             15 bytes
              14 Dir(s)  2,408,004,452,352 bytes free

============================================================
 DIRECTORY OPERATIONS COMPLETE
============================================================

============================================================
 PHASE 7 - CHECK TAPE
============================================================

[TEST] CHECK
------------------------------------------------------------
[CMD] .\LtfsCmdCheck.exe Z
Date : 2026/03/04
The medium was found to be consistent. No changes were made.
LTFS volume information:.
Tape Serial Number : : SRLTST.
UUID               : 327b6aa4-6a26-4c5a-a2dd-2f58fe793610.
Format Time        : 2026-03-04 11:39:31.011000000    .

============================================================
 PHASE 8 - ROLLBACK
============================================================

[TEST] ROLLBACK LIST
------------------------------------------------------------
[CMD] .\LtfsCmdRollback.exe Z /L
 Generations Date & Time
------------ --------------------
           1 2026-03-04 11:40:46
           2 2026-03-04 11:47:22
           3 2026-03-04 11:48:02

[TEST] ROLLBACK
------------------------------------------------------------
[CMD] .\LtfsCmdRollback.exe Z /G:2 /E

============================================================
 PHASE 9 - TAPE CLEANUP
============================================================

[TEST] UNFORMAT
------------------------------------------------------------
[CMD] .\LtfsCmdUnformat.exe Z
The medium has been unformatted.

[TEST] EJECT
------------------------------------------------------------
[CMD] .\LtfsCmdEject.exe Z

[TEST] UNASSIGN
------------------------------------------------------------
[CMD] .\LtfsCmdUnassign.exe Z

============================================================
 Script completed successfully.
============================================================

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants