dlandon / unassigned.devices

Unassigned Devices plugin for unRAID
Other
81 stars 39 forks source link

Make mounting timeout configurable #43

Closed JoeMShanahan closed 4 years ago

JoeMShanahan commented 4 years ago

I have a drive that takes a while to mount because it is nearly full:

root@Tower:~# time /sbin/mount -t btrfs -o auto,async,noatime,nodiratime '/dev/sdo1' '/mnt/disks/mountpoint'

real    0m34.472s
user    0m0.002s
sys     0m0.190s

Yes, I can not fill my drive to nearly capacity but that doesn't help me in my current state - I can only mount this drive manually now. One of docker images really doesn't like when it starts without this mountpoint being there and it causes it need to rehash over 7TB worth of files as it treats the entire drive as now untrustworthy.

dlandon commented 4 years ago

I've extended the mount and unmount time outs in the next release. There is no need to make the timeouts configurable.

JoeMShanahan commented 4 years ago

You extended it from 20 seconds to 25 seconds - you can see from my provided log it takes me almost 35 seconds to mount the drive.

I'm arguing it either needs to be greatly extended or be made configurable.

dlandon commented 4 years ago

I've extended it again in the next release.

JoeMShanahan commented 4 years ago

Ok, thanks!

dlandon commented 4 years ago

Update UD and see if your issue is solved.

JoeMShanahan commented 4 years ago

Seems to be fixed, thank you.