[
https://issues.apache.org/jira/browse/HDFS-245?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Eli Collins updated HDFS-245:
-----------------------------
Attachment: symlink19-hdfs-delta.patch
symlink19-common-delta.patch
Here are patches that add more tests and implement the above FileContext API.
They are deltas against symlink19 so it's easier to review what's changed. They
also contain some resolutions from merging with trunk. I'm writing more tests
but wanted to post what I have so far for feedback.
Note that they change the default behavior to fully resolve symlinks and add an
API equivalent to {{lstat}} for clients that want to operate on symlinks. The
FileContext API could have been implemented without adding a new ClientProtocol
function by creating a function {{resolveFully}} that calls {{getLinkTarget}}
on the return value of {{resolve}}, but that would require an additional round
trip for all FileContext functions that need to full resolve links.
> Create symbolic links in HDFS
> -----------------------------
>
> Key: HDFS-245
> URL: https://issues.apache.org/jira/browse/HDFS-245
> Project: Hadoop HDFS
> Issue Type: New Feature
> Reporter: dhruba borthakur
> Assignee: dhruba borthakur
> Attachments: 4044_20081030spi.java, designdocv1.txt, designdocv2.txt,
> HADOOP-4044-strawman.patch, symlink-0.20.0.patch, symLink1.patch,
> symLink1.patch, symLink11.patch, symLink12.patch, symLink13.patch,
> symLink14.patch, symLink15.txt, symLink15.txt, symlink16-common.patch,
> symlink16-hdfs.patch, symlink16-mr.patch, symlink17-common.txt,
> symlink17-hdfs.txt, symlink18-common.txt, symlink19-common-delta.patch,
> symlink19-common.txt, symlink19-common.txt, symlink19-hdfs-delta.patch,
> symlink19-hdfs.txt, symLink4.patch, symLink5.patch, symLink6.patch,
> symLink8.patch, symLink9.patch
>
>
> HDFS should support symbolic links. A symbolic link is a special type of file
> that contains a reference to another file or directory in the form of an
> absolute or relative path and that affects pathname resolution. Programs
> which read or write to files named by a symbolic link will behave as if
> operating directly on the target file. However, archiving utilities can
> handle symbolic links specially and manipulate them directly.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.