]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
common/ceph_fs: Enable O_DIRECTORY|O_NOFOLLOWUP flags translation under Win 60909/head
authorIgor Fedotov <igor.fedotov@croit.io>
Mon, 27 Jan 2025 10:52:00 +0000 (13:52 +0300)
committerIgor Fedotov <igor.fedotov@croit.io>
Wed, 5 Feb 2025 15:30:10 +0000 (18:30 +0300)
in ceph_flags_sys2wire()

Signed-off-by: Igor Fedotov <igor.fedotov@croit.io>
src/common/ceph_fs.cc

index 380b401df301a5755a7bf02452448f6ef1fe96f9..588887c951aa9ef1ad874f8fd6097c6a9e466299 100644 (file)
@@ -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