mirror of
				https://github.com/winfsp/winfsp.git
				synced 2025-10-30 19:48:38 -05:00 
			
		
		
		
	Merge pull request #214 from felfert/fix-fuse-ioctl
Fix #213 and a typo in macro FSP_FUSE_CTLCODE_FROM_IOCTL
This commit is contained in:
		| @@ -59,7 +59,7 @@ extern "C" { | |||||||
|  |  | ||||||
| #define FSP_FUSE_DEVICE_TYPE            (0x8000 | 'W' | 'F' * 0x100) /* DeviceIoControl -> ioctl */ | #define FSP_FUSE_DEVICE_TYPE            (0x8000 | 'W' | 'F' * 0x100) /* DeviceIoControl -> ioctl */ | ||||||
| #define FSP_FUSE_CTLCODE_FROM_IOCTL(cmd)\ | #define FSP_FUSE_CTLCODE_FROM_IOCTL(cmd)\ | ||||||
|     (FSP_FUSE_DEVICE_TYPE << 16) | (((c) & 0x0fff) << 2) |     (FSP_FUSE_DEVICE_TYPE << 16) | (((cmd) & 0x0fff) << 2) | ||||||
| #define FSP_FUSE_IOCTL(cmd, isiz, osiz) \ | #define FSP_FUSE_IOCTL(cmd, isiz, osiz) \ | ||||||
|     (                                   \ |     (                                   \ | ||||||
|         (((osiz) != 0) << 31) |         \ |         (((osiz) != 0) << 31) |         \ | ||||||
|   | |||||||
| @@ -2168,6 +2168,7 @@ static NTSTATUS fsp_fuse_intf_Control(FSP_FILE_SYSTEM *FileSystem, | |||||||
|             memcpy(OutputBuffer, InputBuffer, InputBufferLength); |             memcpy(OutputBuffer, InputBuffer, InputBufferLength); | ||||||
|         err = f->ops.ioctl(filedesc->PosixPath, cmd, 0, &fi, 0, OutputBuffer); |         err = f->ops.ioctl(filedesc->PosixPath, cmd, 0, &fi, 0, OutputBuffer); | ||||||
|     } |     } | ||||||
|  |     *PBytesTransferred = OutputBufferLength; | ||||||
|  |  | ||||||
|     return fsp_fuse_ntstatus_from_errno(f->env, err); |     return fsp_fuse_ntstatus_from_errno(f->env, err); | ||||||
| } | } | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user