From 333924297a38d0d8e0b94bd64a6bbcfd845f4ca7 Mon Sep 17 00:00:00 2001 From: midipix Date: Thu, 30 May 2024 02:47:08 +0000 Subject: driver: set blksize at the time of context creation. --- src/internal/tpax_driver_impl.h | 18 ------------------ 1 file changed, 18 deletions(-) (limited to 'src/internal') diff --git a/src/internal/tpax_driver_impl.h b/src/internal/tpax_driver_impl.h index 1333f25..1345c32 100644 --- a/src/internal/tpax_driver_impl.h +++ b/src/internal/tpax_driver_impl.h @@ -260,24 +260,6 @@ static inline void tpax_set_unit_dpos(const struct tpax_unit_ctx * uctx, off_t d ictx->dpos = dpos; } -static inline ssize_t tpax_get_archive_block_size(const struct tpax_driver_ctx * dctx) -{ - if (dctx->cctx->drvflags & TPAX_DRIVER_WRITE_FORMAT_PAX) - return TPAX_PAX_BLOCK_SIZE; - - else if (dctx->cctx->drvflags & TPAX_DRIVER_WRITE_FORMAT_CPIO) - return TPAX_CPIO_BLOCK_SIZE; - - else if (dctx->cctx->drvflags & TPAX_DRIVER_WRITE_FORMAT_USTAR) - return TPAX_USTAR_BLOCK_SIZE; - - else if (dctx->cctx->drvflags & TPAX_DRIVER_WRITE_FORMAT_RUSTAR) - return TPAX_USTAR_BLOCK_SIZE; - - else - return 0; -} - int tpax_update_queue_vector(const struct tpax_driver_ctx * dctx); const char * tpax_queue_item_full_path( -- cgit v1.2.3