Skip to content

Instantly share code, notes, and snippets.

@mossprescott
Created October 4, 2016 12:56
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mossprescott/5837e05db3e2c980fac42e941596a8de to your computer and use it in GitHub Desktop.
Save mossprescott/5837e05db3e2c980fac42e941596a8de to your computer and use it in GitHub Desktop.
MOVE /mount notes
curl -i localhost:8080/metadata/fs/
curl -i -X PUT localhost:8080/mount/fs/foo/ -d '{ "mongodb": { "connectionUri": "mongodb://localhost" } }'
curl -i -X PUT localhost:8080/mount/fs/foo/bar -d '{ "view": { "connectionUri": "sql2://?q=select+*+from+baz" } }'
curl -i localhost:8080/metadata/fs/foo/
curl -i -X DELETE localhost:8080/mount/fs/foo/


curl -i -X MOVE -H "Destination: /foo2/" localhost:8080/mount/fs/foo/
curl -i -X MOVE -H "Destination: /foo2/" localhost:8080/data/fs/foo/

MOVE /data/fs/mnt1/ -> /mnt2/:

  • error: destination is not in a mounted filesystem
  • not used by SlamData

MOVE /data/fs/mnt1/dir1/ -> /mnt1/dir2:

  • ManageFile.move
  • intercepted by ViewFS
  • delegates to move the dir, then for each view in Mounting: delete dst and remount

MOVE /data/fs/mnt1/view1 -> /mnt1/view2:

  • ManageFile.move
  • intercepted by ViewFS
  • only a remount
  • the move is not delegated

MOVE /mount/fs/mnt1/ -> /mnt2/:

  • Mounting.remount
  • does not move nested views MOVE /mount/fs/mnt1/dir1/ -> /mnt2/dir2/:
  • error: not a mount MOVE /mount/fs/mnt1/view1 -> /mnt1/view2:
  • Mounting.remount
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment