]> git.ipfire.org Git - thirdparty/lxc.git/commit
nbd: give paritions some time to show up
authorSerge Hallyn <serge.hallyn@ubuntu.com>
Thu, 22 May 2014 20:50:08 +0000 (15:50 -0500)
committerStéphane Graber <stgraber@ubuntu.com>
Sun, 25 May 2014 14:43:53 +0000 (10:43 -0400)
commitbfd0b144b661dd027e363a0eba83144ea460af82
treeba7b2de9a307ede67dfc183e125ba0476cfe2995
parent35120d9c591c9e2b9e594c3271d93ada37dd00da
nbd: give paritions some time to show up

If you attach a file to /dev/nbd0, it may take some time for /dev/nbd0p1
to show up.  Allow up to 5 seconds in that case, then bail.

Signed-off-by: Serge Hallyn <serge.hallyn@ubuntu.com>
Acked-by: Stéphane Graber <stgraber@ubuntu.com>
src/lxc/bdev.c