mirror of
				https://github.com/winfsp/winfsp.git
				synced 2025-10-31 12:08:41 -05:00 
			
		
		
		
	inc, src: PostDispositionWhenNecessaryOnly
- Rename PostDispositionForDirOnly to PostDispositionWhenNecessaryOnly - Implement PostDispositionWhenNecessaryOnly across the board
This commit is contained in:
		| @@ -1142,7 +1142,8 @@ FSP_API NTSTATUS FspFileSystemOpSetInformation(FSP_FILE_SYSTEM *FileSystem, | ||||
|         break; | ||||
|     case 13/*FileDispositionInformation*/: | ||||
|     case 64/*FileDispositionInformationEx*/: | ||||
|         if (0 == (0x10/*IGNORE_READONLY_ATTRIBUTE*/ & Request->Req.SetInformation.Info.DispositionEx.Flags) && | ||||
|         if (1/*DELETE*/ == (0x11/*DELETE|IGNORE_READONLY_ATTRIBUTE*/ & | ||||
|                 Request->Req.SetInformation.Info.DispositionEx.Flags) && | ||||
|             0 != FileSystem->Interface->GetFileInfo) | ||||
|         { | ||||
|             Result = FileSystem->Interface->GetFileInfo(FileSystem, | ||||
|   | ||||
| @@ -184,6 +184,8 @@ static NTSTATUS fsp_fuse_loop_start(struct fuse *f) | ||||
|             f->has_slashdot = 0 == err && 0040000 == (stbuf.st_mode & 0170000); | ||||
|         } | ||||
|     } | ||||
|     if (0 == (f->conn_want & FSP_FUSE_CAP_DELETE_ACCESS) || 0 == f->ops.access) | ||||
|         f->VolumeParams.PostDispositionWhenNecessaryOnly = 1; | ||||
|     if (0 != f->ops.listxattr && 0 != f->ops.getxattr && | ||||
|         0 != f->ops.setxattr && 0 != f->ops.removexattr) | ||||
|         f->VolumeParams.ExtendedAttributes = 1; | ||||
|   | ||||
		Reference in New Issue
	
	Block a user