Displaying 1 result from an estimated 1 matches for "blkid_without_p_opt".
Did you mean:
blkid_without_p_i_opt
2011 Dec 05
1
[PATCH] blkid: split the RHEL5 which can't support some options
...}
+ if (add_string(&ret, &size, &alloc, NULL) == -1) goto error;
+
free(out);
free(err);
free(lines);
- if (add_string(&ret, &size, &alloc, NULL) == -1) return NULL;
-
return ret;
error:
@@ -158,3 +182,45 @@ error:
return NULL;
}
+
+static char **
+blkid_without_p_opt(const char *device)
+{
+ char **ret = NULL;
+ int size = 0, alloc = 0;
+
+ if (add_string(&ret, &size, &alloc, "TYPE") == -1) goto error;
+ if (add_string(&ret, &size, &alloc, get_blkid_tag(device, "TYPE")) == -1)
+ goto error;
+ if (add_string(&a...