hadoop-common-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From cmcc...@apache.org
Subject hadoop git commit: HADOOP-12184. Remove unused Linux-specific constants in NativeIO (Martin Walsh via Colin P. McCabe)
Date Wed, 22 Jul 2015 18:35:24 GMT
Repository: hadoop
Updated Branches:
  refs/heads/branch-2 bb080b32d -> d9876e69e


HADOOP-12184. Remove unused Linux-specific constants in NativeIO (Martin Walsh via Colin P.
McCabe)

(cherry picked from commit 1b3bceb58c8e536a75fa3f99cc3ceeaba91a07de)


Project: http://git-wip-us.apache.org/repos/asf/hadoop/repo
Commit: http://git-wip-us.apache.org/repos/asf/hadoop/commit/d9876e69
Tree: http://git-wip-us.apache.org/repos/asf/hadoop/tree/d9876e69
Diff: http://git-wip-us.apache.org/repos/asf/hadoop/diff/d9876e69

Branch: refs/heads/branch-2
Commit: d9876e69ee4489219cd83b57703193d53a567220
Parents: bb080b3
Author: Colin Patrick Mccabe <cmccabe@cloudera.com>
Authored: Wed Jul 22 11:11:38 2015 -0700
Committer: Colin Patrick Mccabe <cmccabe@cloudera.com>
Committed: Wed Jul 22 11:35:14 2015 -0700

----------------------------------------------------------------------
 hadoop-common-project/hadoop-common/CHANGES.txt                  | 3 +++
 .../src/main/java/org/apache/hadoop/io/nativeio/NativeIO.java    | 4 ----
 2 files changed, 3 insertions(+), 4 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/hadoop/blob/d9876e69/hadoop-common-project/hadoop-common/CHANGES.txt
----------------------------------------------------------------------
diff --git a/hadoop-common-project/hadoop-common/CHANGES.txt b/hadoop-common-project/hadoop-common/CHANGES.txt
index f5d9a84..6320dc3 100644
--- a/hadoop-common-project/hadoop-common/CHANGES.txt
+++ b/hadoop-common-project/hadoop-common/CHANGES.txt
@@ -208,6 +208,9 @@ Release 2.8.0 - UNRELEASED
     HADOOP-12214. Parse 'HadoopArchive' commandline using cli Options.
     (vinayakumarb)
 
+    HADOOP-12184. Remove unused Linux-specific constants in NativeIO (Martin
+    Walsh via Colin P. McCabe)
+
   OPTIMIZATIONS
 
     HADOOP-11785. Reduce the number of listStatus operation in distcp

http://git-wip-us.apache.org/repos/asf/hadoop/blob/d9876e69/hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/io/nativeio/NativeIO.java
----------------------------------------------------------------------
diff --git a/hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/io/nativeio/NativeIO.java
b/hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/io/nativeio/NativeIO.java
index 688b955..77a40ea 100644
--- a/hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/io/nativeio/NativeIO.java
+++ b/hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/io/nativeio/NativeIO.java
@@ -67,9 +67,6 @@ public class NativeIO {
     public static final int O_APPEND   = 02000;
     public static final int O_NONBLOCK = 04000;
     public static final int O_SYNC   =  010000;
-    public static final int O_ASYNC  =  020000;
-    public static final int O_FSYNC = O_SYNC;
-    public static final int O_NDELAY = O_NONBLOCK;
 
     // Flags for posix_fadvise() from bits/fcntl.h
     /* No further special treatment.  */
@@ -356,7 +353,6 @@ public class NativeIO {
       public static final int   S_IFREG  = 0100000;  /* regular */
       public static final int   S_IFLNK  = 0120000;  /* symbolic link */
       public static final int   S_IFSOCK = 0140000;  /* socket */
-      public static final int   S_IFWHT  = 0160000;  /* whiteout */
       public static final int S_ISUID = 0004000;  /* set user id on execution */
       public static final int S_ISGID = 0002000;  /* set group id on execution */
       public static final int S_ISVTX = 0001000;  /* save swapped text even after use */


Mime
View raw message