mirror of
https://github.com/ceph/ceph
synced 2024-12-18 17:37:38 +00:00
java: add O_WRONLY open flag
Signed-off-by: Noah Watkins <noahwatkins@gmail.com>
This commit is contained in:
parent
712bfa59b9
commit
1c45775a83
@ -44,6 +44,7 @@ public class CephMount {
|
||||
public static final int O_CREAT = 8;
|
||||
public static final int O_TRUNC = 16;
|
||||
public static final int O_EXCL = 32;
|
||||
public static final int O_WRONLY = 64;
|
||||
|
||||
/*
|
||||
* Whence flags for seek().
|
||||
|
@ -53,6 +53,7 @@
|
||||
#define JAVA_O_CREAT 8
|
||||
#define JAVA_O_TRUNC 16
|
||||
#define JAVA_O_EXCL 32
|
||||
#define JAVA_O_WRONLY 64
|
||||
|
||||
/*
|
||||
* Whence flags for seek(). sync with CephMount.java if changed.
|
||||
@ -94,6 +95,7 @@ static inline int fixup_open_flags(jint jflags)
|
||||
FIXUP_OPEN_FLAG(O_CREAT)
|
||||
FIXUP_OPEN_FLAG(O_TRUNC)
|
||||
FIXUP_OPEN_FLAG(O_EXCL)
|
||||
FIXUP_OPEN_FLAG(O_WRONLY)
|
||||
|
||||
#undef FIXUP_OPEN_FLAG
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user