Project

General

Profile

Actions

Bug #13572

closed

SMB Query FileFsVolumeInformation should allow truncation

Added by Gordon Ross over 1 year ago. Updated about 1 year ago.

Status:
Closed
Priority:
Normal
Assignee:
Category:
-
Start date:
Due date:
% Done:

100%

Estimated time:
Difficulty:
Medium
Tags:
Gerrit CR:

Description

Description:
This behaviour can only be seen on recent Windows 10 1903 builds, including 18362.295. We have an existing file and we try to open it with Notepad, VCS or python. We will see an error that tells us file can't be found, for Notepad it says "The system cannot find the file specified". When we try to open the same file with Notepad++ everything is fine. Also, Windows Explorer shows us file contents in preview window.

Steps to Reproduce:
Install Windows 10 1903 update. (Windows 1903 OS BUILD 18362.295)
Try to open file with Notepad, VCS, python (os.stat()). Probably other apps are having problems too.

Update: Turns out reproduction requires setting this Windows registry key:
HKLM/SYSTEM/CurrentControlSet/Services/LanmanWorkstation/Parameters
FileInfoCacheLifetime DWORD 0
Without that registry key/value the client works fine.

Expected Results:
File gets opened.

Actual Results:
File doesn't get open.


Files

win10nocache4.snoop (34.2 KB) win10nocache4.snoop Gordon Ross, 2021-02-20 11:18 PM
win10nocache8.snoop (213 KB) win10nocache8.snoop Gordon Ross, 2021-02-20 11:18 PM
Actions

Also available in: Atom PDF