]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
include: define AT_REMOVEDIR on Windows 41064/head
authorLucian Petrut <lpetrut@cloudbasesolutions.com>
Wed, 28 Apr 2021 12:12:27 +0000 (12:12 +0000)
committerLucian Petrut <lpetrut@cloudbasesolutions.com>
Wed, 28 Apr 2021 12:20:46 +0000 (12:20 +0000)
The AT_REMOVEDIR flag is used by a recent change [1] but isn't
defined on Windows.

This commit will add the missing definition. Note that it won't be
passed to OS functions, only being used at the CephFS level.

[1] https://github.com/ceph/ceph/pull/40810

Signed-off-by: Lucian Petrut <lpetrut@cloudbasesolutions.com>
src/include/win32/fs_compat.h

index ef699e0420b8b9ea4edf3fb739360175ec8d93d4..c3405e670f95f38d126eed61d26212557eff8892 100644 (file)
@@ -31,5 +31,6 @@
 #define LOCK_RW    192
 
 #define AT_SYMLINK_NOFOLLOW 0x100
+#define AT_REMOVEDIR        0x200
 
 #define MAXSYMLINKS  65000