Dochelp in Bcc
Casemail in Cc

Hi Aurelien,
Thank you for your inquiry about Microsoft open specifications. We have created 
an incident 119111524002315  for investigating this issue. One of the Open 
specifications team member will contact you shortly.

Regards,
Sreekanth Nadendla
Microsoft Windows Open Specifications


-----Original Message-----
From: Aurélien Aptel <[email protected]> 
Sent: Fri, November 15, 2019 6:49 AM
To: [email protected]
Cc: Interoperability Documentation Help <[email protected]>
Subject: Create Context SMB2_CREATE_QUERY_ON_DISK_ID payload


[[ Gah, sorry about duplicate email, hit the wrong keys... ]] [[ I forgot to CC 
dochelp in my initial one ]]

Hi,

There is a create context SMB2_CREATE_QUERY_ON_DISK_ID that MS-SMB2 describes 
as, for the request:

    ("QFid")
    The client is requesting that the server return a 32-
    byte opaque BLOB that uniquely identifies the file
    being opened on disk. No data is passed to the
    server by the client.

for the response:

    ("QFid")
    The server returned DiskID of the open file in a volume.
    SMB2_CREATE_CONTEXT Response takes the same
    form as defined in section 2.2.13.2.


So on one side it reads "32-byte opaque blob" but on the other "DiskID". I 
could not find a reference to what is a DiskId.

After some testing Windows Server seems to return the persistent file id
+ something, which Samba does as well, with the following note:

    /* From conversations with Microsoft engineers at
       the MS plugfest. The first 8 bytes are the "volume index"
       == inode, the second 8 bytes are the "volume id",
       == dev. This will be updated in the SMB2 doc. */

Samba returns
- file id (8 bytes)
- device id (4 bytes)
- padded to 32 bytes with garbage

We started to rely on the first 8 bytes being the FileId in the linux kernel 
client but recently we had a customer with a Dell EMC server that doesn't do 
that.

Could we clarify the situation on the meaning of this payload, or at least the 
first 8 bytes being the FileId?

Cheers,
--
Aurélien Aptel / SUSE Labs Samba Team
GPG: 1839 CB5F 9F5B FB9B AA97  8C99 03C8 A49B 521B D5D3 SUSE Software Solutions 
Germany GmbH, Maxfeldstr. 5, 90409 Nürnberg, DE
GF: Felix Imendörffer, Mary Higgins, Sri Rasiah HRB 247165 (AG München)
_______________________________________________
cifs-protocol mailing list
[email protected]
https://lists.samba.org/mailman/listinfo/cifs-protocol

Reply via email to