FSDirectory详解:接口 #25

Merged
zeekling merged 2 commits from fsdir into master 2024-04-14 14:40:01 +00:00
Showing only changes of commit 63d301e1d5 - Show all commits

View File

@ -96,3 +96,16 @@ fsd.updateCount(iip, context.quotaDelta(), false);
- 删除EditLog。
- 调用incrDeletedFileCount更新metrics信息。
### 创建文件
**接口**
```java
HdfsFileStatus startFile(String src, PermissionStatus permissions,
String holder, String clientMachine, EnumSet<CreateFlag> flag,
boolean createParent, short replication, long blockSize,
CryptoProtocolVersion[] supportedVersions, String ecPolicyName,
String storagePolicy, boolean logRetryCache) throws IOException {
}
```