Ignore:
Timestamp:
Aug 2, 2010, 8:16:45 PM (15 years ago)
Author:
Silvan Scherrer
Message:

Samba Server 3.5: trunk update to 3.5.4

Location:
trunk/server
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/server

  • trunk/server/source3/smbd/smb2_create.c

    r414 r480  
    652652                if (qfid) {
    653653                        uint8_t p[32];
     654                        uint64_t file_index = get_FileIndex(result->conn,
     655                                                        &result->fsp_name->st);
    654656                        DATA_BLOB blob = data_blob_const(p, sizeof(p));
    655657
    656658                        ZERO_STRUCT(p);
    657659
    658                         /* TODO: maybe use result->file_id */
    659                         SIVAL(p, 0, result->fsp_name->st.st_ex_ino);/* FileIndexLow */
    660                         SIVAL(p, 4, result->fsp_name->st.st_ex_dev);/* FileIndexHigh */
     660                        /* From conversations with Microsoft engineers at
     661                           the MS plugfest. The first 8 bytes are the "volume index"
     662                           == inode, the second 8 bytes are the "volume id",
     663                           == dev. This will be updated in the SMB2 doc. */
     664                        SBVAL(p, 0, file_index);
     665                        SIVAL(p, 8, result->fsp_name->st.st_ex_dev);/* FileIndexHigh */
    661666
    662667                        status = smb2_create_blob_add(state, &out_context_blobs,
Note: See TracChangeset for help on using the changeset viewer.