Revert "blkid: Use -c /dev/null because RHEL 5 blkid doesn't have -p option."

This reverts commit 6533491b17.
This commit is contained in:
Richard W.M. Jones
2011-12-04 16:47:37 +00:00
parent 7f14c042eb
commit e18058a5a5

View File

@@ -94,11 +94,8 @@ do_blkid(const char *device)
char **ret = NULL;
int size = 0, alloc = 0;
r = command (&out, &err,
"blkid",
/* Adding -c option kills all caching, even on RHEL 5. */
"-c", "/dev/null",
"-p", "-i", "-o", "export", device, NULL);
const char *blkid[] = {"blkid", "-p", "-i", "-o", "export", device, NULL};
r = commandv(&out, &err, blkid);
if (r == -1) {
reply_with_error("%s", err);
goto error;