bolt icon indicating copy to clipboard operation
bolt copied to clipboard

syscall.Mmap under mount directory will got error: file resize error: invalid argument

Open compasses opened this issue 10 years ago • 2 comments

Whether anyone have encountered such error. my GO projects host in windows, mount the directory in my virtual box Ubuntu actually . All my projects can run under these two platforms. But bolt DB such error as title. if copy the run file on home directory it can work. i think it should be caused by the mount directory, but have no idea about this error. The mmap cannot work under mount directory file?

compasses avatar Nov 19 '15 01:11 compasses

yes. a peer of mine had this same issue with the mmap call returning an invalid argument due to boltdb trying to mmap it's database off of the shared directory. if you copy it to a real filesystem it should fix your issue.

arizvisa avatar Jun 29 '16 21:06 arizvisa

Sounds like Virtualbox "shared folders" don't support mmap.

tv42 avatar Feb 02 '17 02:02 tv42