summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormidipix <writeonce@midipix.org>2024-05-25 14:08:47 +0000
committermidipix <writeonce@midipix.org>2024-05-25 17:46:48 +0000
commit1e49c7f2662513c72ddb63215519417b169ad75d (patch)
treee962cda9d553f7172d8cf6d5ad0c78944092dea0
parent1aa8ec2ba690df836803e71d87dece253fd990bd (diff)
downloadtpax-1e49c7f2662513c72ddb63215519417b169ad75d.tar.bz2
tpax-1e49c7f2662513c72ddb63215519417b169ad75d.tar.xz
tpax_get_driver_dirmark(): also keep track of the number of queued entries.
-rw-r--r--src/internal/tpax_driver_impl.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/internal/tpax_driver_impl.h b/src/internal/tpax_driver_impl.h
index 9860717..2aca3d1 100644
--- a/src/internal/tpax_driver_impl.h
+++ b/src/internal/tpax_driver_impl.h
@@ -83,6 +83,7 @@ struct tpax_driver_ctx_impl {
void * dirbuff;
void * bufaddr;
size_t bufsize;
+ size_t nqueued;
off_t cpos;
};
@@ -225,6 +226,7 @@ static inline void tpax_set_driver_dirmark(const struct tpax_driver_ctx * dctx,
struct tpax_driver_ctx_impl * ictx;
ictx = tpax_get_driver_ictx(dctx);
ictx->dirmark = dirent;
+ ictx->nqueued++;
}
static inline off_t tpax_get_unit_hpos(const struct tpax_unit_ctx * uctx)