Skip to content

Commit 4badc83

Browse files
committed
common/ceph_fs: Enable O_DIRECTORY|O_NOFOLLOWUP flags translation under Win
in ceph_flags_sys2wire() Signed-off-by: Igor Fedotov <[email protected]>
1 parent c9d7345 commit 4badc83

File tree

1 file changed

+0
-5
lines changed

1 file changed

+0
-5
lines changed

src/common/ceph_fs.cc

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -77,13 +77,8 @@ int ceph_flags_sys2wire(int flags)
7777
ceph_sys2wire(O_EXCL);
7878
ceph_sys2wire(O_TRUNC);
7979

80-
#ifndef _WIN32
8180
ceph_sys2wire(O_DIRECTORY);
8281
ceph_sys2wire(O_NOFOLLOW);
83-
// In some cases, FILE_FLAG_BACKUP_SEMANTICS may be used instead
84-
// of O_DIRECTORY. We may need some workarounds in order to handle
85-
// the fact that those flags are not available on Windows.
86-
#endif
8782

8883
#undef ceph_sys2wire
8984

0 commit comments

Comments
 (0)