From 9da78b82f3b2f7345ee99a781ea89d8a981c495c Mon Sep 17 00:00:00 2001 From: "Scott E. Graves" Date: Tue, 5 Nov 2024 14:02:30 -0600 Subject: [PATCH] debugging --- .../src/drives/winfsp/remotewinfsp/remote_server.cpp | 2 ++ .../src/drives/winfsp/remotewinfsp/remote_winfsp_drive.cpp | 2 ++ repertory/repertory_test/include/fixtures/winfsp_fixture.hpp | 1 + 3 files changed, 5 insertions(+) diff --git a/repertory/librepertory/src/drives/winfsp/remotewinfsp/remote_server.cpp b/repertory/librepertory/src/drives/winfsp/remotewinfsp/remote_server.cpp index 9f7b0723..bc98d163 100644 --- a/repertory/librepertory/src/drives/winfsp/remotewinfsp/remote_server.cpp +++ b/repertory/librepertory/src/drives/winfsp/remotewinfsp/remote_server.cpp @@ -986,6 +986,8 @@ auto remote_server::winfsp_create(PWSTR file_name, UINT32 create_options, {utils::string::to_utf8(file_name)})) .exists()); + std::cout << "ATTRIBUTES: " << std::hex << attributes << std::endl; + attributes |= FILE_FLAG_BACKUP_SEMANTICS; if ((create_options & FILE_DIRECTORY_FILE) != 0U) { attributes |= FILE_FLAG_POSIX_SEMANTICS; diff --git a/repertory/librepertory/src/drives/winfsp/remotewinfsp/remote_winfsp_drive.cpp b/repertory/librepertory/src/drives/winfsp/remotewinfsp/remote_winfsp_drive.cpp index 87a1ba66..759fab6a 100644 --- a/repertory/librepertory/src/drives/winfsp/remotewinfsp/remote_winfsp_drive.cpp +++ b/repertory/librepertory/src/drives/winfsp/remotewinfsp/remote_winfsp_drive.cpp @@ -129,6 +129,8 @@ auto remote_winfsp_drive::Create(PWSTR file_name, UINT32 create_options, UINT64 allocation_size, PVOID * /*file_node*/, PVOID *file_desc, OpenFileInfo *ofi) -> NTSTATUS { + std::cout << "ATTRIBUTES: " << std::hex << attributes << std::endl; + remote::file_info fi{}; std::string normalized_name; BOOLEAN exists = 0; diff --git a/repertory/repertory_test/include/fixtures/winfsp_fixture.hpp b/repertory/repertory_test/include/fixtures/winfsp_fixture.hpp index 9eace8be..df62385d 100644 --- a/repertory/repertory_test/include/fixtures/winfsp_fixture.hpp +++ b/repertory/repertory_test/include/fixtures/winfsp_fixture.hpp @@ -241,6 +241,7 @@ protected: } static void execute_unmount(auto args, auto location) { + std::this_thread::sleep_for(30s); auto unmounted{false}; auto unmount_cmd =