Details
-
Bug
-
Status: Resolved
-
Major
-
Resolution: Fixed
-
None
-
None
-
None
-
Reviewed
Description
truncate will fail when use viewFS.
@Override public boolean truncate(final Path f, final long newLength) throws IOException { InodeTree.ResolveResult<FileSystem> res = fsState.resolve(getUriPath(f), true); return res.targetFileSystem.truncate(f, newLength); }
Path should be like below:
return res.targetFileSystem.truncate(f, newLength); should be return res.targetFileSystem.truncate(res.remainingPath, newLength);