Displaying 3 results from an estimated 3 matches for "parent_device_already_prob".
Did you mean:
  parent_device_already_probed
  
2013 Feb 07
2
[PATCH 1/2] Fix bogus partition number passed to guestfs___check_for_filesystem_on
...guestfs___check_for_filesystem_on (g, devices[i], 1, 0) == -1) {
+    if (guestfs___check_for_filesystem_on (g, devices[i]) == -1) {
       guestfs___free_string_list (devices);
       guestfs___free_inspect_info (g);
       return NULL;
@@ -83,7 +83,7 @@ guestfs__inspect_os (guestfs_h *g)
     if (parent_device_already_probed (g, partitions[i]))
       continue;
 
-    if (guestfs___check_for_filesystem_on (g, partitions[i], 0, i+1) == -1) {
+    if (guestfs___check_for_filesystem_on (g, partitions[i]) == -1) {
       guestfs___free_string_list (partitions);
       guestfs___free_inspect_info (g);
       return NULL;...
2013 Jan 24
2
[PATCH 1/2] lib: Add CLEANUP_FREE macro which automatically calls 'free' when leaving scope.
From: "Richard W.M. Jones" <rjones@redhat.com>
Use the macro like this to create temporary variables which are
automatically cleaned up when the scope is exited:
  {
    CLEANUP_FREE (char *, foo, strdup (bar)); /* char *foo = strdup (bar) */
    ...
    // no need to call free (foo)!
  }
On GCC and LLVM, this is implemented using __attribute__((cleanup(...))).
On other
2013 Jan 25
4
[PATCH 0/3] Use __attribute__((cleanup(...)))
This patch series changes a small part of the library to use
__attribute__((cleanup(...))) to automatically free memory when
pointers go out of the current scope.
In general terms this seems to be a small win although you do have to
use it carefully.  For functions where you can completely get rid of
the "exit code paths", it can simplify things.  For a good example,
see the