Re: [systemd-devel] udev event on usb unpluged

2015-08-29 Thread Tom Yan
First of all I meant "Are you sure that the add events in jc.log actually appears AFTER you plugin anything?". If it appears BEFORE the device is plugged, then the two events are just of the bus/hub. I do not think you can get a useful event from udev for filesystem unmounting. That's simply not w

Re: [systemd-devel] udev event on usb unpluged

2015-08-29 Thread christophe . jalady
>re you sure that the add events in jc.log actually appears before you >plugin anything? I think "usb1" is the host controller/bus and >"usb1/1-0:1.0" is the internal hub. If it's that case of course you >won't see any remove event of them by unpluging your device because >the add events doesn't be

Re: [systemd-devel] udev event on usb unpluged

2015-08-29 Thread Tom Yan
Are you sure that the add events in jc.log actually appears before you plugin anything? I think "usb1" is the host controller/bus and "usb1/1-0:1.0" is the internal hub. If it's that case of course you won't see any remove event of them by unpluging your device because the add events doesn't belong

Re: [systemd-devel] udev event on usb unpluged

2015-08-29 Thread christophe . jalady
sorry for the delay. Attached are the logs. The log show the hole process meaning: Boot Plug of the usb cable: the device is shown as a "mass-storage" on the other device. Other device umount. I unplug the cable. Shutdown of the device. 'jc.log' is the log from my script. You will se