Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
361 views
in Technique[技术] by (71.8m points)

samba - SMB2 - requesting *just* the FileNameInformation?

I am looking through the SMB2 specification.

https://docs.microsoft.com/en-us/openspecs/windows_protocols/ms-smb2/5606ad47-5ee0-437a-817e-70c366052962

I have a situation where I am unable to fetch a Directory or File's "FileAllInformation" attributes because it returns a STATUS_NOT_SUPPORTED error. The work-around is to fetch only the specific fields that I need.

But I really only need:

  1. FileBasicInformation
  2. FileStandardInformation
  3. FileNameInformation

See https://docs.microsoft.com/en-us/openspecs/windows_protocols/ms-fscc/4718fc40-e539-4014-8e33-b675af74e3e1

I can fetch these bits of information by themselves:

FileStandardInformation - Level 0x4

and I can also fetch

FileStandardInformation - Level 0x5

Because these are able to be used in query.

But FileNameInformation is only able to be used in local.

Is there some way to get the FileNameInformation without fetching the entire FileAllInformation?

question from:https://stackoverflow.com/questions/65908379/smb2-requesting-just-the-filenameinformation

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Reply

0 votes
by (71.8m points)
Waitting for answers

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
OGeek|极客中国-欢迎来到极客的世界,一个免费开放的程序员编程交流平台!开放,进步,分享!让技术改变生活,让极客改变未来! Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...