Karl Palsson
2016-01-28 09:31:14 UTC
Given that OpenWrt doesn't have a daemon like udisks to
mount/umount things automatically, I was trying to build it
myself by something like "block info" in a crontab.
"block info" correctly identifies when I insert an sd card into
slot on a fixed USB card reader on my device, and creates device
nodes, and if I remove the card, "block info" correctly notes
that the card is gone and removes the device nodes.
However, after "block mount" has mounted the sdcard (based on
config in /etc/config/fstab) "block info" now no longer notices
if the card has been removed. As far as I have been able to find,
the only way to make anything update is to explicitly "block
umount" which works correctly if the card _has_ been removed, but
if the card hasn't been removed, I've now unmounted for no reason
at all.
Should "block info" actually be detecting this properly? Is there
some other tool that is meant to be used for this?
This was with "block" from fstools version
2016-01-10-96415afecef35766332067f4205ef3b2c7561d21
Cheers,
Karl P
- --
Sent using Mailpile, Free Software from www.mailpile.is
mount/umount things automatically, I was trying to build it
myself by something like "block info" in a crontab.
"block info" correctly identifies when I insert an sd card into
slot on a fixed USB card reader on my device, and creates device
nodes, and if I remove the card, "block info" correctly notes
that the card is gone and removes the device nodes.
However, after "block mount" has mounted the sdcard (based on
config in /etc/config/fstab) "block info" now no longer notices
if the card has been removed. As far as I have been able to find,
the only way to make anything update is to explicitly "block
umount" which works correctly if the card _has_ been removed, but
if the card hasn't been removed, I've now unmounted for no reason
at all.
Should "block info" actually be detecting this properly? Is there
some other tool that is meant to be used for this?
This was with "block" from fstools version
2016-01-10-96415afecef35766332067f4205ef3b2c7561d21
Cheers,
Karl P
- --
Sent using Mailpile, Free Software from www.mailpile.is