Closed pierre-emmanuelJ closed 1 month ago
It feels weird to mount & unmount the disk each time you need to access some metadata. And since you're using a hardcoded target, two processes could mount it at the same time and cause some issues
Did you consider the possibility of reading straight from the disk instead of mounting it on the system? I didn't looked too much into it, but it looks like https://github.com/diskfs/go-diskfs might do the trick
@Fumesover
Here is in my new commit a better solution as you proposed, what do you think about?
I updated the description above according to the update
Description
This change is useful in the context of working with Exoscale private instance metadata (useful for CCM, CSI...etc).
In the CSI container are run as privileged by default to access device for block storage...etc., for CCM the manual prerequisite of the customer if he installs it on his private instance cluster is to change the container permission
Checklist
(For exoscale contributors)
Tested from private instance with a test program
if no sudo executed
if not, a private instance