From 35b5f1f9c56ce08e7b330e7e4c02803bfa563dd5 Mon Sep 17 00:00:00 2001 From: Zach Brown Date: Fri, 15 Jun 2018 15:18:29 -0700 Subject: [PATCH] scoutfs-utils: add fallocate corruption source Signed-off-by: Zach Brown --- utils/man/scoutfs-corruption.7 | 9 +++++---- utils/src/format.h | 1 + 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/utils/man/scoutfs-corruption.7 b/utils/man/scoutfs-corruption.7 index 32ea5a49..980c1af1 100644 --- a/utils/man/scoutfs-corruption.7 +++ b/utils/man/scoutfs-corruption.7 @@ -164,7 +164,7 @@ than the last child reference's key. .sp .TP -.B SC_EXTENT_ADD_CLEANUP, SC_EXTENT_REM_CLEANUP, SC_DATA_EXTENT_TRUNC_CLEANUP, SC_DATA_EXTENT_ALLOC_CLEANUP, SC_SERVER_EXTENT_CLEANUP +.B SC_EXTENT_ADD_CLEANUP, SC_EXTENT_REM_CLEANUP, SC_DATA_EXTENT_TRUNC_CLEANUP, SC_DATA_EXTENT_ALLOC_CLEANUP, SC_DATA_EXTENT_FALLOCATE_CLEANUP, SC_SERVER_EXTENT_CLEANUP Extents are used to track regions of blocks or files. The process of modifying an extent creates and destroys intermediate extents, for @@ -188,9 +188,10 @@ removing extents. The .I _DATA_EXTENT_ -cases occur in file mapping extents while either truncating (removing) -extents from a file or while allocating extents for a newly written -region of a file. +cases occur in file mapping extents while truncating (removing) +extents from a file, while allocating extents for a newly written +region of a file, or while using fallocate to pre-allocate extents +to the file. The .I diff --git a/utils/src/format.h b/utils/src/format.h index f9a33b83..e3aa67d7 100644 --- a/utils/src/format.h +++ b/utils/src/format.h @@ -622,6 +622,7 @@ enum { SC_DATA_EXTENT_TRUNC_CLEANUP, SC_DATA_EXTENT_ALLOC_CLEANUP, SC_SERVER_EXTENT_CLEANUP, + SC_DATA_EXTENT_FALLOCATE_CLEANUP, SC_NR_SOURCES, };