-
Notifications
You must be signed in to change notification settings - Fork 3
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add snapshot and mfssubfolder support; fix /proc/mounts regex #5
Conversation
Oh my god. 😁 I will need to review this carefully as it's a huge changeset (for me), but this looks amazing! Thank you so much! Snapshots is huge, I've been meaning to get around to them! |
@anwright One minor issue; I'm not a fan of the current style of the Would you be okay with this revised version?
Along with prepending:
|
Please do review it carefully. It works on my machine, but I have a very limited understanding of perl, and of some of the things Proxmox is doing as it calls this plugin. I figured most of it out by just trying different things in the UI, and outputting a bunch of debug logs to figure out the contents of variables etc. And reviewing the existing storage plugins. I've been using MooseFS for years, but only started using Proxmox about a week ago. I'd like to implement snapshot-based image copying (via the
No issues at all. |
@anwright May be a bug here: root@coheed:~/pve-moosefs# pvesm add moosefs moosefs-vm-storage --path /mnt/mfs --mfssubfolder=/proxmox --mfspassword=REDACTED I found a fix though :) |
Makes sense, thanks for finding that. I spun up a test MFS instance just for this, and specified the mfsmaster during all of my testing as a result. |
On PVE 8.1/Debian Bookworm, /proc/mounts returns
mfs\043mfsmaster...
instead ofmfs#mfsmaster...
. The existing code thinks MFS is never mounted.Also added support for snapshots for raw files.
Fixes #1 (if you add
--shared 1
in yourpvesm add
command), and #4.