ChenSammi commented on code in PR #4846:
URL: https://github.com/apache/ozone/pull/4846#discussion_r1226333567


##########
hadoop-hdds/docs/content/feature/Quota.zh.md:
##########
@@ -61,6 +61,30 @@ menu:
 
  f. 
如果集群从小于1.1.0的旧版本升级而来,则不建议在旧volume和bucket(可以通过查看volume或者bucket的info确认,如果quota值是-2,那么这个volume或者bucket就是旧的)上使用配额。由于旧的key没有计算到bucket的命名空间配额中,所以此时配额设置是不准确的。
 
+g. 对于移动到垃圾桶的文件和目录,垃圾桶将在以下情况下占用额外的命名空间:
+- 对于桶中垃圾的内部目录路径,即 `/.trash/<user>/<current or timestamp>`
+- 用于将文件/目录移动到某个层次结构中存在的垃圾时创建的额外路径。例如:
+
+```
+- 来源:/<vol>/<bucket>/dir1/dir2/file.txt
+场景 1:
+- 将 file.txt 移至回收站(删除操作时)
+- 使用“dir1 和 dir2”作为额外命名空间创建的垃圾桶与垃圾桶中的源具有相同的路径:
+  /<vol>/<bucket>/.trash/<user>/current/dir1/dir2/file.txt
+  所以这将消耗“2”的额外名称空间
+  
+场景 2:
+- 将 dir2 移至垃圾箱(删除操作时)
+- 使用“dir1”创建的垃圾作为额外的命名空间

Review Comment:
   使用“dir1”创建的垃圾作为额外的命名空间
   ->
   使用“dir1”在垃圾桶中创建与来源相同的路径



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to