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

(cherry picked from commit 1b3bceb58c)
This commit is contained in:
Colin Patrick Mccabe 2015-07-22 11:11:38 -07:00
parent bb080b32d4
commit d9876e69ee
2 changed files with 3 additions and 4 deletions

View File

@ -208,6 +208,9 @@ Release 2.8.0 - UNRELEASED
HADOOP-12214. Parse 'HadoopArchive' commandline using cli Options. HADOOP-12214. Parse 'HadoopArchive' commandline using cli Options.
(vinayakumarb) (vinayakumarb)
HADOOP-12184. Remove unused Linux-specific constants in NativeIO (Martin
Walsh via Colin P. McCabe)
OPTIMIZATIONS OPTIMIZATIONS
HADOOP-11785. Reduce the number of listStatus operation in distcp HADOOP-11785. Reduce the number of listStatus operation in distcp

View File

@ -67,9 +67,6 @@ public class NativeIO {
public static final int O_APPEND = 02000; public static final int O_APPEND = 02000;
public static final int O_NONBLOCK = 04000; public static final int O_NONBLOCK = 04000;
public static final int O_SYNC = 010000; 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 // Flags for posix_fadvise() from bits/fcntl.h
/* No further special treatment. */ /* No further special treatment. */
@ -356,7 +353,6 @@ public class NativeIO {
public static final int S_IFREG = 0100000; /* regular */ public static final int S_IFREG = 0100000; /* regular */
public static final int S_IFLNK = 0120000; /* symbolic link */ public static final int S_IFLNK = 0120000; /* symbolic link */
public static final int S_IFSOCK = 0140000; /* socket */ 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_ISUID = 0004000; /* set user id on execution */
public static final int S_ISGID = 0002000; /* set group 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 */ public static final int S_ISVTX = 0001000; /* save swapped text even after use */