Skip to content
This repository has been archived by the owner on Dec 1, 2017. It is now read-only.

Develop a solution for allowing persistence of information about the file system between sessions #450

Open
gideonthomas opened this issue Oct 22, 2014 · 1 comment

Comments

@gideonthomas
Copy link
Contributor

In #443, we found that on the client, fs.pathToSync was being reset when you close a tab (running makedrive) before a sync can happen, and open the tab again. This is because a new fs instance is being handed to you everytime we do that.

This is one of several other possible examples of information or "makedrive metadata" that we need to persist between different sessions (e.g. closing and opening a tab).

One way of doing this is by creating an /etc directory (only accessible to makedrive and not the user) in the fs itself to hold such data. However, this might not necessarily be the best solution. We need to discuss how to handle this.

@alicoding
Copy link
Collaborator

Lets store an xattr on the sync root i.e. / root directory and it will have pathToSync from the previous session and we would know that we need to sync.

@alicoding alicoding removed this from the Back to Base Camp milestone Nov 5, 2014
@gideonthomas gideonthomas added this to the Per-file Syncing Part 2 milestone Jan 9, 2015
gideonthomas added a commit to gideonthomas/makedrive that referenced this issue May 27, 2015
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants