From 627ad8be8c0eb5c109444a57d0719b486e91130c Mon Sep 17 00:00:00 2001 From: Bill Zissimopoulos Date: Fri, 21 Jan 2022 16:55:42 +0000 Subject: [PATCH] tst: ptfs: eliminate FILE_SUPPORTS_POSIX_UNLINK_RENAME --- tst/ntptfs/ptfs.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/tst/ntptfs/ptfs.c b/tst/ntptfs/ptfs.c index 279fdcf2..dc1ca7ac 100644 --- a/tst/ntptfs/ptfs.c +++ b/tst/ntptfs/ptfs.c @@ -1172,7 +1172,7 @@ NTSTATUS PtfsCreate( ((FsAttributeMask & PtfsReparsePoints) ? FILE_SUPPORTS_REPARSE_POINTS : 0) | ((FsAttributeMask & PtfsNamedStreams) ? FILE_NAMED_STREAMS : 0) | ((FsAttributeMask & PtfsExtendedAttributes) ? FILE_SUPPORTS_EXTENDED_ATTRIBUTES : 0) | - FILE_SUPPORTS_POSIX_UNLINK_RENAME | + 0x00000400/*FILE_SUPPORTS_POSIX_UNLINK_RENAME*/ | FILE_READ_ONLY_VOLUME; memset(&VolumeParams, 0, sizeof VolumeParams); @@ -1189,7 +1189,8 @@ NTSTATUS PtfsCreate( VolumeParams.ReparsePoints = !!(FsAttrInfo.V.FileSystemAttributes & FILE_SUPPORTS_REPARSE_POINTS); VolumeParams.NamedStreams = !!(FsAttrInfo.V.FileSystemAttributes & FILE_NAMED_STREAMS); VolumeParams.ExtendedAttributes = !!(FsAttrInfo.V.FileSystemAttributes & FILE_SUPPORTS_EXTENDED_ATTRIBUTES); - VolumeParams.SupportsPosixUnlinkRename = !!(FsAttrInfo.V.FileSystemAttributes & FILE_SUPPORTS_POSIX_UNLINK_RENAME); + VolumeParams.SupportsPosixUnlinkRename = !!(FsAttrInfo.V.FileSystemAttributes & 0x00000400 + /*FILE_SUPPORTS_POSIX_UNLINK_RENAME*/); VolumeParams.ReadOnlyVolume = !!(FsAttrInfo.V.FileSystemAttributes & FILE_READ_ONLY_VOLUME); VolumeParams.PostCleanupWhenModifiedOnly = 1; VolumeParams.PassQueryDirectoryPattern = 1;