On Fri, 11 Mar 2011 11:44:27 +0000 Lee Essen <[email protected]> wrote:
> Is there any interest in this? Jow and I talked about this and we thought that it would be better to have a hotplug handler than arbitrary script execution within the block-mount. Here's the part of the conversation I captured on how to implement: 01:26:51 PM) xMff: env -i ACTION=mount DEVICE=/dev/foo DIRECTORY=/foo/bar /sbin/hotplug-call mount (01:27:12 PM) xMff: env -i ACTION=umount DEVICE=/dev/foo DIRECTORY=/foo/bar /sbin/hotplug-call mount (01:27:21 PM) cshore: ah, ok (01:27:23 PM) xMff: etc. in the appropraite palces within the mount scripts (01:27:32 PM) xMff: right before mount ... and umount ... (01:27:57 PM) xMff: hotplug-call will block while the scripts run (unless scripts decide to detach themselves) (01:29:36 PM) cshore: yeah, that makes sense (01:29:45 PM) xMff: one could then still ship a standard hotplug handler which implements the uci options proposed on the ml (01:30:06 PM) xMff: like /etc/hotplug.d/mount/01-run-services (01:30:55 PM) xMff: I don't know whether there maybe already are standard uevents for mount and umount (01:31:08 PM) xMff: so that you do not even have to call hotplug-call http://alinux.tv/Kernel-2.6.34/filesystems/gfs2-uevents.txt I suppose other filesystems provide those as well (01:36:52 PM) xMff: hm nope, just checked (01:37:13 PM) xMff: there are uevents for appearing and disappearing blockdevs or partitions, but none for actual mount and umount (01:37:27 PM) cshore: ok, good to know (01:37:34 PM) xMff: at least not with ext2/3/4 -- <erno> hm. I've lost a machine.. literally _lost_. it responds to ping, it works completely, I just can't figure out where in my apartment it is. GnuPG Key Fingerprint 86 F5 81 A5 D4 2E 1F 1C http://gnupg.org
signature.asc
Description: PGP signature
_______________________________________________ openwrt-devel mailing list [email protected] https://lists.openwrt.org/mailman/listinfo/openwrt-devel
