Skip to content

Commit 38a4dd6

Browse files
Malte Krausjan-cerny
authored andcommitted
add block_size support for Linux partition_state
it got specified in OVAL 5.11.2
1 parent 05a61f3 commit 38a4dd6

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/OVAL/probes/unix/linux/partition_probe.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -219,6 +219,7 @@ static int collect_item(probe_ctx *ctx, oval_schema_version_t over, struct mnten
219219
"total_space", OVAL_DATATYPE_INTEGER, (int64_t)stvfs.f_blocks,
220220
"space_used", OVAL_DATATYPE_INTEGER, (int64_t)(stvfs.f_blocks - stvfs.f_bfree),
221221
"space_left", OVAL_DATATYPE_INTEGER, (int64_t)stvfs.f_bfree,
222+
"block_size", OVAL_DATATYPE_INTEGER, (int64_t)stvfs.f_frsize,
222223
NULL);
223224

224225
#if defined(HAVE_BLKID_GET_TAG_VALUE)

0 commit comments

Comments
 (0)