diff options
author | midipix <writeonce@midipix.org> | 2024-05-30 02:47:08 +0000 |
---|---|---|
committer | midipix <writeonce@midipix.org> | 2024-05-30 02:47:08 +0000 |
commit | 333924297a38d0d8e0b94bd64a6bbcfd845f4ca7 (patch) | |
tree | 67782a3f0d930391223da7803d610f6aeb67a4fe /src/internal | |
parent | 5cec4427826c31b5f3e8b46acdff54150fbd190e (diff) | |
download | tpax-333924297a38d0d8e0b94bd64a6bbcfd845f4ca7.tar.bz2 tpax-333924297a38d0d8e0b94bd64a6bbcfd845f4ca7.tar.xz |
driver: set blksize at the time of context creation.
Diffstat (limited to 'src/internal')
-rw-r--r-- | src/internal/tpax_driver_impl.h | 18 |
1 files changed, 0 insertions, 18 deletions
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( |