From: Richard Jones Date: Wed, 12 May 2010 15:12:07 +0000 (+0100) Subject: Run udev_settle() after swapon/swapoff (RHBZ#516096). X-Git-Tag: 1.3.12~16 X-Git-Url: http://git.annexia.org/?a=commitdiff_plain;h=9d158c3ab132df21d58890f18224cd2fe020de67;p=libguestfs.git Run udev_settle() after swapon/swapoff (RHBZ#516096). --- diff --git a/daemon/swap.c b/daemon/swap.c index 67d553a..f22f2de 100644 --- a/daemon/swap.c +++ b/daemon/swap.c @@ -122,6 +122,11 @@ swaponoff (const char *cmd, const char *flag, const char *value) free (err); + /* Possible fix for RHBZ#516096. It probably doesn't hurt to do + * this in any case. + */ + udev_settle (); + return 0; }