I have some embedded devices running Linux (4.14.126), and i want them to write some of their logfiles to a network share on another (Windows 10) computer.
Mounting the network share works mostly fine, apart from the fact that i have to provide login credentials (which i wanted to avoid), but i need some reliable way to detect a broken mount (for example when i reboot the PC).
- Is it possible to get some kind of status information for a cifs mount?
- What error conditions (if any) can be detected without actually trying to read from (or write to) the share?
- Is it possible for my application to get automatic notifications in case of an error (maybe through inotify)?
- Do i have to handle remounting myself, or does that happen automatically once the share becomes available again?
PS (in case it matters):
I won't use fstab, because the location of the network share is not known at boot time.
Asked by Felix G
(111 rep)
Jul 10, 2020, 07:59 AM
Last activity: Jul 24, 2025, 11:08 PM
Last activity: Jul 24, 2025, 11:08 PM