MightyPirates / OpenComputers

Home of the OpenComputers mod for Minecraft.
https://oc.cil.li
Other
1.59k stars 430 forks source link

Infinite Filesystem Issue #1677

Closed Reginald-Halifrax closed 7 years ago

Reginald-Halifrax commented 8 years ago

While trying to make a backup of a world i used open computers in i ran into a "Source path too long" error, i moved everything in the folder away till it wouldn't allow me any further. to find a directory from opencomputers was the one at fault.

With a directory reading /mnt/c90/mnt/c90/mnt/c90/ (Etc...) which presumably was from me attempting to copy over the contents of a hard disk to another so i could upgrade. presumably this was because it caused a copy paste loop.

Any chance that could be a easy fix? perhaps make a copy lock for how much you can do at any one time? and then maybe just have a easier way to move data from one to another?

I'd greatly appreciate it.

gjgfuj commented 8 years ago

i wonder if the copy could not copy through mount points......

Reginald-Halifrax commented 8 years ago

Well from my guess somehow when i was copying from the mount into the system IN the mount... which i guess could potentially start looping

payonel commented 8 years ago

Can you try using cp -x to not copy across mount points? Also, OpenOS 1.6 cp -x is improved, we may need to test your use case against the updated cp.

fnuecke commented 8 years ago

Wait, are we talking in-game or out-of-game? If the latter, I'm assuming a recursion loop happened ingame and the result then got saved to the real FS. I suppose adding a max nesting depth for directories enforced by OC itself could make sense and prevent stuff like this.

payonel commented 7 years ago

cp -x ... definitely protects from this scenario.