Hello @jasonpierce, sorry for the late response. Let me address your points one by one.
I also noticed a bit of a bug that I should enter a report on. When you switch plasticfs to use a cache on a different drive, it seems to corrupt the dynamic workspaces you previously created. You can’t open them any more, and you can’t delete them from the GUI. You have to manually remove them from plastic.workspaces.
This is the most important point, so I want to comment on this first.
A) Note that dynamic workspaces have both, a mount point and a backing storage. The backing storage contains the workspace metadata among other things, so if you lose it, you lose the entire workspace.
B) Also note that the cachepath option does not actually tell where the cache is to PlasticFS. What it really does it to tell it where the entire PlasticFS storage lives, including not only the cache, but also all the backing storages of ALL your workspaces.
C) Lastly, your UVCS setup contains a plastic.workspaces file. That file tells PlasticFS which dynamic workspaces it must mount on start up… except, if you changed the “cachepath” (B) without moving the storage directory to the same location first, PlasticFS will create a new storage folder, it won’t find the workspace as listed by plastic.workspaces inside (A), and a pop-up error window will be shown.
In normal circumstances, users do not need to tweak the paths this way. If you get into this situation, let me suggest you two workarounds.
To get back to a fresh state:
- Check that PlasticFS is stopped (check for the tray app in the lower right corner, in the task bar).
- Go to your
plastic.workspaces file (located at %LocalAppData%\.plastic4) and edit it to remove all your dynamic workspaces.
- Check that the default cache folder does not exist (
%LocalAppData%\.plastic4\plasticfs-storage). If it does exist, remove it.
- Pick your intended destination path (let’s say,
d:\_cache\_plastic) and check if it does not exist. If it does exist, remove this one too.
- Restart PlasticFS now using the
--cachepath d:\_cache\_plastic option.
- Create a new dynamic workspace. You should be ready to go!
To change the cache/storage location after some use:
- Check that PlasticFS is stopped (check for the tray app in the lower right corner, in the task bar).
- Locate your current “cache” directory (
%LocalAppData%\.plastic4\plasticfs-storage by default).
- Pick your intended destination path (let’s say,
d:\_cache\_plastic) and simply move the directory there. Rename it if needed.
- Restart PlasticFS now using the
--cachepath d:\_cache\_plastic option.
Remember that removing plasticfs-storage\plasticfs-shared-cache is okay, but removing plasticfs-storage will remove the workspaces themselves.
Also, if PlasticFS cannot locate the plasticfs-storage directory where a workspace was created, the pop-up error window will be triggered every time it tries to mount the workspaces. Keep in mind that you can stop PlasticFS as soon as that happens, move the directory to the right location and restart PlasticFS to fix it.
Now, going back to the other topics:
I played with changing it a bit, and I did find that if you start plasticfs from the button in the gui, it always just uses the params “–install”. That’s pretty unfortunate, if a user has needed to use dynamic workspaces due to disk space concerns (I’d think a common use case).
The install option is meant to create the shortcut. Note that the GUI is not meant to start and stop PlasticFS, instead, PlasticFS should start up by itself when rebooting the system. Right now most users do not change the storage location, but our suggestion is to follow these steps:
- Enable dynamic workspaces in the GUI. The shortcut gets created as a side-effect. PlasticFS is started too.
- Follow the instructions from “To get back to a fresh state”, but edit the shortcut to include the “cachepath” option.
You can find the shortcut if you press “Windows key + R”, and then type “shell:startup” and press Enter.
Note that, besides not accounting for the storage relocation, the install option should not increase your disk usage on its own.
Best scenario would probably be to have it configurable in the GUI. (…)
Sadly, there is no plans to add this option. Such a feature is unlikely to come soon because the GUI is not in charge of the life cycle of the PlasticFS process by design. However…
Or plasticfs would have a conf file, and wouldn’t need usually need command line parameters.
This will be implemented soon. You will need to edit it manually, but at least you will be able to set up your storage path in an easier way.
Do you need something more? Does this information help you?