I am reading the documentation of mkview
as I am trying to create a snapshot view on my local disk and I am confused by the terminology surrounding "view storage directory", "snapshot view directory" and the -stgloc
, -vws
and -colocated_server
options.
Here's my understanding:
- "snapshot view directory" refers to the working directory on my local file system where I will be editing the files I checkout
- "view storage directory" refers to some directory in the server where metadata about my view will be kept. I won't have anything to do with this directory.
Is this correct?
So to create a snapshot with server storage of the "view storage directory" and local storage of the "snapshot view directory", I would do:
ct mkview -sna -tag view_tag -vws /data/VIEWS/view_tag.vws -host foo -hpath /data/VIEWS/view_tag.vws -gpath /data/VIEWS/view_tag.vws ~/some/path/in/my/local/filesystem
(/data/VIEWS
is an NFS file-system in my machine). Is that right? This seems to be consistent with what is described here.
However, I don't get what the -hpath
and -gpath
options are supposed to do (given that -vws
has already provided the view storage directory and given that they seem to carry the same values). Also I don't understand the caveat in the mkview
documentation that says (under -vws
):
Use -stgloc rather than this option whenever possible