2.2.2.5 FILE_METADATA_ENTRY

The FILE_METADATA_ENTRY structure specifies the metadata information for a file in a sync batch.


0


1


2


3


4


5


6


7


8


9

1
0


1


2


3


4


5


6


7


8


9

2
0


1


2


3


4


5


6


7


8


9

3
0


1

FileId (24 bytes)

...

...

SyncVersion

...

...

FileStreamVersion (16 bytes)

...

...

ParentId (24 bytes)

...

...

FileAttributes

NamespaceChangeTime

...

AttributeChangeTime

...

CreatedTime

...

ModifiedTime

...

ContentSize

...

Name (variable)

...

...

OriginatingDeviceNameIndex

FileId (24 bytes): An identifier that uniquely identifies the file or directory. This MUST be in the format specified in [MS-FSVCA] section 2.1.

SyncVersion (12 bytes): SyncVersion is the version of the file entry. This MUST be in the format specified in [MS-FSVCA] section 2.9.

FileStreamVersion (16 bytes): A GUID representing the version of the file content. This MUST not be used for directories.

ParentId (24 bytes): ParentId is an identifier for the metadata of the parent item. The parent item MUST be a directory. Files without a parent MUST set ParentId.GidPrefix to 0x0000000000000000 and ParentId.UniqueId to 0x00700012000000000000000000000000. This MUST be in the format specified in [MS-FSVCA] section 2.1.

FileAttributes (4 bytes): A 32-bit unsigned integer representing the attributes of the file allowed by the underlying object store.<2>

NamespaceChangeTime (8 bytes): The time at which the name of the file or its ParentId was changed. This field is used for resolving conflicts during synchronization. This MUST be in the format specified in [MS-DTYP] section 2.3.3.

AttributeChangeTime (8 bytes): The time at which the attributes of the file were changed. This field is used for resolving conflicts during synchronization. This MUST be in the format specified in [MS-DTYP] section 2.3.3.

CreatedTime (8 bytes): The time at which the file was created. This MUST be in the format specified in [MS-DTYP] section 2.3.1.

ModifiedTime (8 bytes): The time at which the file was last modified. This MUST be in the format specified in [MS-DTYP] section 2.3.1.

ContentSize (8 bytes): A 64-bit unsigned integer representing the size of the file in bytes. This MUST be zero for a directory entry.

Name (variable): An ECS_STRING structure, as specified in section 2.2.2.27, representing the name of the file or directory. The string in this structure MUST not be empty.

OriginatingDeviceNameIndex (2 bytes): A 16-bit unsigned integer representing the index of the string representing the device in the DeviceNames field of the SYNC_CHANGE_BATCH structure, as specified in section 2.2.2.14.