# US 11,120,039 B2 · Updating a remote tree for a client synchronization service

> Agents: this data is available as JSON from the patentgrep API and MCP server — see https://patentgrep.com/llms.txt

- Number: US 11,120,039 B2
- Document ID: US11120039B2
- Status: Granted
- Kind: B2
- Application number: 15/863,748
- Filed: 2018-01-05
- Published: 2019-07-04
- Granted: 2021-09-14
- Earliest claimed: 2017-12-28
- Assignees: Dropbox, Inc.
- Applicants: Dropbox, Inc.
- Inventors: Robert Ying; Nipunn Koorapati; Gautam Gupta
- Web page: https://patentgrep.com/patent/US11120039B2

## CPC

- G06F 16/11: File system administration, e.g. details of archiving or snapshots (error detection or correction of the data by redundancy in operations G06F11/14)
- G06F 1/04: Generating or distributing clock signals or signals derived directly therefrom
- G06F 3/0619: {in relation to data integrity, e.g. data losses, bit errors}
- G06F 3/0623: {in relation to content}
- G06F 3/0629: {Configuration or reconfiguration of storage systems}
- G06F 3/065: {Replication mechanisms}
- G06F 3/0652: {Erasing, e.g. deleting, data cleaning, moving of data to a wastebasket}
- G06F 3/067: {Distributed or networked storage systems, e.g. storage area networks [SAN], network attached storage [NAS]}
- G06F 9/547: {Remote procedure calls [RPC]; Web services}
- G06F 11/1469: {Backup restoration techniques}
- G06F 12/1466: {Key-lock mechanism}
- G06F 16/113: {Details of archiving (lifecycle management in storage systems G06F3/0649; point-in-time backing up or restoration of persistent data G06F11/1446)}
- G06F 16/116: {Details of conversion of file system types or formats}
- G06F 16/119: {Details of migration of file systems (migration mechanisms in storage systems G06F3/0647)}
- G06F 16/122: {using management policies (point-in-time backing up or restoration of persistent data G06F11/1446; file migration policies for HSM systems G06F16/185)}
- G06F 16/125: {characterised by the use of retention policies (retention policies for HSM systems G06F16/185)}
- G06F 16/128: {Details of file system snapshots on the file-level, e.g. snapshot creation, administration, deletion (error detection or correction of the data by redundancy in operations or in hardware G06F11/14, G06F11/16)}
- G06F 16/13: File access structures, e.g. distributed indices (arrangements of input from, or output to, record carriers G06F3/06)
- G06F 16/137: {Hash-based (content-based indexing of textual data G06F16/31)}
- G06F 16/148: {File search processing}
- G06F 16/152: {using file content signatures, e.g. hash values}
- G06F 16/156: {Query results presentation}
- G06F 16/16: File or folder operations, e.g. details of user interfaces specifically adapted to file systems
- G06F 16/162: {Delete operations (erasing in storage systems G06F3/0652)}
- G06F 16/168: {Details of user interfaces specifically adapted to file systems, e.g. browsing and visualisation, 2d or 3d GUIs (query results presentation G06F16/156)}
- G06F 16/172: Caching, prefetching or hoarding of files
- G06F 16/1734: {Details of monitoring file system events, e.g. by the use of hooks, filter drivers, logs}
- G06F 16/1744: {using compression, e.g. sparse files}
- G06F 16/176: Support for shared access to files; File sharing support
- G06F 16/1767: {Concurrency control, e.g. optimistic or pessimistic approaches}
- G06F 16/178: Techniques for file synchronisation in file systems
- G06F 16/1787: {Details of non-transparently synchronising file systems}
- G06F 16/18: File system types
- G06F 16/182: Distributed file systems
- G06F 16/1827: {Management specifically adapted to NAS (management of storage area networks [SAN] G06F3/067)}
- G06F 16/183: {Provision of network file services by network file servers, e.g. by using NFS, CIFS (network file access protocols H04L67/1097)}
- G06F 16/184: {implemented as replicated file system}
- G06F 16/1844: {Management specifically adapted to replicated file systems}
- G06F 16/185: Hierarchical storage management [HSM] systems, e.g. file migration or policies thereof (details of archiving G06F16/11)
- G06F 16/2246: {Trees, e.g. B+trees}
- G06F 16/2255: {Hash tables}
- G06F 16/2322: {using timestamps}
- G06F 16/2358: {Change logging, detection, and notification (replication G06F16/27)}
- G06F 16/2365: {Ensuring data consistency and integrity}
- G06F 16/2379: {Updates performed during online database operations; commit processing}
- G06F 16/24552: {Database cache management}
- G06F 16/27: Replication, distribution or synchronisation of data between databases or within a distributed database system; Distributed database system architectures therefor
- G06F 16/275: {Synchronous replication}
- G06F 16/9027: {Trees}
- G06F 16/907: Retrieval characterised by using metadata, e.g. metadata not derived from the content or metadata generated manually
- G06F 16/951: Indexing; Web crawling techniques
- G06F 16/955: using information identifiers, e.g. uniform resource locators [URL]
- G06F 16/958: Organisation or management of web site content, e.g. publishing, maintaining pages or automatic linking
- G06F 21/10: Protecting distributed programs or content, e.g. vending or licensing of copyrighted material (protection in video systems or pay television H04N7/16) {; Digital rights management [DRM]}
- G06F 21/604: {Tools and structures for managing or administering access control systems}
- G06F 21/6218: {to a system of files or objects, e.g. local or distributed file system or database}
- H04L 9/3213: {using tickets or tokens, e.g. Kerberos (network architectures or network communication protocols for entities authentication using tickets in a packet data network H04L63/0807)}
- H04L 9/3247: {involving digital signatures}
- H04L 63/08: {for authentication of entities (cryptographic mechanisms or cryptographic arrangements for entity authentication H04L9/32)}
- H04L 63/0853: {using an additional device, e.g. smartcard, SIM or a different communication terminal (cryptographic mechanisms or cryptographic arrangements for entity authentication involving additional secure or trusted devices H04L9/3234)}
- H04L 63/10: {for controlling access to devices or network resources}
- H04L 63/101: {Access control lists [ACL]}
- H04L 63/102: {Entity profiles}
- H04L 67/06: specially adapted for file transfer, e.g. file transfer protocol [FTP]
- H04L 67/1095: Replication or mirroring of data, e.g. scheduling or transport for data synchronisation between network nodes
- H04L 67/1097: for distributed storage of data in networks, e.g. transport arrangements for network file system [NFS], storage area networks [SAN] or network attached storage [NAS]
- G06F 2201/84: Using snapshots, i.e. a logical point-in-time copy of the data
- G06F 2212/1052: Security improvement
- G06F 2221/2141: Access rights, e.g. capability lists, access control lists, access tables, access matrices
- H04L 67/306: User profiles
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)
- H04L: TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION (arrangements common to telegraphic and telephonic communication H04M)

## Abstract

The disclosed technology relates to a system configured to receive, from a content management system, an initial portion of a log of operations for a target namespace, build a subtree for the target namespace based on the initial portion of the log of operations, and mount the subtree for the target namespace at a mount location of a remote tree representing a server state for content items stored on the content management system.

## Claims

### Claim 1

A computer-implemented method comprising:
receiving, at a client device, a mount notification for mounting a target namespace within an existing namespace represented in a remote tree, wherein the remote tree represents a server state for content items stored on a content management system, and wherein content items of the target namespace are unknown upon receiving the mount notification;
preventing a mounting of the target namespace before a determination of the content items of the target namespace;
receiving, from the content management system, an incoming prefix of a log of operations for the target namespace, wherein the log of operations provides operations data with respect to the content items of the target namespace;
building a subtree for the target namespace, triggered by the receiving of the incoming prefix, by incrementally processing a current state after each operation of the log of operations and determining the content items of the target namespace;
after building the subtree by completing the incremental processing of the current state after each operation of the log of operations, validating the subtree does not violate a set of tree constraints associated with the remote tree; and
mounting the subtree for the target namespace at a mount location of the remote tree.

### Claim 2 (depends on 1)

The computer-implemented method of claim 1, wherein the incoming prefix is bounded by a start of the log of operations to a cursor value for a mount operation detected by the client device.

### Claim 3 (depends on 1)

The computer-implemented method of claim 1, further comprising:
receiving, from the content management system, a mount operation for the target namespace, wherein the mount operation is associated with the existing namespace and specifies the mount location in the existing namespace, wherein the target namespace is mounted at the mount location in response to the mount operation.

### Claim 4 (depends on 1)

The computer-implemented method of claim 1, further comprising:
receiving a second mount notification for mounting a nested namespace within the target namespace;
receiving, from the content management system, a second incoming prefix of a second log of operations for the nested namespace;
building a second subtree for the nested namespace based on the second incoming prefix of the second log of operations; and
mounting the second subtree for the nested namespace within the subtree for the target namespace.

### Claim 5 (depends on 1)

The computer-implemented method of claim 1, further comprising:
receiving the operations data from the content management system, wherein the operations data comprises linearized operations across multiple namespaces;
executing the linearized operations; and
updating, based on the execution of the linearized operations, the remote tree.

### Claim 6 (depends on 1)

The computer-implemented method of claim 1, further comprising:
determining that the server state and a file system state are out of sync, wherein the determining is based on a difference between the remote tree and a sync tree representing a known synced state between the server state and the file system state;
generating, based on the difference, a set of operations configured to converge the server state and the file system state; and
managing execution of the set of operations.

### Claim 7 (depends on 6)

The computer-implemented method of claim 6, wherein the remote tree and the sync tree are stored at the client device.

### Claim 8 (depends on 6)

The computer-implemented method of claim 6, wherein the server state and the file system state being out of sync indicates that an action performed on the content items stored by the content management system is not reflected in the content items stored on the client device.

### Claim 9

A non-transitory computer readable medium comprising instructions, the instructions, when executed by a computing system, cause the computing system to:
prevent a mounting of a target namespace within an existing namespace, represented in a remote tree, before a determination of content items of the target namespace, wherein the remote tree represents a server state for content items stored on a content management system;
receive, from the content management system, an initial portion of a log of operations for the target namespace, wherein the log of operations serves as operations data with respect to the content items of the target namespace;
build a subtree for the target namespace based on the initial portion of the log of operations by incrementally processing a current state after each operation in the log of operations and determining the content items of the target namespace;
after building the subtree by completing the incremental processing of the current state after each operation in the initial portion of the log of operations, validate the subtree does not violate a set of tree constraints associated with the remote tree; and
mount the subtree for the target namespace at a mount location of the remote tree representing the server state for content items stored on the content management system.

### Claim 10 (depends on 9)

The non-transitory computer readable medium of claim 9, wherein the instructions further cause the computing system to:
receive, before the preventing the mounting, from the content management system, a mount operation for the target namespace, wherein the mount operation is associated with the existing namespace and specifies the mount location in the existing namespace, wherein the target namespace is mounted at the mount location in response to the mount operation, and content items of the target namespace are unknown upon receiving the mount operation.

### Claim 11 (depends on 9)

The non-transitory computer readable medium of claim 9, wherein the instructions further cause the computing system to:
receive the operations data from the content management system, wherein the operations data comprises linearized operations across multiple namespaces;
execute the linearized operations; and
update, based on execution of the linearized operations, the remote tree.

### Claim 12 (depends on 9)

The non-transitory computer readable medium of claim 9, wherein the instructions further cause the computing system to:
determine that the server state and a file system state are out of sync based on a difference between the remote tree and a sync tree representing a known synced state between the server state and the file system state;
generate, based on the difference, a set of operations configured to converge the server state and the file system state; and
manage execution of the set of operations.

### Claim 13

A system comprising:
one or more processors; and
a non-transitory computer-readable medium storing instructions that, when executed by the one or more processors, cause the one or more processors to:
receive, at a client device, a mount notification for mounting a target namespace within an existing namespace represented in a remote tree, wherein the remote tree represents a server state for content items stored on a content management system, and wherein content items of the target namespace are unknown upon receiving the mount notification;
prevent a mounting of the target namespace before a determination of the content items of the target namespace;
receive, from the content management system, an incoming prefix and a subsequent log of operations for the target namespace, wherein the log of operations serves as operations data with respect to content items of the target namespace;
build a subtree for the target namespace, triggered by the receiving of the incoming prefix, by incrementally processing a current state after each operation in the log of operations, and determine the content items of the target namespace; and
after building the subtree by incrementally processing the current state after each operation in the incoming prefix of the log of operations, validate the subtree does not violate a set of tree constraints with the remote tree; and
mount the subtree for the target namespace at a mount location of the remote tree representing the server state for the content items stored on the content management system.

### Claim 14 (depends on 13)

The system of claim 13, wherein the incoming prefix of the log of operations is bounded by a start of the log of operations to a cursor value for a mount operation detected by the content management system.

### Claim 15 (depends on 13)

The system of claim 13, wherein the instructions further cause the one or more processors to:
receive, from the content management system, a mount operation for the target namespace, wherein the mount operation is associated with the existing namespace and specifies the mount location in the existing namespace, wherein the target namespace is mounted at the mount location in response to the mount operation.

### Claim 16 (depends on 13)

The system of claim 13, wherein the instructions further cause the one or more processors to:
receive the operations data from the content management system, wherein the operations data comprises linearized operations across multiple namespaces;
execute the linearized operations; and
update, based on execution of the linearized operations, the remote tree.

### Claim 17 (depends on 13)

The system of claim 13, wherein the instructions further cause the one or more processors to:
determine that the server state and a file system state are out of sync based on a difference between the remote tree and a sync tree representing a known synced state between the server state and the file system state;
generate, based on the difference, a set of operations configured to converge the server state and the file system state; and
manage execution of the set of operations.

### Claim 18 (depends on 1)

The computer-implemented method of claim 1, wherein processing the current state includes:
determining that one or more operations will not be reflected in a final version of the subtree based on a final state resulting from incrementally processing of the current state after each operation in the log of operations; and
based on the one or more operations not being reflected in the final version of the subtree, removing the one or more operations from the final version of the subtree.

### Claim 19 (depends on 1)

The computer-implemented method of claim 1, wherein the mounting the subtree for the target namespace within the existing namespace introduces a dependency between operation logs of the target namespace and operation logs of the existing namespace.
