On Thu, 26 Jul 2012, David Boyes wrote:
> A week or two back, someone (I think it was Florian Bilek) asked why there
> was a delay between invoking chccwdev and the device becoming available, and
> whether there was an option or command that would exit only when the device
> was actually available. There was some discussion of the --settle option in
> udev, but I don't recall seeing a resolution other than "loop on (test for
> device availability;sleep a few seconds) repeat".
>
> Was there a better solution? If not, could the IBM developers add a --sync
> option to chccwdev that forces chccwdev to wait until the requested operation
> is actually completed before exiting?
On which distro do you have problems with chccwdev?
I just did a quick test:
for i in {1..100} ;do vmcp def t3390 as 1234 100 ; chccwdev -e 1234 ; \
udevadm settle; dasdfmt -b 4096 -y /dev/dasde ; chccwdev -d 1234 ; \
vmcp det 1234 ;done
..which appears to work fine.
Regards,
Sebastian
>
> ----------------------------------------------------------------------
> For LINUX-390 subscribe / signoff / archive access instructions,
> send email to [email protected] 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/
>
>
----------------------------------------------------------------------
For LINUX-390 subscribe / signoff / archive access instructions,
send email to [email protected] 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/