search for: optgroup_realpath_available

Displaying 3 results from an estimated 3 matches for "optgroup_realpath_available".

2014 May 20
2
[PATCH] daemon: scrub-file: resolve the path before calling scrub (RHBZ#1099490).
...crub.c index cd880b9..f500a08 100644 --- a/daemon/scrub.c +++ b/daemon/scrub.c @@ -54,12 +54,34 @@ do_scrub_device (const char *device) int do_scrub_file (const char *file) { + CLEANUP_FREE char *rp = NULL; CLEANUP_FREE char *buf = NULL; CLEANUP_FREE char *err = NULL; int r; + if (! optgroup_realpath_available ()) { + reply_with_error_errno (ENOTSUP, + "feature '%s' is not available in this\n" + "build of libguestfs. Read 'AVAILABILITY' in the guestfs(3) man page for\n" + "how to check for the availability of features.", + "re...
2014 May 20
14
Re: [PATCH] daemon: scrub-file: resolve the path before calling scrub (RHBZ#1099490).
...ded (commit a86eb0e0d2c67e2) at a time when we > thought it would be a good idea to have the daemon run on Windows. > Since no one thinks that's a good idea any longer, I think you could > prepend this commit with one which removes tests for realpath / > HAVE_REALPATH and hard-codes optgroup_realpath_available() == 1. I didn't know the story behind this, and went for the conservative route. Interesting enough, realpath has been unconditionally used already, so I will pull the plug to the conditional usage in some other parts, then. > Is it possible to make this change more generic so in future...
2012 Feb 01
1
[PATCH] Clarify the error message when unavailable functions are called (RHBZ#679737).
From: "Richard W.M. Jones" <rjones at redhat.com> Callers are supposed to use the availability API to check for functions that may not be available in particular builds of libguestfs. If they don't do this, currently they tend to get obscure error messages, eg: libguestfs: error: zerofree: /dev/vda1: zerofree: No such file or directory This commit changes the error