vermaden / automount

Simple devd(8) based automounter for FreeBSD
66 stars 20 forks source link

Increase timeout? #42

Closed probonopd closed 1 year ago

probonopd commented 2 years ago

Looks like my ebook reader needs more time:

2022-04-07 07:13:09 /dev/da0: attach
2022-04-07 07:13:10 /dev/da0: wait for device retry 1/3
2022-04-07 07:13:11 /dev/da0: wait for device retry 2/3
2022-04-07 07:13:11 /dev/da0: not a block device

Technically the ebook reader is an Android device which simulates a mass storage device, using Linux File-CD Gadget. So it probably just takes much longer than automount thinks.

When I mount it manually it works fine. I think we'd just need to increase the timeout?

vermaden commented 2 years ago

Set RETRY_DELAY=5 (or more) in your /usr/local/etc/automount.conf config.

probonopd commented 2 years ago

Sure enough, works. Being a bit a "it just works" aficionado, would you consider making this the default?

vermaden commented 2 years ago

That is the first device I know to have this problem.

Fine the lowest working value of RETRY_DELAY and let me know please.

probonopd commented 2 years ago

Well, I only can tell for my device a value of 2 is the lowest that works for me, but there are other models, too, including older/slower ones. Would it make sense to e.g., double the delay for each retry?

dmesg shows:

da0: <Linux File-CD Gadget 0000> Removable Direct Access SCSI-2 device
da0: 40.000MB/s transfers
da0: Attempt to query device size failed: NOT READY, Medium not present
da0: quirks=0x2<NO_6_BYTE>
vermaden commented 2 years ago

Thanks. I will also increase the RETRY_COUNT value a little.

vermaden commented 2 years ago

Will be at that in next release:

: ${RETRY_COUNT='5'}                    # retry count
: ${RETRY_DELAY='2'}                    # retry delay time
probonopd commented 2 years ago

Thanks @vermaden

vermaden commented 1 year ago

Updated.

Thanks.