[ 
https://issues.apache.org/jira/browse/HADOOP-12160?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14626145#comment-14626145
 ] 

Masatake Iwasaki commented on HADOOP-12160:
-------------------------------------------

Because {{createSnapshot}} returns {{Path}}, we do not necessarily have to add 
new concepts to the model (in model.md). Directories and files in snapshot 
could be considered as directories and files having special path.

If we add contents to model, it could be something like this::

{noformat}
  def Filesystem : (Directories:set[Path], Files:[Path:List[byte]], 
Symlinks:set[Path], Snapshots:set[Snapshot])

  def Snapshot : (Path, SnapshotName)

  def SnapshotName : PathElement 
{noformat}


> Add snapshot APIs to the FileSystem specification
> -------------------------------------------------
>
>                 Key: HADOOP-12160
>                 URL: https://issues.apache.org/jira/browse/HADOOP-12160
>             Project: Hadoop Common
>          Issue Type: Sub-task
>          Components: documentation
>    Affects Versions: 2.7.1
>            Reporter: Arpit Agarwal
>            Assignee: Masatake Iwasaki
>         Attachments: HADOOP-12160.002.patch
>
>
> The following snapshot APIs should be documented in the [FileSystem 
> specification|https://hadoop.apache.org/docs/current/hadoop-project-dist/hadoop-common/filesystem/filesystem.html].
> # createSnapshot(Path path)
> # createSnapshot(Path path, String snapshotName)
> # renameSnapshot(Path path, String snapshotOldName, String snapshotNewName)
> # deleteSnapshot(Path path, String snapshotName)



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to