如果您将文件从一个文件系统复制到另一个文件系统,那么还有一种好的测试方法,即比较索引节点数目,这将显示分配了多少个索引节点。
Another good test, if you are copying file system to file system, is to compare inode Numbers; these show how many inodes have been allocated.
这里强调了如果想从语义上进行正确的数值比较,则应使用DOUBLE索引。
This underlines that you should use DOUBLE indexes if you want semantically correct numeric comparisons.
如果会绕过索引,应该对比较表达式的RHS执行类型转换。
If the index is being bypassed, then the RHS of the comparison should be type-cast.
应用推荐