4.1 Abstract Protocol Examples
In the following examples, two machines—A and B—synchronize a common replicated folder using the DFS-R synchronization protocol. The examples are intended to illustrate the use of the basic DFS-R components and data structures.
Assume that machine A starts with a database that has a designated record for the replicated folder root. A designated machine R, the replicated folder root, owns this resource. The fields of the root record in the database maintained by DFS-R include the GVSN, UID, fid (a file reference number to identify the replicated folder root directory on the File Replication Store), the name of the replicated folder directory, and a pointer to a parent record, which for the root is null.
{gvsn = (R,0), uid = (R,0), fid = 57, name = "share", parent = null}.
The GVSN and the UID are the same here. This is a general rule: UID coincides with the GVSN value that corresponds to the first occurrence (creation) of resource. The GVSN representation has been reused to generate UIDs; by taking advantage of that machine, version number combinations are globally unique. The version chain vector of machine A consists of the map: {}, and its local version sequence number count is initially at 0. The state of machine B is similar, except that the fid field associated with the share is most likely different.