|
@@ -1040,21 +1040,10 @@ public abstract class AbstractFileSystem {
|
|
|
|
|
|
/**
|
|
/**
|
|
* Set an xattr of a file or directory.
|
|
* Set an xattr of a file or directory.
|
|
- * The name must be prefixed with user/trusted/security/system and
|
|
|
|
- * followed by ".". For example, "user.attr".
|
|
|
|
|
|
+ * The name must be prefixed with the namespace followed by ".". For example,
|
|
|
|
+ * "user.attr".
|
|
* <p/>
|
|
* <p/>
|
|
- * A regular user can only set an xattr for the "user" namespace.
|
|
|
|
- * The super user can set an xattr of either the "user" or "trusted" namespaces.
|
|
|
|
- * The xattrs of the "security" and "system" namespaces are only used/exposed
|
|
|
|
- * internally by/to the FS impl.
|
|
|
|
- * <p/>
|
|
|
|
- * The access permissions of an xattr in the "user" namespace are
|
|
|
|
- * defined by the file and directory permission bits.
|
|
|
|
- * An xattr can only be set when the logged-in user has the correct permissions.
|
|
|
|
- * If the xattr exists, it will be replaced.
|
|
|
|
- * <p/>
|
|
|
|
- * @see <a href="http://en.wikipedia.org/wiki/Extended_file_attributes">
|
|
|
|
- * http://en.wikipedia.org/wiki/Extended_file_attributes</a>
|
|
|
|
|
|
+ * Refer to the HDFS extended attributes user documentation for details.
|
|
*
|
|
*
|
|
* @param path Path to modify
|
|
* @param path Path to modify
|
|
* @param name xattr name.
|
|
* @param name xattr name.
|
|
@@ -1069,21 +1058,10 @@ public abstract class AbstractFileSystem {
|
|
|
|
|
|
/**
|
|
/**
|
|
* Set an xattr of a file or directory.
|
|
* Set an xattr of a file or directory.
|
|
- * The name must be prefixed with user/trusted/security/system and
|
|
|
|
- * followed by ".". For example, "user.attr".
|
|
|
|
- * <p/>
|
|
|
|
- * A regular user can only set an xattr for the "user" namespace.
|
|
|
|
- * The super user can set an xattr of either the "user" or "trusted" namespaces.
|
|
|
|
- * The xattrs of the "security" and "system" namespaces are only used/exposed
|
|
|
|
- * internally by/to the FS impl.
|
|
|
|
|
|
+ * The name must be prefixed with the namespace followed by ".". For example,
|
|
|
|
+ * "user.attr".
|
|
* <p/>
|
|
* <p/>
|
|
- * The access permissions of an xattr in the "user" namespace are
|
|
|
|
- * defined by the file and directory permission bits.
|
|
|
|
- * An xattr can only be set when the logged-in user has the correct permissions.
|
|
|
|
- * If the xattr exists, it will be replaced.
|
|
|
|
- * <p/>
|
|
|
|
- * @see <a href="http://en.wikipedia.org/wiki/Extended_file_attributes">
|
|
|
|
- * http://en.wikipedia.org/wiki/Extended_file_attributes</a>
|
|
|
|
|
|
+ * Refer to the HDFS extended attributes user documentation for details.
|
|
*
|
|
*
|
|
* @param path Path to modify
|
|
* @param path Path to modify
|
|
* @param name xattr name.
|
|
* @param name xattr name.
|
|
@@ -1099,18 +1077,10 @@ public abstract class AbstractFileSystem {
|
|
|
|
|
|
/**
|
|
/**
|
|
* Get an xattr for a file or directory.
|
|
* Get an xattr for a file or directory.
|
|
- * The name must be prefixed with user/trusted/security/system and
|
|
|
|
- * followed by ".". For example, "user.attr".
|
|
|
|
- * <p/>
|
|
|
|
- * A regular user can only get an xattr for the "user" namespace.
|
|
|
|
- * The super user can get an xattr of either the "user" or "trusted" namespaces.
|
|
|
|
- * The xattrs of the "security" and "system" namespaces are only used/exposed
|
|
|
|
- * internally by/to the FS impl.
|
|
|
|
- * <p/>
|
|
|
|
- * An xattr will only be returned when the logged-in user has the correct permissions.
|
|
|
|
|
|
+ * The name must be prefixed with the namespace followed by ".". For example,
|
|
|
|
+ * "user.attr".
|
|
* <p/>
|
|
* <p/>
|
|
- * @see <a href="http://en.wikipedia.org/wiki/Extended_file_attributes">
|
|
|
|
- * http://en.wikipedia.org/wiki/Extended_file_attributes</a>
|
|
|
|
|
|
+ * Refer to the HDFS extended attributes user documentation for details.
|
|
*
|
|
*
|
|
* @param path Path to get extended attribute
|
|
* @param path Path to get extended attribute
|
|
* @param name xattr name.
|
|
* @param name xattr name.
|
|
@@ -1127,13 +1097,7 @@ public abstract class AbstractFileSystem {
|
|
* Only those xattrs for which the logged-in user has permissions to view
|
|
* Only those xattrs for which the logged-in user has permissions to view
|
|
* are returned.
|
|
* are returned.
|
|
* <p/>
|
|
* <p/>
|
|
- * A regular user can only get xattrs for the "user" namespace.
|
|
|
|
- * The super user can only get xattrs for "user" and "trusted" namespaces.
|
|
|
|
- * The xattr of "security" and "system" namespaces are only used/exposed
|
|
|
|
- * internally by/to the FS impl.
|
|
|
|
- * <p/>
|
|
|
|
- * @see <a href="http://en.wikipedia.org/wiki/Extended_file_attributes">
|
|
|
|
- * http://en.wikipedia.org/wiki/Extended_file_attributes</a>
|
|
|
|
|
|
+ * Refer to the HDFS extended attributes user documentation for details.
|
|
*
|
|
*
|
|
* @param path Path to get extended attributes
|
|
* @param path Path to get extended attributes
|
|
* @return Map<String, byte[]> describing the XAttrs of the file or directory
|
|
* @return Map<String, byte[]> describing the XAttrs of the file or directory
|
|
@@ -1149,13 +1113,7 @@ public abstract class AbstractFileSystem {
|
|
* Only those xattrs for which the logged-in user has permissions to view
|
|
* Only those xattrs for which the logged-in user has permissions to view
|
|
* are returned.
|
|
* are returned.
|
|
* <p/>
|
|
* <p/>
|
|
- * A regular user can only get xattrs for the "user" namespace.
|
|
|
|
- * The super user can only get xattrs for "user" and "trusted" namespaces.
|
|
|
|
- * The xattr of "security" and "system" namespaces are only used/exposed
|
|
|
|
- * internally by/to the FS impl.
|
|
|
|
- * <p/>
|
|
|
|
- * @see <a href="http://en.wikipedia.org/wiki/Extended_file_attributes">
|
|
|
|
- * http://en.wikipedia.org/wiki/Extended_file_attributes</a>
|
|
|
|
|
|
+ * Refer to the HDFS extended attributes user documentation for details.
|
|
*
|
|
*
|
|
* @param path Path to get extended attributes
|
|
* @param path Path to get extended attributes
|
|
* @param names XAttr names.
|
|
* @param names XAttr names.
|
|
@@ -1173,14 +1131,7 @@ public abstract class AbstractFileSystem {
|
|
* Only the xattr names for which the logged-in user has permissions to view
|
|
* Only the xattr names for which the logged-in user has permissions to view
|
|
* are returned.
|
|
* are returned.
|
|
* <p/>
|
|
* <p/>
|
|
- * A regular user can only get xattr names for the "user" namespace.
|
|
|
|
- * The super user can only get xattr names for the "user" and "trusted"
|
|
|
|
- * namespaces.
|
|
|
|
- * The xattr names in the "security" and "system" namespaces are only
|
|
|
|
- * used/exposed internally by/to the FS impl.
|
|
|
|
- * <p/>
|
|
|
|
- * @see <a href="http://en.wikipedia.org/wiki/Extended_file_attributes">
|
|
|
|
- * http://en.wikipedia.org/wiki/Extended_file_attributes</a>
|
|
|
|
|
|
+ * Refer to the HDFS extended attributes user documentation for details.
|
|
*
|
|
*
|
|
* @param path Path to get extended attributes
|
|
* @param path Path to get extended attributes
|
|
* @return Map<String, byte[]> describing the XAttrs of the file or directory
|
|
* @return Map<String, byte[]> describing the XAttrs of the file or directory
|
|
@@ -1194,21 +1145,10 @@ public abstract class AbstractFileSystem {
|
|
|
|
|
|
/**
|
|
/**
|
|
* Remove an xattr of a file or directory.
|
|
* Remove an xattr of a file or directory.
|
|
- * The name must be prefixed with user/trusted/security/system and
|
|
|
|
- * followed by ".". For example, "user.attr".
|
|
|
|
- * <p/>
|
|
|
|
- * A regular user can only remove an xattr for the "user" namespace.
|
|
|
|
- * The super user can remove an xattr of either the "user" or "trusted" namespaces.
|
|
|
|
- * The xattrs of the "security" and "system" namespaces are only used/exposed
|
|
|
|
- * internally by/to the FS impl.
|
|
|
|
- * <p/>
|
|
|
|
- * The access permissions of an xattr in the "user" namespace are
|
|
|
|
- * defined by the file and directory permission bits.
|
|
|
|
- * An xattr can only be set when the logged-in user has the correct permissions.
|
|
|
|
- * If the xattr exists, it will be replaced.
|
|
|
|
|
|
+ * The name must be prefixed with the namespace followed by ".". For example,
|
|
|
|
+ * "user.attr".
|
|
* <p/>
|
|
* <p/>
|
|
- * @see <a href="http://en.wikipedia.org/wiki/Extended_file_attributes">
|
|
|
|
- * http://en.wikipedia.org/wiki/Extended_file_attributes</a>
|
|
|
|
|
|
+ * Refer to the HDFS extended attributes user documentation for details.
|
|
*
|
|
*
|
|
* @param path Path to remove extended attribute
|
|
* @param path Path to remove extended attribute
|
|
* @param name xattr name
|
|
* @param name xattr name
|