Add function to retrieve block range for specific tape partitions

This commit is contained in:
2025-10-07 14:48:12 +01:00
parent ca60bc53ed
commit f8ac3e2a41
3 changed files with 186 additions and 0 deletions

View File

@@ -168,6 +168,8 @@ AARU_EXPORT int32_t AARU_CALL aaruf_get_tape_file(const void *context, uint8_t p
uint64_t *starting_block, uint64_t *ending_block);
AARU_EXPORT int32_t AARU_CALL aaruf_set_tape_file(void *context, uint8_t partition, uint32_t file,
uint64_t starting_block, uint64_t ending_block);
AARU_EXPORT int32_t AARU_CALL aaruf_get_tape_partition(const void *context, uint8_t partition, uint64_t *starting_block,
uint64_t *ending_block);
AARU_EXPORT int32_t AARU_CALL aaruf_get_dumphw(void *context, uint8_t *buffer, size_t *length);
AARU_EXPORT int32_t AARU_CALL aaruf_set_dumphw(void *context, uint8_t *data, size_t length);

View File

@@ -65,6 +65,7 @@
#define AARUF_ERROR_INCORRECT_DATA_SIZE (-26) ///< Data size does not match expected size.
#define AARUF_ERROR_INVALID_TAG (-27) ///< Invalid or unsupported media or sector tag format.
#define AARUF_ERROR_TAPE_FILE_NOT_FOUND (-28) ///< Requested tape file number not present in image.
#define AARUF_ERROR_TAPE_PARTITION_NOT_FOUND (-29) ///< Requested tape partition not present in image.
/** @} */
/** \name Non-fatal sector status codes (non-negative)