mirror of
https://github.com/facebook/sapling.git
synced 2024-10-09 08:18:15 +03:00
66eb606372
Summary: This is part of the effort to make our bind-mount configuration more visible and easier to change. The idea is to generalize the concept of redirection and add a command to help manage it. The `eden redirect add` subcommand allows creating one of two different kinds of redirection: * `bind` - allocate some space using `mkscratch` and mount it into the repo * `symlink` - allocate some space using `mkscratch` and create a symlink that points to it from the repo On Linux we use bind mounts to implement `bind` but on macOS, which doesn't have a bind mount concept, we create a sparse disk image file that can grow to match the size of the disk on which it is created (in practice these are a 7-15MB in size to start and grow as the user stores data into them). The `eden redirect del` subcommand allows removing a redirection, including the legacy `bind-mounts` configuration from `.eden/client/config.toml`. The `eden redirect list` subcommand lists the effective set of redirections, both from the new redirections configuration and the legacy `bind-mounts` configuration, along with their state. The `eden redirect fixup` subcommand iterates over the effective set of redirections and can remove and reinstate any that are in a broken state. Reviewed By: strager Differential Revision: D15707319 fbshipit-source-id: a5dd8c44c9f748482d7b48855b1305d44267885c |
||
---|---|---|
.. | ||
benchmarks | ||
cli | ||
docs | ||
fs | ||
integration | ||
locale | ||
py | ||
scripts | ||
test_support | ||
test-data | ||
third-party | ||
win | ||
.gitignore | ||
Eden.project.toml |