]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
include: define AT_REMOVEDIR on Windows
authorLucian Petrut <lpetrut@cloudbasesolutions.com>
Wed, 28 Apr 2021 12:12:27 +0000 (12:12 +0000)
committerVenky Shankar <vshankar@redhat.com>
Thu, 27 May 2021 13:35:21 +0000 (09:35 -0400)
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>
(cherry picked from commit 4aab6e3c79cb00cf0b921f2b041281692a6c10de)

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