From a2aff039dbf2f64b7064ce55a2a716a26d33ca7c Mon Sep 17 00:00:00 2001 From: zeekling Date: Sat, 6 Apr 2024 23:18:46 +0800 Subject: [PATCH] =?UTF-8?q?FSDirectory=E8=AF=A6=E8=A7=A3:=E9=85=8D?= =?UTF-8?q?=E7=BD=AE=E5=92=8C=E5=8F=98=E9=87=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- hdfs/FSDirectory详解.md | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/hdfs/FSDirectory详解.md b/hdfs/FSDirectory详解.md index cddf6e2..246b813 100644 --- a/hdfs/FSDirectory详解.md +++ b/hdfs/FSDirectory详解.md @@ -43,3 +43,17 @@ FSDirectory的操作则全部是在内存中进行的, 并不进行editlog的 - INodeAttributeProvider attributeProvider:用于实现权限管理。 +## 操作类型 + +所有客户端的操作都是通过FSNamesystem.java 的。FSNamesystem.java 会调用具体操作的实现类的。再实现类里面操作时会使用到FSDirectory。 + +### 删除 + +接口: + +```java +boolean delete(String src, boolean recursive, boolean logRetryCache) throws IOException {} +``` + + +