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: v20.0.0~197^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=refs%2Fpull%2F60909%2Fhead;p=ceph.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 380b401df301..588887c951aa 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