Experimental features 实验性功能
Experimental or unstable features may be enabled by
可能启用实验性或不稳定功能
./configure --enable-experimental
but as it says, the interface, command names, output formatting should be considered
unstable and not for production use. However testing is welcome and feedback or bugs
filed as issues.
但正如它所说,界面、命令名称、输出格式应被视为不稳定,不适用于生产环境。然而,欢迎测试和反馈或将错误报告为问题。
In the code use it like:
在代码中使用它如下:
if (EXPERIMENTAL) {
...
}
in case it does not interfere with other code or does not depend on an #if
where it would break default build.
以防它不干扰其他代码或不依赖于会破坏默认构建的#if。
Or:
#if EXPERIMENTAL
...
#endif
for larger code blocks.
用于更大的代码块。
Note 注意
Do not use #ifdef as the macro is always defined so this would not work as
expected.
不要使用#ifdef,因为该宏始终被定义,因此这不会按预期工作。
Each feature should be tracked in an issue with label experimental (list of
active issues https://github.com/kdave/btrfs-progs/labels/experimental), with a
description and a TODO list items. Individual tasks can be tracked in other
issues if needed.
每个功能都应该在带有标签“experimental”的问题中进行跟踪(活跃问题列表 https://github.com/kdave/btrfs-progs/labels/experimental),包括描述和待办事项列表。如有需要,可以在其他问题中跟踪单独的任务。