mirror of
https://github.com/syncthing/syncthing.git
synced 2024-11-16 18:41:59 -07:00
d27463268d
* lib/fs: Add fakefs This adds a new fake filesystem type. It's described rather extensively in fakefs.go, but the main point is that it's for testing: when you want to spin up a Syncthing and have a terabyte or two of random files that can be synced somewhere, or an inifitely large filesystem to sync files into. It has pseudorandom properties such that data read from one fakefs can be written into another fakefs and read back and it will look consistent, without any of the data actually being stored. To use: <folder id="default" path="whatever" ...> <filesystemType>fake</filesystemType> This will create an empty fake filesystem. You can also specify that it should be prefilled with files: <folder id="default" path="whatever?size=2000000" ...> <filesystemType>fake</filesystemType> This will create a filesystem filled with 2TB of random data that can be scanned and synced. There are more options, see fakefs.go. Prefilled data is based on a deterministic seed, so you can index the data and restart Syncthing and the index is still correct for all the stored data. |
||
---|---|---|
.. | ||
basicfs_test.go | ||
basicfs_unix.go | ||
basicfs_watch_errors_linux.go | ||
basicfs_watch_errors_others.go | ||
basicfs_watch_eventtypes_fen.go | ||
basicfs_watch_eventtypes_inotify.go | ||
basicfs_watch_eventtypes_kqueue.go | ||
basicfs_watch_eventtypes_other.go | ||
basicfs_watch_eventtypes_readdcw.go | ||
basicfs_watch_test.go | ||
basicfs_watch_unsupported.go | ||
basicfs_watch.go | ||
basicfs_windows_test.go | ||
basicfs_windows.go | ||
basicfs.go | ||
debug.go | ||
errorfs.go | ||
fakefs_test.go | ||
fakefs.go | ||
filesystem_test.go | ||
filesystem.go | ||
folding_test.go | ||
folding.go | ||
fsfileinfo_unix.go | ||
fsfileinfo_windows.go | ||
logfs.go | ||
lstat_broken.go | ||
lstat_regular.go | ||
mtimefs_test.go | ||
mtimefs.go | ||
tempname_test.go | ||
tempname.go | ||
types.go | ||
util.go | ||
walkfs.go |