]> git.proxmox.com Git - ceph.git/blobdiff - ceph/src/common/ceph_fs.cc
update source to Ceph Pacific 16.2.2
[ceph.git] / ceph / src / common / ceph_fs.cc
index 7a4b59f872a9766d960c79ff2797111301521c86..380b401df301a5755a7bf02452448f6ef1fe96f9 100644 (file)
@@ -76,8 +76,14 @@ int ceph_flags_sys2wire(int flags)
        ceph_sys2wire(O_CREAT);
        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