AltraMayor / AltraMayor/f3

Better documentation on f3write

未关闭
#121 0 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看
Documentation
主要语言
C
星标
3.4k
派生
177
平均合并
2 天 15 小时
30 天内合并 PR
2

描述

I was looking for what data `f3write` writes to the drive.
The README.md only states that
> f3write will write large files to your mounted disk

But are those predictable? Random? Just 0xFF?
There are actually tools like `stressdisk` that write the same 1GB file until the disk is full.
So the documentation was no help and I had to read the source code.

In https://github.com/AltraMayor/f3/blob/master/f3write.c#L131 I found `sector[i] = random_number(sector[i - 1]);`.
And finally in `tools.h` I found `static inline uint64_t random_number(uint64_t prv_number) {return prv_number * 4294967311ULL + 17;}`

So please add to the documentation that

> f3write will write large files of pseudorandom data to your mounted disk

Thank you!

贡献指南

这个仓库没有索引到贡献指南

评估

这个 Issue 还没有评估数据。

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。