On Tue, 29 Apr 2014, Pavelka, Tomas wrote: > Can anyone think of a way how to tell that the device is really offline (i.e. > in DEV_STATE_DISCONNECTED or DEV_STATE_OFFLINE) so that it is safe to detach? > And do this from user mode? > > My current solution is simply to put a short sleep before the CP detach > command but that does not seem to be very safe even though I have not been > able to reproduce the failure with it.
the latter sounds 'racy' I know that ClefOS at 6 has 'ethtool' available (successor and more general than mii-tools) which can detect if a given interface is 'live', and that will also be in ClefOS 7 ... particularly useful might be: ethtool --test (devname) offline for testing -- Russ herrold ---------------------------------------------------------------------- For LINUX-390 subscribe / signoff / archive access instructions, send email to lists...@vm.marist.edu with the message: INFO LINUX-390 or visit http://www.marist.edu/htbin/wlvindex?LINUX-390 ---------------------------------------------------------------------- For more information on Linux on System z, visit http://wiki.linuxvm.org/