From 1481e8848b325e2b5190fb6c3532eb93706e202f Mon Sep 17 00:00:00 2001 From: Chris Lu Date: Sun, 17 Jun 2018 02:38:35 -0700 Subject: [PATCH] Created Mount (markdown) --- Mount.md | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 Mount.md diff --git a/Mount.md b/Mount.md new file mode 100644 index 0000000..e2bd17c --- /dev/null +++ b/Mount.md @@ -0,0 +1,22 @@ +### Mount as FUSE + +This uses bazil.org/fuse, which enables writing FUSE file systems on Linux and OS X. On OS X, it requires OSXFUSE (http://osxfuse.github.com/). + +```bash +# assuming you already started weed master, weed volume and filer +weed mount -filer=localhost:8888 -dir=/some/existing/dir +``` + +Now you can browse/delete directories and files, read and write file as in local file system. For efficiency, only no more than 1000 sub directories and files under the same directory will be listed. To unmount, just shut it down. + +### Weed Mount Architecture + +For reads: +1. Client Reads File Metadata => Weed Filer => Weed Filer database (LevelDB, Cassandra, Redis, Mysql, Postgres, etc) +2. Client Reads File Chunks => Weed Volume Servers + + + +For writes: +1. Client uploads data to Weed Volume Servers, and breaks the large files into chunks. +2. Client writes the metadata and chunk information into Filer and then into Filer database.