Skip to content

Commit 2bc10f6

Browse files
committed
document future improvements & refactoring
1 parent f7c2fe1 commit 2bc10f6

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

src/main/java/org/apache/hadoop/fs/glusterfs/GlusterFileSystem.java

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,13 @@
4646
* This package provides interface for hadoop jobs (incl. Map/Reduce)
4747
* to access files in GlusterFS backed file system via FUSE mount
4848
*/
49+
50+
51+
/*
52+
*
53+
* TODO: Evaluate LocalFileSystem and RawLocalFileSystem as possible delegate file systems to remove & refactor this code.
54+
*
55+
*/
4956
public class GlusterFileSystem extends FileSystem {
5057

5158
private FileSystem glusterFs = null;
@@ -180,6 +187,12 @@ public boolean exists(Path path) throws IOException {
180187
return f.exists();
181188
}
182189

190+
/*
191+
* Code copied from:
192+
* @see org.apache.hadoop.fs.RawLocalFileSystem#mkdirs(org.apache.hadoop.fs.Path)
193+
* as incremental fix towards a re-write. of this class to remove duplicity.
194+
*
195+
*/
183196
public boolean mkdirs(Path f, FsPermission permission) throws IOException {
184197

185198
if(f==null) return true;

0 commit comments

Comments
 (0)