refactor(cli): expose summary policy leaves from Rust
Export the file-summary predicates and largest-file-size scan directly from Rust under their existing caller symbols. Remove the redundant C forwarding wrappers while preserving pointer contracts, assertions, return widths, and filesystem behavior. Test Plan: - worker capped format, C syntax, and diff checks - parent capped root clippy and native build - parent capped upstream make -j1 -C tests test - parent capped CLI clippy and tests
This commit is contained in:
+3
-19
@@ -289,8 +289,8 @@ typedef char FIO_rust_compression_params_size[
|
||||
(sizeof(ZSTD_compressionParameters)
|
||||
== 7 * sizeof(unsigned)) ? 1 : -1];
|
||||
|
||||
int FIO_rust_shouldDisplayFileSummary(const FIO_ctx_t* fCtx);
|
||||
int FIO_rust_shouldDisplayMultipleFileSummary(const FIO_ctx_t* fCtx);
|
||||
int FIO_shouldDisplayFileSummary(const FIO_ctx_t* fCtx);
|
||||
int FIO_shouldDisplayMultipleFileSummary(const FIO_ctx_t* fCtx);
|
||||
|
||||
enum {
|
||||
FIO_RUST_MULTI_FILES_ACTION_PROCEED = 0,
|
||||
@@ -309,17 +309,6 @@ int FIO_rust_multiFilesConcatAction(int nbFilesTotal,
|
||||
int displayLevel,
|
||||
int displayLevelCutoff);
|
||||
|
||||
static int FIO_shouldDisplayFileSummary(FIO_ctx_t const* fCtx)
|
||||
{
|
||||
return FIO_rust_shouldDisplayFileSummary(fCtx);
|
||||
}
|
||||
|
||||
static int FIO_shouldDisplayMultipleFileSummary(FIO_ctx_t const* fCtx)
|
||||
{
|
||||
return FIO_rust_shouldDisplayMultipleFileSummary(fCtx);
|
||||
}
|
||||
|
||||
|
||||
/*-*************************************
|
||||
* Parameters: Initialization
|
||||
***************************************/
|
||||
@@ -334,7 +323,7 @@ static int FIO_shouldDisplayMultipleFileSummary(FIO_ctx_t const* fCtx)
|
||||
int FIO_rust_checkFilenameCollisions(const char** filenameTable, unsigned nbFiles);
|
||||
/* FIO_highbit64() is a Rust-owned scalar policy leaf. */
|
||||
unsigned FIO_highbit64(unsigned long long v);
|
||||
unsigned long long FIO_rust_getLargestFileSize(const char** inFileNames, unsigned nbFiles);
|
||||
unsigned long long FIO_getLargestFileSize(const char** inFileNames, unsigned nbFiles);
|
||||
int FIO_rust_adjustParamsForPatchFromMode(FIO_prefs_t* prefs,
|
||||
ZSTD_compressionParameters* comprParams,
|
||||
unsigned long long dictSize,
|
||||
@@ -3492,11 +3481,6 @@ FIO_determineCompressedName(const char* srcFileName, const char* outDirName, con
|
||||
return FIO_rust_determineCompressedName(srcFileName, outDirName, suffix);
|
||||
}
|
||||
|
||||
static unsigned long long FIO_getLargestFileSize(const char** inFileNames, unsigned nbFiles)
|
||||
{
|
||||
return FIO_rust_getLargestFileSize(inFileNames, nbFiles);
|
||||
}
|
||||
|
||||
typedef struct {
|
||||
FIO_ctx_t* fCtx;
|
||||
FIO_prefs_t* prefs;
|
||||
|
||||
Reference in New Issue
Block a user