mirror of
https://github.com/facebook/sapling.git
synced 2024-10-09 00:14:35 +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 |
||
---|---|---|
.. | ||
fsck | ||
helpers | ||
hg | ||
lib | ||
snapshot | ||
basic_test.py | ||
chown_test.py | ||
clone_test.py | ||
config_test.py | ||
corrupt_overlay_test.py | ||
debug_getpath_test.py | ||
doteden_test.py | ||
edenclient_test.py | ||
fsck_test.py | ||
glob_test.py | ||
health_test.py | ||
help_test.py | ||
hypothesis_simple_test.py | ||
info_test.py | ||
linux_cgroup_test.py | ||
materialized_query_test.py | ||
mmap_test.py | ||
mount_test.py | ||
oexcl_test.py | ||
patch_test.py | ||
persistence_test.py | ||
rage_test.py | ||
rc_test.py | ||
redirect_test.py | ||
remount_test.py | ||
rename_test.py | ||
repo_test.py | ||
restart_test.py | ||
rocksdb_store_test.py | ||
sed_test.py | ||
service_log_test.py | ||
setattr_test.py | ||
stale_test.py | ||
start_test.py | ||
stats_test.py | ||
stop_test.py | ||
systemd_fixture_test.py | ||
systemd_test.py | ||
takeover_test.py | ||
thrift_test.py | ||
unixsocket_test.py | ||
unlink_test.py | ||
userinfo_test.py | ||
xattr_test.py |