You are viewing a plain text version of this content. The canonical link for it is here.
Posted to common-issues@hadoop.apache.org by "Charles Lamb (JIRA)" <ji...@apache.org> on 2014/06/02 16:44:02 UTC

[jira] [Commented] (HADOOP-10561) Copy command with preserve option should handle Xattrs

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

Charles Lamb commented on HADOOP-10561:
---------------------------------------

Hi Yi,

The usage message is a little bit confusing. At first it was unclear to me that -ptopx was really -p with options for t, o, p, and x. I would if we could make this a little clearer by saying something like this instead?

 public static final String USAGE = "[-f] [-p | -p[t|o|p|x]] <src> ... <dst>";

or maybe

 public static final String USAGE = "[-f] [-p | -p[topx]] <src> ... <dst>";

and then in the text:

+      "must be a directory. Passing -p preserves status\n" +
+      "([topx]) (timestamps, ownership, permission, XATTR). \n" +
+      "If -p is specified with no <arg>, then preserves " +
+      "timestamps, ownership, permission. Passing -f\n" +

Also, s/XATTR/XAttr/.


> Copy command with preserve option should handle Xattrs
> ------------------------------------------------------
>
>                 Key: HADOOP-10561
>                 URL: https://issues.apache.org/jira/browse/HADOOP-10561
>             Project: Hadoop Common
>          Issue Type: Improvement
>          Components: fs
>    Affects Versions: 3.0.0
>            Reporter: Uma Maheswara Rao G
>            Assignee: Yi Liu
>         Attachments: HADOOP-10561.patch
>
>
> The design docs for Xattrs stated that we handle preserve options with copy commands
> From doc:
> Preserve option of commands like “cp -p” shell command and “distcp -p” should work on XAttrs. 
> In the case of source fs supports XAttrs but target fs does not support, XAttrs will be ignored 
> with warning message



--
This message was sent by Atlassian JIRA
(v6.2#6252)