sapling/eden/fs
Caren Thomas 90cfd27c37 add configPath_ field to EdenServer
Summary:
Include a configPath_ field for EdenServer that holds the path of the user ~/.edenrc config file. The server needs the data from this user config file in order to perform mounts and currently, the path to the home directory is passed via the CLI to the mount command as a field inside the MountInfo struct in order to get the file. As per discussion in D3498567, including the home directory inside the MountInfo struct is logically a bit disjointed, and this change would no longer require the home directory to be passed to the server via MountInfo.

This restructuring also sets up eden for a future change - having the server remount existing mount points on start-up is now possible from the inside. Before this change, mounting anything had to be done via the CLI since the home directory had to be passed in from the outside. This meant that remounting the existing mount points on start up could only be done if Eden was run in the background - running in the foreground would require manual remounting of all existing mount points. Now that the server has access to the config file's path, remounting can be done without any prompting from the CLI in both cases.

Reviewed By: simpkins

Differential Revision: D3580737

fbshipit-source-id: 46667ccd130b470a3a8a9e9aa08e5ec8e8b90336
2016-07-26 10:16:16 -07:00
..
cli add configPath_ field to EdenServer 2016-07-26 10:16:16 -07:00
config add configPath_ field to EdenServer 2016-07-26 10:16:16 -07:00
inodes eden: assign our own file handle numbers and track all file handles 2016-07-26 10:00:11 -07:00
integration update the integration tests to allow running under gdb 2016-07-25 15:14:33 -07:00
model make put and get for trees/blobs symmetric 2016-07-25 12:34:25 -07:00
overlay eden: implement rename for files, add test for sed -i 2016-07-05 19:54:21 -07:00
rocksdb Include build files that were inadvertently excluded from the initial export. 2016-05-12 16:08:34 -07:00
service add configPath_ field to EdenServer 2016-07-26 10:16:16 -07:00
store make put and get for trees/blobs symmetric 2016-07-25 12:34:25 -07:00