:: Re: [DNG] Hopman and inotify
Page principale
Supprimer ce message
Répondre à ce message
Auteur: tito
Date:  
À: dng
Sujet: Re: [DNG] Hopman and inotify
On Sat, 12 Jun 2021 15:35:56 -0400
Steve Litt <slitt@???> wrote:

> Hi all,
>
> I think inotify is the best foundation for a usb plugin/plugout
> detector. I used it in my early 2015 proof of concept proving that
> Poettering's socket activation was overkill and could be accomplished
> much less intrusively with inotify.
>
> As far as I know, Hopman's only usage is to mount thumb drives and USB
> connected SATA drives.


Hi,
don't forget smartphones there are billions far more than thumb drives
and USB SATA drives.

Ciao,
Tito

> If that's the case, filtering the inotify event
> stream should be fairly straightforward. Once detection is
> accomplished, functions, callbacks or objects can be used to
> accomplish the proper action.
>
> SteveT
>
> Steve Litt
> Spring 2021 featured book: Troubleshooting Techniques of the
> Successful Technologist http://www.troubleshooters.com/techniques
> _______________________________________________
> Dng mailing list
> Dng@???
> https://mailinglists.dyne.org/cgi-bin/mailman/listinfo/dng