Displaying 2 results from an estimated 2 matches for "dccfa15bc".
2017 Apr 12
0
Re: [PATCH 1/2] daemon: run 'udevadm settle' with --exit-if-exists option
...le);
>
> extern int prog_exists (const char *prog);
>
> +extern void udev_settle_file (const char *file);
> +
> extern void udev_settle (void);
>
> extern int random_name (char *template);
> diff --git a/daemon/guestfsd.c b/daemon/guestfsd.c
> index 85ce5d2ad..dccfa15bc 100644
> --- a/daemon/guestfsd.c
> +++ b/daemon/guestfsd.c
> @@ -1213,13 +1213,18 @@ random_name (char *template)
> * fussed if it fails.
> */
> void
> -udev_settle (void)
> +udev_settle_file (const char *file)
> {
> - char cmd[80];
> + size_t cmd_size = str...
2017 Apr 12
0
Re: [PATCH 2/2] daemon: add udev_settle_file to is_root_device
...fixes a fail with ENOENT when device is not yet present after system boot.
>
> Signed-off-by: Pavel Butsykin <pbutsykin@virtuozzo.com>
> ---
> daemon/guestfsd.c | 3 +++
> 1 file changed, 3 insertions(+)
>
> diff --git a/daemon/guestfsd.c b/daemon/guestfsd.c
> index dccfa15bc..9aa69301f 100644
> --- a/daemon/guestfsd.c
> +++ b/daemon/guestfsd.c
> @@ -402,6 +402,9 @@ int
> is_root_device (const char *device)
> {
> struct stat statbuf;
> +
> + udev_settle_file(device);
Add a space after the function name, but with that change ACK.
> i...