[LTP] doc: Add missing API references to api_c_tests.rst
linuxtestproject.agent@gmail.com
linuxtestproject.agent@gmail.com
Fri Jun 12 14:27:23 CEST 2026
Hi Andrea,
On Fri, 12 Jun 2026 10:27:20 +0200, Andrea Cervesato wrote:
> doc: Add missing API references to api_c_tests.rst
--- [PATCH 1/2] ---
> +/**
> + * struct tst_device - Block device used by a test.
> + * @dev: Device path (e.g. /dev/loop0).
> + * @fs_type: Filesystem type used to format the device.
> + * @size: Device size in bytes.
> + * @is_fuse: Set by the library when the mounted filesystem is FUSE-based.
> + */
The @size description says "in bytes", but tst_get_device_size() returns
size/1024/1024 (megabytes), and tst_device->size is assigned from it in
tst_test.c:
tdev.size = tst_get_device_size(tdev.dev);
Should @size say "Device size in megabytes" instead?
Verdict: Needs revision
---
Note:
The agent can sometimes produce false positives although often its
findings are genuine. If you find issues with the review, please
comment this email or ignore the suggestions.
Regards,
LTP AI Reviewer
More information about the ltp
mailing list