From: Igor Fedotov Date: Mon, 27 Jan 2025 10:52:00 +0000 (+0300) Subject: common/ceph_fs: Enable O_DIRECTORY|O_NOFOLLOWUP flags translation under Win X-Git-Tag: testing/wip-pdonnell-testing-20250212.134243-debug~15^2 X-Git-Url: http://git.apps.os.sepia.ceph.com/?a=commitdiff_plain;h=4badc83940fd7c072fd28fe81892c98304d03502;p=ceph-ci.git common/ceph_fs: Enable O_DIRECTORY|O_NOFOLLOWUP flags translation under Win in ceph_flags_sys2wire() Signed-off-by: Igor Fedotov --- diff --git a/src/common/ceph_fs.cc b/src/common/ceph_fs.cc index 380b401df30..588887c951a 100644 --- a/src/common/ceph_fs.cc +++ b/src/common/ceph_fs.cc @@ -77,13 +77,8 @@ int ceph_flags_sys2wire(int flags) ceph_sys2wire(O_EXCL); ceph_sys2wire(O_TRUNC); - #ifndef _WIN32 ceph_sys2wire(O_DIRECTORY); ceph_sys2wire(O_NOFOLLOW); - // In some cases, FILE_FLAG_BACKUP_SEMANTICS may be used instead - // of O_DIRECTORY. We may need some workarounds in order to handle - // the fact that those flags are not available on Windows. - #endif #undef ceph_sys2wire